|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jgoodies.uif.application.ActionKeys
public final class ActionKeys
Provides Action keys that have been introduced in Java 6.
Field Summary | |
---|---|
static String |
DISPLAYED_MNEMONIC_INDEX_KEY
The key used for storing an Integer that corresponds
to the index in the text (identified by the NAME
property) that the decoration for a mnemonic should be rendered at. |
static String |
LARGE_ICON_KEY
The key used for storing an Icon . |
static String |
SELECTED_KEY
The key used for storing a Boolean that corresponds
to the selected state. |
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String SELECTED_KEY
Boolean
that corresponds
to the selected state. This is typically used only for components
that have a meaningful selection state. For example,
JRadioButton
and JCheckBox
make use of
this but instances of JMenu
don't.
This property differs from the others in that it is both read
by the component and set by the component. For example,
if an Action
is attached to a JCheckBox
the selected state of the JCheckBox
will be set from
that of the Action
. If the user clicks on the
JCheckBox
the selected state of the JCheckBox
and the Action
will both be updated.
Note: the value of this field is prefixed with 'Swing' to
avoid possible collisions with existing Actions
.
public static final String DISPLAYED_MNEMONIC_INDEX_KEY
Integer
that corresponds
to the index in the text (identified by the NAME
property) that the decoration for a mnemonic should be rendered at. If
the value of this property is greater than or equal to the length of
the text, it will treated as -1.
Note: the value of this field is prefixed with 'Swing' to
avoid possible collisions with existing Actions
.
AbstractButton.setDisplayedMnemonicIndex(int)
,
Constant Field Valuespublic static final String LARGE_ICON_KEY
Icon
. This is typically
used by buttons, such as JButton
and
JToggleButton
.
If the same Action
is used with menus and buttons you'll
typically specify both a SMALL_ICON
and a
LARGE_ICON_KEY
. The menu will use the
SMALL_ICON
and the button the LARGE_ICON_KEY
.
Note: the value of this field is prefixed with 'Swing' to
avoid possible collisions with existing Actions
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |