com.virtuosotechnologies.lib.basiccommand.builder
Class MenuToggleItemBuilderNode

java.lang.Object
  extended bycom.virtuosotechnologies.lib.basiccommand.builder.AbstractBuilderNode
      extended bycom.virtuosotechnologies.lib.basiccommand.builder.AbstractElementBuilderNode
          extended bycom.virtuosotechnologies.lib.basiccommand.builder.AbstractSwingButtonBuilderNode
              extended bycom.virtuosotechnologies.lib.basiccommand.builder.MenuToggleItemBuilderNode
All Implemented Interfaces:
ActionListener, EventListener, PropertySetListener

public class MenuToggleItemBuilderNode
extends AbstractSwingButtonBuilderNode
implements ActionListener

A builder that creates a special toggle menu item that isn't a checkbox but instead changes its icon and/or name.


Field Summary
 
Fields inherited from class com.virtuosotechnologies.lib.basiccommand.builder.AbstractBuilderNode
END_POSITION
 
Fields inherited from interface com.virtuosotechnologies.lib.container.PropertySetListener
PROPERTYSET_CHANGED_METHOD
 
Constructor Summary
protected MenuToggleItemBuilderNode(CommandNode commandNode, AbstractBranchBuilderNode parent, int index)
          Constructor
 
Method Summary
 void actionPerformed(ActionEvent ev)
          Action listener that changes the state.
protected  Object createInitialElement()
          Override this method to create the initial element object.
 
Methods inherited from class com.virtuosotechnologies.lib.basiccommand.builder.AbstractSwingButtonBuilderNode
propertySetChanged
 
Methods inherited from class com.virtuosotechnologies.lib.basiccommand.builder.AbstractElementBuilderNode
disabledStateChanged, getCardinality, getElement, hiddenStateChanged, setElement
 
Methods inherited from class com.virtuosotechnologies.lib.basiccommand.builder.AbstractBuilderNode
decGrayLevel, decMaskLevel, dump, getCommandNode, getParent, incGrayLevel, incMaskLevel, isDisabled, isHidden
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MenuToggleItemBuilderNode

protected MenuToggleItemBuilderNode(CommandNode commandNode,
                                    AbstractBranchBuilderNode parent,
                                    int index)
Constructor

Method Detail

createInitialElement

protected Object createInitialElement()
Override this method to create the initial element object.

Specified by:
createInitialElement in class AbstractElementBuilderNode

actionPerformed

public void actionPerformed(ActionEvent ev)
Action listener that changes the state.

Specified by:
actionPerformed in interface ActionListener