The Toggle Button Bean has the following information and Customizer functions.
See
"Package Guide"- JFToggleButton
Property information
Name | Type | Reference | Setting | Explanation |
---|---|---|---|---|
autoTurn | boolean | Y | Y | Automatic loopback/no automatic loopback |
background | java.awt | Y | Y | Background color |
borderColor | java.awt | Y | Y | Border line color |
borderType | int | Y | Y | Border line type |
borderWidth | int | Y | Y | Border line width |
buttonAlignment | int | Y | Y | Display position of check box |
buttonBackground | java.awt | Y | Y | Background color of check box |
buttonForeground | java.awt | Y | Y | Foreground color of check box |
buttonGroup | com.fujitsu.jbk.gui | Y | Y | Button group |
componentOrientation | java.awt | Y | Y | The orientation of the string. It depends on the language |
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 |
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 |
ignoreRepaint | boolean | Y | Y | Whether the paint message of the operating system should be ignored |
label | java.lang | Y | Y | Label character string |
locale | java.util | Y | Y | Locale information |
name | java.lang | Y | Y | Name |
preferredColorDisplay | boolean | Y | Y | Whether display the preferred color |
remoteFont | boolean | Y | Whether the registered font is a remote font | |
sendItemEventBySetState | boolean | Y | Y | whether to issue ItemEvent when the state of the toggle button is changed |
state | boolean | Y | Y | State of button |
toolTipText | java.lang | Y | Y | Tool tip text |
visible | boolean | Y | Y | Whether visible |
Event information
Name | Listener | Addition/removal | Method | Explanation |
---|---|---|---|---|
component | java.awt.event | addComponentListener | componentResized | Is issued when the component status changes. |
componentMoved | ||||
componentShown | ||||
componentHidden | ||||
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 the button state changes. |
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. |
Method information
Name | Parameters | Explanation |
---|---|---|
hideToolTip | Erases the tool tip. | |
requestFocus | Requests an input focus. | |
showToolTip | java.lang | Displays the tool tip. |
java.awt | ||
java.awt | ||
long | ||
transferFocus | Moves the focus to the next component. |
Customizer
ToggleButton
Set the toggle button.
Set the label to be displayed for the toggle button.
Set the state either "on" of "off". The "on" state is the toggle button is currently selected.
Mode
Set the toggle button mode.
Select the display position of check box from among Top Left, Center Left, or Bottom Left.
Set the foreground color and background color of the check box. When the button is pressed, [Foreground Color/Background Color] setting dialog is displayed.
Set to paint by preferred color or usual color. If this item is checked, paint by preferred color (when to be not use, paint by impossibility color).
Set whether to fold the label string automatically or not. If checked, the label is automatically folded.
Sets whether to issue ItemEvent when the state of the toggle button is changed.
If this item is checked, ItemEvent isn't issued when the state of the toggle button is changed.