The choice Bean has the following information and Customizer functions.
See
"Package Guide"- JFChoice
Property information
Name | Type | Reference | Setting | Explanation |
---|---|---|---|---|
add | java.lang | Y | Additional string | |
alignmentHorizontal | int | Y | Y | Horizontal position of items |
autoIME | boolean | Y | Y | Automatic change of input mode |
autoSort | boolean | Y | Y | Automatic sort/no automatic sort |
background | java.awt | Y | Y | Background color |
backgroundItems | com.fujitsu.jbk.gui | Y | Background color of item | |
borderColor | java.awt | Y | Y | Border line color |
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 |
drawOffset | com.fujitsu.jbk.gui | Y | Sets the offset to the horizontal display start position. | |
editable | boolean | Y | Y | Editing enabled/disabled |
enableMenu | boolean | Y | Y | Whether to display the popup menu |
enableToolTip | boolean | Y | Y | Whether to display the tool tip |
enabled | boolean | Y | Y | Whether enabled |
excludeTaskbarArea | boolean | Y | Y | Disables display of a popup menu in the taskbar area. |
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 |
foregroundItems | com.fujitsu.jbk.gui | Y | Foreground color of item | |
ignoreRepaint | boolean | Y | Y | Whether the paint message of the operating system should be ignored |
image | (Array) | (Array) | (Array) | Image |
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 |
inputMode | int | Y | Y | Character set and character size |
inputStyle | int | Y | Y | Character string conversion window type |
insert | com.fujitsu.jbk.gui | Y | Inserted string | |
interLockMode | boolean | Y | Y | Whether to select the item interlocked with the searched item |
item | (Array) | (Array) | Specified index item | |
itemCount | int | Y | Number of added items | |
locale | java.util | Y | Y | Locale information |
name | java.lang | Y | Y | Name |
notFollowCursor | boolean | Y | Y | Whether the selection on the popup menu changes following the movement of the mouse cursor |
popupInputMode | boolean | Y | Y | Whether the editing is enabled while the popup list is displayed |
popupReduceFontMinimumSize | int | Y | Y | Minimum size of the reduced font size in the popup list |
popupReduceFontMode | boolean | Y | Y | Whether the font size is reduced in accordance with the width of the popup list or not |
popupVariableWidthMode | boolean | Y | Y | Whether the width is variable in accordance with the maximum width of items |
popupVisible | boolean | Y | Whether the popup list is visible or not | |
remoteFont | boolean | Y | Whether the registered font is a remote font | |
remove | int | Y | Removed string | |
screenInsets | java.awt | Y | Y | screen insets |
searchable | boolean | Y | Y | Search in accordance with the input/no |
selectByAction | boolean | Y | Y | Whether selects the items synchronizing with the notice of the ActionEvent when editing. |
selectedIndex | int | Y | Selected item index | |
selectedItem | java.lang | Y | Selected item | |
selectedObjects | java.lang | Y | Selected object | |
selectviewMode | boolean | Y | Y | Whether the selected item is highlight or not |
spreadMode | boolean | Y | Y | Whether show adjusting to the class's size. |
text | java.lang | Y | Y | Character string input in the edit field |
toolTipText | java.lang | Y | Y | Tool tip text |
visible | boolean | Y | Y | Whether visible |
wheelScrollingEnabled | boolean | Y | Y | Whether to enable scrollbar operation with mouse wheel |
Event information
Name | Listener | Addition/removal | Method | Explanation |
---|---|---|---|---|
action | java.awt.event | addActionListener | actionPerformed | Is issued when the Enter key is pressed on the edit field. |
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 is fired. |
endProcessEvent | ||||
focus | java.awt.event | addFocusListener | focusGained | Is issued when the focus moves. |
focusLost | ||||
inputMethod | java.awt.event | addInputMethodListener | caretPositionChanged | Is issued when the input method status changes. |
inputMethodTextChanged | ||||
item | java.awt.event | addItemListener | itemStateChanged | Is issued when an item is selected. |
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. |
popup | com.fujitsu.jbk.gui | addPopupListener | popupVisibled | Is issued when the popup list is displayed or closed. |
popupInvisibled | ||||
propertyChange | java.beans | addPropertyChangeListener | propertyChange | Is issued when the property changes. |
text | java.awt.event | addTextListener | textValueChanged | Is issued when character string changes in editing field. |
Method information
Name | Parameters | Explanation |
---|---|---|
add | java.lang | Adds an item. |
hideToolTip | Erases the tool tip. | |
insert | int | Adds an item at the specified position. |
java.lang | ||
remove | int | Deletes the specified index item. |
remove | java.lang | Deletes the specified item. |
removeAll | Deletes all items. | |
requestFocus | Requests an input focus. | |
select | int | Selects the index at the specified position. |
select | java.lang | Selects the specified item. |
showToolTip | java.lang | Displays the tool tip. |
java.awt | ||
java.awt | ||
long | ||
sortItem | int | Sorts added items. |
transferFocus | Moves the focus to the next component. |
Customizer
Mode
Set the choice operation mode.
Set whether or not to sort automatically. If checked, automatic sort is performed.
Set whether or not editing is enabled. If checked, selected items of choice can be edited directly. The result of editing is reflected on the edit field, but not reflected on the item.
Set whether to change the input mode automatically when the focus moves. If this item is checked, the input mode is changed.
Set whether to search items according to the input string in the edit field. If checked, the item is incrementally searched with the input. This is available only when 'Edit' is checked.
Specifies whether shows the selected items adjusting to the preferred size of font or shows adjusting to the size of this class. If checked, shows adjusting to the size of this class.
Sets whether selects the items of edit field with the notice of the ActionEvent. If this item is checked, select when the ActionEvent is notified by pressing the Enter key.
Set whether or not editing is enabled while the popup list is displayed. If checked, editing is enabled while the popup list is displayed. This is available only when 'Edit' is checked.
Set whether or not to select the item interlocked with the searched item. If checked, the item is selected with the searched item. This is available only when 'Search in accordance with the input' is checked.
Set whether or not the width of popup list is variable. If checked, the width of popup list is fitted to the most width of items.
Set whether or not the font size is reduced, when the width of the string item is longer than the popup list. If checked, the font size is reduced. This is available only when 'Popup with a variable width' is checked.
Set whether to fire the start/finish event of edit field. If checked, the event is fired.
Set whether or not to highlight the selected item. If checked, the selected item is not highlighted.
The item selection does not change following the mouse cursor on the popup menu.
Set whether to enable scrolling of Popup with operations of 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.
Sets (update) the minimum value of reduced font size, when the 'Popup with a variable font size' is checked. Specify from -1 to 2147483647 as the minimum value of reduced font size.
Set the foreground/background color of inactive. When the button is pressed, [Foreground Color/Background Color] setting dialog is displayed.
Paint
Set information concerning choice display.
Select the horizontal display position of items from left-justified, centered, and right-justified.
The popup menu cannot be displayed in the taskbar area.
Select whether or not to set insets relative to screen size.
Set the upper inset with a pixel value relative to screen size. Specify a value ranging from -2147483648 to 2147483647.
Set the left inset with a pixel value relative to screen size. Specify a value ranging from -2147483648 to 2147483647.
Set the bottom inset with a pixel value relative to screen size. Specify a value ranging from -2147483648 to 2147483647.
Set the right inset with a pixel value relative to screen size. Specify a value ranging from -2147483648 to 2147483647.
Item
Set information concerning choice items.
In the initial status, items cannot be set. First, add a null item using the <Add> button, and then set information concerning each item. To edit an item, select the (index of) item to be edited.
Adds a null item to the end of the choice.
Insert a null item before the specified index.
Deletes the specified index.
Select the index to be set from the list and set (update) the item.
Sets (update) the offset to the horizontal display start position of the selected index from list. Specify from 0 to 2147483647 as the offset.
Set the foreground/background color of item of the selected index from list. When the button is pressed, [Foreground Color/Background Color] setting dialog is displayed.