|
Extension SDK 10.1.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.AbstractAction oracle.ide.controls.ToggleAction
Field Summary | |
static java.lang.String |
ACCELERATOR
|
static java.lang.String |
ACTION
Deprecated. |
static java.lang.String |
BUTTON_GROUP_NAME
|
static java.lang.String |
CATEGORY
The category is used in the shortcuts configuration panel to subdivide the list of actions. |
static java.lang.String |
CONTEXT_INDEPENDENT_NAME
The CONTEXT_INDEPENDENT_NAME should be used when the NAME property is context dependent as "Build Project1.jpr". |
static java.lang.String |
DISABLED_ICON
|
static java.lang.String |
HIDDEN
|
static java.lang.String |
MENU_WEIGHT
|
static float |
MENU_WEIGHT_UNASSIGNED
|
static java.lang.String |
MNEMONIC
|
static java.lang.String |
RADIO
|
static java.lang.String |
STATE
|
static java.lang.String |
TOGGLES
|
static java.lang.String |
USER_DATA
|
Fields inherited from class javax.swing.AbstractAction |
changeSupport, enabled |
Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
Constructor Summary | |
|
ToggleAction(java.lang.String name,
ArrayResourceBundle bundle,
int key)
Construct a ToggleAction with the specified description String whose Icon can be lazily fetched from the specified ResourceBundle using the specified key. |
|
ToggleAction(java.lang.String name,
javax.swing.Icon icon)
Construct a ToggleAction with the specified description and Icon. |
|
ToggleAction(java.lang.String name,
java.util.ResourceBundle bundle,
java.lang.String key)
Construct a ToggleAction with the specified description String whose Icon can be lazily fetched when needed from the specified ResourceBundle using the specified key. |
protected |
ToggleAction(ToggleAction action)
|
Method Summary | |
protected boolean |
getBooleanValue(java.lang.String key)
|
float |
getMenuWeight()
Returns the menu weight for this action. |
boolean |
getState()
|
java.lang.Object |
getValue(java.lang.String key)
|
boolean |
isRadio()
|
boolean |
isToggle()
|
void |
itemStateChanged(java.awt.event.ItemEvent e)
|
protected void |
setBooleanValue(java.lang.String key,
boolean newValue)
|
void |
setMenuWeight(float weight)
Sets the menu weight for this action. |
void |
setState(boolean b)
|
Methods inherited from class javax.swing.AbstractAction |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, isEnabled, putValue, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.awt.event.ActionListener |
actionPerformed |
Field Detail |
public static final java.lang.String ACTION
public static final java.lang.String MNEMONIC
public static final java.lang.String ACCELERATOR
public static final java.lang.String USER_DATA
public static final java.lang.String DISABLED_ICON
public static final java.lang.String TOGGLES
public static final java.lang.String RADIO
public static final java.lang.String STATE
public static final java.lang.String HIDDEN
public static final java.lang.String BUTTON_GROUP_NAME
public static final java.lang.String MENU_WEIGHT
public static final float MENU_WEIGHT_UNASSIGNED
public static final java.lang.String CATEGORY
public static final java.lang.String CONTEXT_INDEPENDENT_NAME
Constructor Detail |
public ToggleAction(java.lang.String name, javax.swing.Icon icon)
name
- icon
- public ToggleAction(java.lang.String name, java.util.ResourceBundle bundle, java.lang.String key)
name
- bundle
- key
- public ToggleAction(java.lang.String name, ArrayResourceBundle bundle, int key)
name
- bundle
- key
- protected ToggleAction(ToggleAction action)
Method Detail |
public boolean getState()
public void setState(boolean b)
public boolean isToggle()
public boolean isRadio()
public void setMenuWeight(float weight)
weight
- the new menu weightgetMenuWeight()
,
MenuManager.createMenuItem(ToggleAction)
,
MenuManager.createMenuItem(ToggleAction, float)
public float getMenuWeight()
default menu weight
is returned.
setMenuWeight(float)
protected boolean getBooleanValue(java.lang.String key)
protected void setBooleanValue(java.lang.String key, boolean newValue)
public java.lang.Object getValue(java.lang.String key)
getValue
in interface javax.swing.Action
public void itemStateChanged(java.awt.event.ItemEvent e)
itemStateChanged
in interface java.awt.event.ItemListener
|
Extension SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.