Top
Interstage Studio J Business Kit GUI Library User's Guide
FUJITSU Software

3.6 Choice Bean

The choice Bean has the following information and Customizer functions.

See

"Package Guide"- JFChoice

Property information

Name

Type

Reference

Setting

Explanation

add

java.lang
String

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
Color

Y

Y

Background color

backgroundItems

com.fujitsu.jbk.gui
JFIndexObjectProperty

Y

Background color of item

borderColor

java.awt
Color

Y

Y

Border line color

componentOrientation

java.awt
ComponentOrientation

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
JFIndexObjectProperty

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
Font

Y

Y

Font

foreground

java.awt
Color

Y

Y

Foreground color

foregroundItems

com.fujitsu.jbk.gui
JFIndexObjectProperty

Y

Foreground color of item

ignoreRepaint

boolean

Y

Y

Whether the paint message of the operating system should be ignored

image

(Array)
java.awt
Image

(Array)
Y

(Array)

Y

Image

inactiveBackground

java.awt
Color

Y

Y

Background color when inactive

inactiveForeground

java.awt
Color

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
JFIndexObjectProperty

Y

Inserted string

interLockMode

boolean

Y

Y

Whether to select the item interlocked with the searched item

item

(Array)
java.lang
String

(Array)
Y

Specified index item

itemCount

int

Y

Number of added items

locale

java.util
Locale

Y

Y

Locale information

name

java.lang
String

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
Insets

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
String

Y

Selected item

selectedObjects

java.lang
Object[]

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
String

Y

Y

Character string input in the edit field

toolTipText

java.lang
String

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
ActionListener

addActionListener
removeActionListener

actionPerformed

Is issued when the Enter key is pressed on the edit field.

component

java.awt.event
ComponentListener

addComponentListener
removeComponentListener

componentResized

Is issued when the component status changes.

componentMoved

componentShown

componentHidden

compound

com.fujitsu.jbk.gui
JFCompoundEventListener

addCompoundEventListener
removeCompoundEventListener

startProcessEvent

Is issued when the event of edit field is fired.

endProcessEvent

focus

java.awt.event
FocusListener

addFocusListener
removeFocusListener

focusGained

Is issued when the focus moves.

focusLost

inputMethod

java.awt.event
InputMethodListener

addInputMethodListener
removeInputMethodListener

caretPositionChanged

Is issued when the input method status changes.

inputMethodTextChanged

item

java.awt.event
ItemListener

addItemListener
removeItemListener

itemStateChanged

Is issued when an item is selected.

key

java.awt.event
KeyListener

addKeyListener
removeKeyListener

keyTyped

Is issued by key operation.

keyPressed

keyReleased

mouse

java.awt.event
MouseListener

addMouseListener
removeMouseListener

mouseClicked

Is issued by mouse operation.

mousePressed

mouseReleased

mouseEntered

mouseExited

mouseMotion

java.awt.event
MouseMotionListener

addMouseMotionListener
removeMouseMotionListener

mouseDragged

Is issued when the mouse moves.

mouseMoved

mouseWheel

java.awt.event
MouseWheelListener

addMouseWheelListener
removeMouseWheelListener

mouseWheelMoved

Is issued by mouse wheel operation.

popup

com.fujitsu.jbk.gui
JFPopupListener

addPopupListener
removePopupListener

popupVisibled

Is issued when the popup list is displayed or closed.

popupInvisibled

propertyChange

java.beans
PropertyChangeListener

addPropertyChangeListener
removePropertyChangeListener

propertyChange

Is issued when the property changes.

text

java.awt.event
TextListener

addTextListener
removeTextListener

textValueChanged

Is issued when character string changes in editing field.

Method information

Name

Parameters

Explanation

add

java.lang
String

Adds an item.

hideToolTip

Erases the tool tip.

insert

int

Adds an item at the specified position.

java.lang
String

remove

int

Deletes the specified index item.

remove

java.lang
String

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
String

Selects the specified item.

showToolTip

java.lang
String

Displays the tool tip.

java.awt
Point

java.awt
Dimension

long

sortItem

int

Sorts added items.

transferFocus

Moves the focus to the next component.

Customizer