The tool bar Bean has the following information and Customizer functions.
See
"Package Guide"- JFToolbar
Property information
Name | Type | Reference | Setting | Explanation |
---|---|---|---|---|
background | java.awt | Y | Y | Background color |
borderColor | java.awt | Y | Y | Border line color |
componentOrientation | java.awt | Y | Y | The orientation of the string. It depends on the language |
controlEnabled | boolean | Y | Y | Whether to operation of the possible/impossibility of the added component |
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 |
hgap | int | Y | Y | Left and right gaps for the default layout |
ignoreRepaint | boolean | Y | Y | Whether the paint message of the operating system should be ignored |
layout | java.awt | Y | Y | Layout manager |
locale | java.util | Y | Y | Locale information |
name | java.lang | Y | Y | Name |
orientation | int | Y | Y | Orientation |
remoteFont | boolean | Y | Whether the registered font is a remote font | |
separatorLine | boolean | Y | Y | Line display/no display for separator (delimiter space) |
separatorSize | int | Y | Y | Separator (delimiter space) size |
toolTip | com.fujitsu.jbk.gui | Y | Tool tip | |
toolTipText | java.lang | Y | Y | Tool tip text |
toolTipsBackground | java.awt | Y | Y | Tool tip Background color |
toolTipsColor | java.awt | Y | Y | Tool tip character color |
toolTipsDisplay | boolean | Y | Y | Tool tip display/no display |
vgap | int | Y | Y | Top and bottom gaps for the default layout |
visible | boolean | Y | Y | Whether visible |
Event information
Name | Listener | Addition/removal | Method | Explanation |
---|---|---|---|---|
action | java.awt.event | addActionListener | actionPerformed | Is issued when the registered component issues ActionEvent. |
adjustment | java.awt.event | addAdjustmentListener | adjustmentValueChanged | Is issued when the registered component issues AdjustmentEvent. |
component | java.awt.event | addComponentListener | componentResized | Is issued when the component status changes. |
componentMoved | ||||
componentShown | ||||
componentHidden | ||||
container | java.awt.event | addContainerListener | componentAdded | Is issued when the pasted status changes. |
componentRemoved | ||||
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 registered component issues ItemEvent. |
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 the registered component issues TextEvent. |
Method information
Name | Parameters | Explanation |
---|---|---|
add | java.awt | Adds the component to the end. |
add | java.awt | Inserts the component into the specified index. |
int | ||
add | java.awt | Adds the component to the end. |
java.lang | ||
add | java.awt | Inserts the component into the specified index. |
java.lang | ||
int | ||
addSeparator | Adds a separator (delimiter space) to the end. | |
hideToolTip | Erases the tool tip. | |
insertSeparator | int | Inserts the separator (delimiter space) into the specified index. |
moveComponent | int | Moves the component and separator (delimiter space). |
int | ||
remove | int | Deletes the component of the specified index. |
remove | java.awt | Deletes the specified component. |
removeAll | Deletes all components. | |
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
Tool Tip
Set the tool tip attribute.
In the initial status, no 'Index' or 'Tool Tip Text' can be set. Using the screen designer (screen edit function) of the integrated development environment, paste components on a tool bar, then make the settings.
Set the foreground color and background color of the tool tip. When the button is pressed, [Foreground Color/Background Color] setting dialog is displayed.
Set display/no display for the tool tip. When this item is checked, and the mouse cursor is positioned on the tool bar button, the tool tip is displayed.
Specify the index of the component to set the tool tip text. For the index, set a series of positive integers starting at 0. The maximum value of the index is the number of components minus 1.
Set the tool tip text in the component specified by 'Index'.
Note
If you used the screen designer of the integrated development environment, this method may be called before a method that pastes components on a tool bar.
Because such a situation leads to an error, use the source editor of the integrated development environment to change the order of calling methods as follows:
Example: Pasting an image button on the tool bar and setting "Change" in the tool tip text
JFImageButton button = new JFImageButton("Change"); JFToolbar toolbar = new JFToolbar(); tabpanel.add(button); // Paste an image button on the tool bar. toolbar.setToolTip(0,"Change"); // Set tool tip text. |
Layout
Set the tool bar layout.
The 'Line Display on Separator' and 'Separator Width' are effective only at the time specified separator.
The Separator isn't able to add, insert, remove by Customizer. When the Separator is operated, use the source editor of the integrated development environment.
Select the tool bar orientation from Vertical/Horizontal.
Sets whether to display the line to the separator. If this item is checked, to display the line to the separator
Set the separator width with a pixel value. Specify from 1 to 2147483647 as the separator width.
When the 'Default' is set for the 'Layout,' set the spacing from the top and bottom edges of the tool bar to the component by a pixel value. Specify from 0 to 2147483647 as the spacing from the top and bottom edges in default layout.
When the 'Default' is set for the 'Layout,' set the spacing from the left and right edges of the tool bar to the component by a pixel value. Specify from 0 to 2147483647 as the spacing from the left and right edges in default layout.