com.virtuosotechnologies.lib.basiccommand.builder
Class ToolBarToggleItemBuilderNode

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.ToolBarToggleItemBuilderNode
All Implemented Interfaces:
ActionListener, EventListener, PropertySetListener

public class ToolBarToggleItemBuilderNode
extends AbstractSwingButtonBuilderNode
implements ActionListener

A builder that creates a special toggle toolbar item that isn't a true ToggleButton 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 ToolBarToggleItemBuilderNode(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

ToolBarToggleItemBuilderNode

protected ToolBarToggleItemBuilderNode(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