Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.cybertivity.powerjournal.framework
Class ActionFactory.ToggleAction  view ActionFactory.ToggleAction download ActionFactory.ToggleAction.java

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended bycom.cybertivity.powerjournal.framework.ActionFactory.DefaultAction
          extended bycom.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:
getState in class ActionFactory.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:
menuItemFactory in class ActionFactory.DefaultAction