com.jgoodies.uif.application
Class ActionKeys

java.lang.Object
  extended by com.jgoodies.uif.application.ActionKeys

public final class ActionKeys
extends Object

Provides Action keys that have been introduced in Java 6.

Version:
$Revision: 1.3 $
Author:
Karsten Lentzsch

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

SELECTED_KEY

public static final String SELECTED_KEY
The key used for storing a 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.

See Also:
Constant Field Values

DISPLAYED_MNEMONIC_INDEX_KEY

public static final 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. 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.

See Also:
AbstractButton.setDisplayedMnemonicIndex(int), Constant Field Values

LARGE_ICON_KEY

public static final String LARGE_ICON_KEY
The key used for storing an 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.

See Also:
Constant Field Values


Copyright © 2000-2008 JGoodies Karsten Lentzsch. All Rights Reserved.