The text area Bean has the following information and Customizer functions.
See
"Package Guide"- JFTextArea
Property information
Name | Type | Reference | Setting | Explanation |
---|---|---|---|---|
autoEscape | boolean | Y | Y | Automatic exit function valid/invalid |
autoIME | boolean | Y | Y | Automatic change of input mode |
background | java.awt | Y | Y | Background color |
blink | boolean | Y | Y | Whether to blink the character string |
blinkInterval | long | Y | Y | Blink interval of character string |
borderColor | java.awt | Y | Y | Border line color |
borderType | int | Y | Y | Border line type |
borderWidth | int | Y | Y | Border line width |
byteLength | int | Y | Byte length of character string | |
caretBlink | com.fujitsu.jbk.gui | Y | Input caret blink | |
caretPosition | int | Y | Y | Caret position |
caretStyle | com.fujitsu.jbk.gui | Y | Caret style for the input field | |
caretVisible | boolean | Y | Y | Display/non-display of the input caret |
characterCodeMapped | boolean | Y | Y | Whether to convert incompatible character code |
clickedHyperLinkColor | java.lang | Y | Y | Color of visited hyperlinks |
columnBaseChar | char | Y | Y | The base character to be used on calculating the width of field |
columns | int | Y | Y | Number of display characters |
componentOrientation | java.awt | Y | Y | The orientation of the string. It depends on the language |
compoundEventMode | boolean | Y | Y | Whether to fire the start/finish event of edit field and scrollbar |
editable | boolean | Y | Y | Editing enabled/disabled |
enableChars | char[] | Y | Y | Input-enabled character array |
enableMenu | boolean | Y | Y | Whether to display the popup menu |
enableToolTip | boolean | Y | Y | Whether to display the tool tip |
enableType | int | Y | Y | Input-enabled character set |
enabled | boolean | Y | Y | Whether enabled |
errorBeep | int | Y | Y | Error types for which a warning is sounded |
focusTraversalKeysEnabled | boolean | Y | Y | Whether the focus traversal key is available |
focusable | boolean | Y | Y | Whether the focus can be set |
font | java.awt | Y | Y | Font |
foreground | java.awt | Y | Y | Foreground color |
hyperLinkViewMode | boolean | Y | Y | Whether to display hyperlinks |
hyperLinkColor | java.lang | Y | Y | Color of hyperlinks |
ignoreRepaint | boolean | Y | Y | Whether the focus traversal key is available |
inactiveBackground | java.awt | Y | Y | Background color when inactive |
inactiveForeground | java.awt | Y | Y | Foreground color when inactive |
inputAssist | int | Y | Y | Input assist method |
inputLimitation | com.fujitsu.jbk.gui | Y | Y | Input restriction |
inputMode | int | Y | Y | Character set and character size |
inputStyle | int | Y | Y | Character string conversion window type |
insertMode | int | Y | Y | Input mode |
length | int | Y | Character string length | |
lineHeight | int | Y | Y | Height of line |
locale | java.util | Y | Y | Locale information |
maxByteLength | int | Y | Y | Maximum number of input-enabled bytes |
maxLength | int | Y | Y | Maximum number of input-enabled characters |
name | java.lang | Y | Y | Name |
remoteFont | boolean | Y | Whether the registered font is a remote font | |
reverse | boolean | Y | Y | Whether to display in reverse video or not |
rows | int | Y | Y | Number of the character display lines |
scrollbarVisibility | int | Y | Y | How to display scroll bar |
selectedInFocus | boolean | Y | Y | Whether to select all the character string when focused or not |
selectedText | java.lang | Y | Selected character string | |
selectionEnd | int | Y | Y | Selection end position |
selectionStart | int | Y | Y | Select start position |
text | java.lang | Y | Y | Character string |
textEditKey | com.fujitsu.jbk.gui | Y | Y | Function key manager |
toolTipText | java.lang | Y | Y | Tool tip text |
underlineColor | java.awt | Y | Y | Underline color |
underlineType | int | Y | Y | Underline type |
visible | boolean | Y | Y | Whether visible |
wheelScrollingEnabled | boolean | Y | Y | Whether to enable scrollbar operation with mouse wheel |
wordWrap | boolean | Y | Y | Word wrap/no word wrap |
wordWrapIterator | java.text | Y | Y | Whether specify the pause of word to wrap around. |
Event information
Name | Listener | Addition/removal | Method | Explanation |
---|---|---|---|---|
action | java.awt.event | addActionListener | actionPerformed | Is issued when automatically exited. And it can be issued when the Enter key is pressed with the customization function of the function key, too. |
autoEscape | com.fujitsu.jbk.gui | addAutoEscapeListener | autoEscape | Is issued immediately prior to automatic exit. |
component | java.awt.event | addComponentListener | componentResized | Is issued when the component status changes. |
componentMoved | ||||
componentShown | ||||
componentHidden | ||||
compound | com.fujitsu.jbk.gui | addCompoundEventListener | startProcessEvent | Is issued when the event of edit field and scrollbar is fired. |
endProcessEvent | ||||
focus | java.awt.event | addFocusListener | focusGained | Is issued when the focus moves. |
focusLost | ||||
hyperLink | com.fujitsu.jbk.gui | addHyperLinkListener | mouseEntered | Is issued when a hyperlink is used |
mouseExited | ||||
mouseClicked | ||||
inputError | com.fujitsu.jbk.gui | addInputErrorListener | inputError | Is issued when a character string input error occurs. |
inputMethod | java.awt.event | addInputMethodListener | caretPositionChanged | Is issued when the input method status changes. |
inputMethodTextChanged | ||||
key | java.awt.event | addKeyListener | keyTyped | Is issued by key operation. |
keyPressed | ||||
keyReleased | ||||
mouse | java.awt.event | addMouseListener | mouseClicked | Is issued by mouse operation. |
mousePressed | ||||
mouseReleased | ||||
mouseEntered | ||||
mouseExited | ||||
mouseMotion | java.awt.event | addMouseMotionListener | mouseDragged | Is issued when the mouse moves. |
mouseMoved | ||||
mouseWheel | java.awt.event | addMouseWheelListener | mouseWheelMoved | Is issued by mouse wheel operation. |
propertyChange | java.beans | addPropertyChangeListener | propertyChange | Is issued when the property changes. |
text | java.awt.event | addTextListener | textValueChanged | Is issued when a character is input. |
Method information
Name | Parameters | Explanation |
---|---|---|
addEnableChar | char | Adds an input enabled character. |
append | java.lang | Adds a specified character string at the end of the current text. |
canCopy | Returns whether copy is possible. | |
canCut | Returns whether cut is possible. | |
canPaste | Returns whether paste is possible. | |
copy | Copies the selected character string onto the clipboard. | |
cut | Cuts the selected character string onto the clipboard. | |
getLineCount | Returns the line. | |
getMinimumSize | int | Returns the minimum size of this component which has the specified number of the lines, and the number of the column. |
int | ||
getPreferredSize | int | Returns the optimum size of this component which has the specified number of the lines, and the number of the column. |
int | ||
getStringForRange | int | Returns the partial character string. |
int | ||
hideToolTip | Erases the tool tip. | |
insert | java.lang | Inserts the character string into the selected area. |
int | ||
insertText | java.lang | Inserts the character string into the selected area. |
paste | Pastes from the clipboard. | |
replaceRange | java.lang | Replaces the specified range of character string by the substitute character string. |
int | ||
int | ||
requestFocus | Requests an input focus. | |
select | int | Partially selects the character string. |
int | ||
selectAll | Selects the entire character string. | |
selectCancel | Cancels the selection of the character string. | |
showToolTip | java.lang | Displays the tool tip. |
java.awt | ||
java.awt | ||
long | ||
transferFocus | Moves the focus to the next component. |
Customizer
Mode
Set the operation mode in the text area.
Set automatic exit or no automatic exit. If this item is checked, automatic exit is performed.
Set whether to enable editing. If this item is checked, editing is enabled.
Set the reverse video mode or not. If this is checked, the display is in reverse mode.
Set to select all the character string or not when acquiring input focus. If this item is checked, all are selected.
Set to blink character string or not. If checked, the character string blinks. The interval time can be set in the 'Blink Interval' of the 'Paint' property.
Set whether to change the input mode automatically when the focus moves. If this item is checked, the input mode is changed.
Set the display status of the input caret. If checked, the input caret is displayed.
Set whether to convert YEN SIGN. If checked, character code conversion is performed.
For the character codes to be converted, see the following table:
SJIS | Unicode | Microsoft |
---|---|---|
0x815F | 0x005C[REVERSE SOLIDUS] | [Unicode]U+00A5[YEN SIGN] |
Set whether word wrap. If this item is checked, words are wrapped.
Set whether to fire the start/finish event of edit field and scrollbar. If checked, the event is fired.
Set whether to enable scrolling with mouse wheel. If checked, scrolling with mouse wheel operation is enabled.
Select the input mode from among Alphanumeric, Hiragana, Katakana, Direct input, or System Default. This is available only when 'Automatic Change of Input Mode' is checked.
Select the input character size of the field from 1-byte character or 2-byte character. This is available only when 'Automatic Change of Input Mode' is checked.
Select the conversion mode for the input character string from among Conversion, None or Not specified. This is available only when 'Automatic Change of Input Mode' is checked.
Select the display position of the character string conversion window from the default position and component. To use this function, 'Automatic Change of Input Mode' must be checked.
Set whether to assist input of characters using a Japanese input system. By setting the conversion method, determination operations during input can be omitted.
Select the input mode from Insert/Overwrite.
Select the word wrap type from among None, Character, Line, Sentence, Word, or Set Word Wrap Chars.
The finding the location of boundaries in text. of Character, Line, Sentence, Word, and Set Word Wrap Chars is following:
Character
The boundary analysis is created by used BreakIterator.getCharacterInstance().
See also Appendix D About boundary analysis of word wrap function for the details.
Line
The boundary analysis is created by used BreakIterator.getLineInstance().
See also Appendix D About boundary analysis of word wrap function for the details.
Sentence
The boundary analysis is created by used BreakIterator.getSentenceInstance().
See also Appendix D About boundary analysis of word wrap function for the details.
Word
The boundary analysis is created by used BreakIterator.getWordInstance().
See also Appendix D About boundary analysis of word wrap function for the details.
Set Word Wrap Chars
The boundary analysis is the word specified by 'Word Wrap Chars'.
Information
JFTextArea does a word wrap when a string between the boundary specified by 'Word Wrap Type', and the boundary isn't set at the end of the line.
It becomes the following movement with JFTextArea when "Character/Line/Sentence/Word" is specified for 'Word Wrap Type'.
Example sentences:
"This sample explains the word wrap type of JFTextArea. Please see the attached document #1."
Result:
Character
This sample explains the word wrap type of JFTextArea. Please s |
Line
This sample explains the word wrap type of JFTextArea. Please |
Sentence
This sample explains the word wrap type of JFTextArea. |
Word
This sample explains the word wrap type of JFTextArea. Please |
Set the word wrap chars.
The word wrap character specified here is effective only at the time 'Set Word Wrap Chars' is specified by 'Word Wrap Type'. When a tab character is specified, set \t.
Paint
Set information concerning the text area display.
Select the scroll bar type from among Both, Only Horizontal, Only Vertical(Loopback display), or NO(Loopback display).
Set the blink interval of the display character string in milliseconds (ms). Specify from 1 to 2147483647 as the blink interval.
Set the underline color. When the button is pressed, Color setting dialog is displayed.
Select the underline type from among None, Convex, Concave, or Flat.
Set the foreground/background color of inactive. When the button is pressed, [Foreground Color/Background Color] setting dialog is displayed.
Select the caret style from among Vertical Line, Full-size, Half-size, Quarter-size, or Underline. A different status can be set for each input mode: overwrite and insert.
Set whether or not the caret blinks. A different status can be set for each input mode: overwrite and insert.
Specify whether to display hyperlinks.
Sets the color in which the string of a hyperlink is displayed.
Sets the color in which the string of a visited hyperlink is displayed.
Value
Set the text area value.
Set the value to be displayed in the text area.
Other
Set other information.
Set the caret position. Specify from 0 to the number of value's characters as the caret position.
Set the character which is used to decide the size of the component.
Set the number of the columns that a character is displayed. Specify from 0 to 2147483647 as the number of character columns.
Set the number of the lines that a character is displayed. Specify from 0 to 2147483647 as the number of character display lines.
Set the maximum number of input enabled characters. When -1 is set, the maximum number of input characters is not checked. Specify from -1 to 2147483647 as the maximum number of input enabled characters.
Set the maximum number of input-enabled bytes. When -1 is set, the maximum number of input input-enabled bytes is not checked. The specified value is invalid if maximum number of input enabled characters is bigger than -1. Specify from -1 to 2147483647 as the maximum number of input-enabled bytes.
Set the selection start position. Specify from 0 to the caret position as the selection start position.
Set the selection end position. Specify from the selection start position to the caret position as the selection end position.
Set the characters that to be allowed for input. Set as a character string the characters that you want to allow for input.
When a tab character or line feed is specified, set \t, \r, and \n.
Set the height of line. Specify the positive integer for height of the line.
Select the available character set for the input: English lowercase letter, English uppercase letter, number, special character and 2-byte character. The unchecked character set cannot be used for the input.
Select the error types for which the warning is sounded from among Error of all digit input check, Error of required input check, Error of input limit check, or Error of invalid character input check.
Select the input restriction from Normal and Extension.
In case of Normal, specifies input restriction with 'Maximum Number of Input Enabled Characters', 'Maximum Number of Input Enabled bytes', 'Input Enabled Character', and 'Input Enabled Character Set'.
In case of Extension, specifies input restriction with the <Set> button is pressed, [Input Limitation] setting dialog is displayed.
When Extension is specified, each input restriction becomes invalid when it is set in Normal . And, when Normal is specified, each input restriction becomes invalid when it is set in Extension.