|
|||||||||
| Home >> All >> com >> cybertivity >> powerjournal >> [ framework overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.cybertivity.powerjournal.framework
Class ActionFactory.ToggleAction

java.lang.Objectjavax.swing.AbstractAction
com.cybertivity.powerjournal.framework.ActionFactory.DefaultAction
com.cybertivity.powerjournal.framework.ActionFactory.ToggleAction
- All Implemented Interfaces:
- javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable
- Enclosing class:
- ActionFactory
- public class ActionFactory.ToggleAction
- extends ActionFactory.DefaultAction
A bi-state extension of ToggleAction. Used for toggle buttons.
| Field Summary | |
private javax.swing.JToggleButton |
button
|
private javax.swing.JCheckBoxMenuItem |
menuItem
|
| Fields inherited from class com.cybertivity.powerjournal.framework.ActionFactory.DefaultAction |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, LARGE_ICON, MNEMONIC_KEY, TOOL_TIP |
| Fields inherited from class javax.swing.AbstractAction |
changeSupport, enabled |
| Fields inherited from interface javax.swing.Action |
DEFAULT, LONG_DESCRIPTION, NAME, SHORT_DESCRIPTION, SMALL_ICON |
| Constructor Summary | |
ActionFactory.ToggleAction(java.lang.String name)
Constructor for the ToggleAction object |
|
| Method Summary | |
boolean |
getState()
Get the state for the action. |
javax.swing.JMenuItem |
menuItemFactory(javax.swing.JMenu menu)
Construct a check box menu item for this action and add it to the menu. |
void |
setState(boolean state)
|
| Methods inherited from class com.cybertivity.powerjournal.framework.ActionFactory.DefaultAction |
actionPerformed, addActionListener, getLargeIcon, getSmallIcon, removeActionListener, toolButtonFactory |
| Methods inherited from class javax.swing.AbstractAction |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
menuItem
private javax.swing.JCheckBoxMenuItem menuItem
button
private javax.swing.JToggleButton button
| Constructor Detail |
ActionFactory.ToggleAction
public ActionFactory.ToggleAction(java.lang.String name)
- Constructor for the ToggleAction object
| Method Detail |
getState
public boolean getState()
- Get the state for the action.
- Overrides:
getStatein classActionFactory.DefaultAction
setState
public void setState(boolean state)
menuItemFactory
public javax.swing.JMenuItem menuItemFactory(javax.swing.JMenu menu)
- Construct a check box menu item for this action and add it to the menu.
- Overrides:
menuItemFactoryin classActionFactory.DefaultAction
|
|||||||||
| Home >> All >> com >> cybertivity >> powerjournal >> [ framework overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC