net.clackrouter.actions
Class AbstractActionListCell

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by net.clackrouter.actions.AbstractActionDefault
          extended by net.clackrouter.actions.AbstractActionList
              extended by net.clackrouter.actions.AbstractActionListCell
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action, TranslatorConstants
Direct Known Subclasses:
AbstractActionListCellColor

public abstract class AbstractActionListCell
extends AbstractActionList

See Also:
Serialized Form

Field Summary
protected static java.util.List<java.awt.Point> arrowEndPoints
           
protected static java.util.List<java.awt.Point> arrowPoints
           
static JGraph dummyGraph
          A dummy jgraph for the menu components based on jgraph components.
static java.lang.String IDENTIFIER_RESET
           
static java.lang.String IDENTIFIER_SELECT
           
protected  java.awt.Point point
           
protected  java.awt.Dimension size
           
 
Fields inherited from class net.clackrouter.actions.AbstractActionList
center, ITEM_KEY, u2
 
Fields inherited from class net.clackrouter.actions.AbstractActionDefault
graphpad
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface net.clackrouter.jgraph.pad.resources.TranslatorConstants
PREFIX_COMPONENT, PREFIX_MESSAGE_ERROR, PREFIX_MESSAGE_INFORMATION, PREFIX_MESSAGE_WARING, SUFFIX_ACCELERATOR, SUFFIX_ACTION, SUFFIX_ICON, SUFFIX_IMAGE, SUFFIX_LABEL, SUFFIX_MENU, SUFFIX_MNEMONIC, SUFFIX_TEXT, SUFFIX_TITLE, SUFFIX_TOOL_TIP_TEXT
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
AbstractActionListCell(ClackFramework graphpad)
          Constructor for AbstractActionListCell.
AbstractActionListCell(ClackFramework graphpad, java.lang.String name)
          Constructor for AbstractActionListCell.
AbstractActionListCell(ClackFramework graphpad, java.lang.String name, javax.swing.Icon icon)
          Constructor for AbstractActionListCell.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
protected abstract  void fillApplyMap(CellView source, java.util.Map target)
           
protected abstract  void fillCustomItems(java.util.Vector items)
           
protected abstract  void fillResetMap(java.util.Map target)
           
protected  java.lang.Object[] getItems()
          You should return a hashtable with the possible items.
protected  javax.swing.JComboBox getToolBarComponent()
           
protected abstract  void selectAndFillMap(java.util.Map target)
           
 
Methods inherited from class net.clackrouter.actions.AbstractActionList
getItemListCellRenderer, getItemPresentationText, getMenuBarComponent, getMenuComponent, getMenuComponents, getSelectedItem, getToolComponents, tokenize
 
Methods inherited from class net.clackrouter.actions.AbstractActionDefault
getCurrentDocument, getCurrentGraph, getCurrentGraphLayoutCache, getGraphpad, getMenuComponent, getName, getPresentationText, getToolComponent, setGraphpad, setSelectionAttributes, update
 
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

dummyGraph

public static JGraph dummyGraph
A dummy jgraph for the menu components based on jgraph components. (For example the arrows.)


IDENTIFIER_RESET

public static final java.lang.String IDENTIFIER_RESET
See Also:
Constant Field Values

IDENTIFIER_SELECT

public static final java.lang.String IDENTIFIER_SELECT
See Also:
Constant Field Values

arrowPoints

protected static java.util.List<java.awt.Point> arrowPoints

arrowEndPoints

protected static java.util.List<java.awt.Point> arrowEndPoints

size

protected java.awt.Dimension size

point

protected java.awt.Point point
Constructor Detail

AbstractActionListCell

public AbstractActionListCell(ClackFramework graphpad)
Constructor for AbstractActionListCell.

Parameters:
graphpad -

AbstractActionListCell

public AbstractActionListCell(ClackFramework graphpad,
                              java.lang.String name)
Constructor for AbstractActionListCell.

Parameters:
graphpad -
name -

AbstractActionListCell

public AbstractActionListCell(ClackFramework graphpad,
                              java.lang.String name,
                              javax.swing.Icon icon)
Constructor for AbstractActionListCell.

Parameters:
graphpad -
name -
icon -
Method Detail

getToolBarComponent

protected javax.swing.JComboBox getToolBarComponent()
Overrides:
getToolBarComponent in class AbstractActionList
See Also:
AbstractActionList.getToolBarComponent()

getItems

protected java.lang.Object[] getItems()
Description copied from class: AbstractActionList
You should return a hashtable with the possible items.

Specified by:
getItems in class AbstractActionList
See Also:
AbstractActionList.getItems()

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
See Also:
ActionListener.actionPerformed(ActionEvent)

fillCustomItems

protected abstract void fillCustomItems(java.util.Vector items)

fillResetMap

protected abstract void fillResetMap(java.util.Map target)

fillApplyMap

protected abstract void fillApplyMap(CellView source,
                                     java.util.Map target)

selectAndFillMap

protected abstract void selectAndFillMap(java.util.Map target)