com.virtuosotechnologies.lib.basiccommand.builder
Class ComboBoxBuilderNode

java.lang.Object
  extended bycom.virtuosotechnologies.lib.basiccommand.builder.AbstractBuilderNode
      extended bycom.virtuosotechnologies.lib.basiccommand.builder.AbstractBranchBuilderNode
          extended bycom.virtuosotechnologies.lib.basiccommand.builder.AbstractContainerElementBuilderNode
              extended bycom.virtuosotechnologies.lib.basiccommand.builder.ComboBoxBuilderNode
All Implemented Interfaces:
CommandNodeListener, EventListener, PropertySetListener

public class ComboBoxBuilderNode
extends AbstractContainerElementBuilderNode

A builder that creates a JComboBox


Nested Class Summary
static class ComboBoxBuilderNode.ActionComboBoxRenderer
          A renderer for these types of combo boxes
 
Field Summary
 
Fields inherited from class com.virtuosotechnologies.lib.basiccommand.builder.AbstractBuilderNode
END_POSITION
 
Fields inherited from interface com.virtuosotechnologies.lib.command.CommandNodeListener
ALL_CHILDREN_REMOVED_METHOD, CHILD_ADDED_METHOD, CHILD_REMOVED_METHOD
 
Fields inherited from interface com.virtuosotechnologies.lib.container.PropertySetListener
PROPERTYSET_CHANGED_METHOD
 
Constructor Summary
  ComboBoxBuilderNode(CommandNode commandNode)
          Public constructor used to make standalone JComboBoxes
protected ComboBoxBuilderNode(CommandNode commandNode, AbstractBranchBuilderNode parent, int index)
          Internal constructor used to make JComboBoxes
protected ComboBoxBuilderNode(CommandNode commandNode, AbstractBranchBuilderNode parent, int index, JComboBox comboBox)
          Internal constructor used to make JComboBoxes.
  ComboBoxBuilderNode(CommandNode commandNode, JComboBox comboBox)
          Public constructor used to make standalone JComboBoxes
 
Method Summary
protected  void addElementAt(int pos, Object element)
          Add indexed element
protected  AbstractBuilderNode createChildNode(CommandNode cn, int index)
          Create a child node
protected  Object createInitialElement()
          Override this method to create the initial element object.
 JComboBox getJComboBox()
          Get the built combo box
 void propertySetChanged(PropertySetEvent ev)
          Model changed
protected  void removeAllElements()
          Remove all elements
protected  void removeElementAt(int pos)
          Remove indexed element
 
Methods inherited from class com.virtuosotechnologies.lib.basiccommand.builder.AbstractContainerElementBuilderNode
disabledStateChanged, getCardinality, getElement, hiddenStateChanged
 
Methods inherited from class com.virtuosotechnologies.lib.basiccommand.builder.AbstractBranchBuilderNode
allChildrenRemoved, buildChildren, childAdded, childRemoved, getChild, getChild, getChildren, getNumChildren, getPosition, getPosition, removeChildElements, setElementAt
 
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

ComboBoxBuilderNode

public ComboBoxBuilderNode(CommandNode commandNode)
Public constructor used to make standalone JComboBoxes


ComboBoxBuilderNode

public ComboBoxBuilderNode(CommandNode commandNode,
                           JComboBox comboBox)
Public constructor used to make standalone JComboBoxes


ComboBoxBuilderNode

protected ComboBoxBuilderNode(CommandNode commandNode,
                              AbstractBranchBuilderNode parent,
                              int index)
Internal constructor used to make JComboBoxes


ComboBoxBuilderNode

protected ComboBoxBuilderNode(CommandNode commandNode,
                              AbstractBranchBuilderNode parent,
                              int index,
                              JComboBox comboBox)
Internal constructor used to make JComboBoxes. This is the master constructor.

Method Detail

propertySetChanged

public void propertySetChanged(PropertySetEvent ev)
Model changed

Specified by:
propertySetChanged in interface PropertySetListener
Overrides:
propertySetChanged in class AbstractBuilderNode

createInitialElement

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

Specified by:
createInitialElement in class AbstractContainerElementBuilderNode

createChildNode

protected AbstractBuilderNode createChildNode(CommandNode cn,
                                              int index)
Create a child node

Specified by:
createChildNode in class AbstractBranchBuilderNode

addElementAt

protected void addElementAt(int pos,
                            Object element)
Add indexed element

Specified by:
addElementAt in class AbstractBranchBuilderNode

removeElementAt

protected void removeElementAt(int pos)
Remove indexed element

Specified by:
removeElementAt in class AbstractBranchBuilderNode

removeAllElements

protected void removeAllElements()
Remove all elements

Specified by:
removeAllElements in class AbstractBranchBuilderNode

getJComboBox

public JComboBox getJComboBox()
Get the built combo box