|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.AbstractAction net.clackrouter.actions.AbstractActionDefault net.clackrouter.actions.AbstractActionList
public abstract class AbstractActionList
Field Summary | |
---|---|
static java.awt.Point |
center
|
static java.lang.String |
ITEM_KEY
Item key for the user item |
static int |
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 | |
---|---|
AbstractActionList(ClackFramework graphpad)
Constructor for AbstractActionList. |
|
AbstractActionList(ClackFramework graphpad,
java.lang.String name)
Constructor for AbstractActionList. |
|
AbstractActionList(ClackFramework graphpad,
java.lang.String name,
javax.swing.Icon icon)
Constructor for AbstractActionList. |
Method Summary | |
---|---|
protected javax.swing.ListCellRenderer |
getItemListCellRenderer()
Returns the List Cell Renderer for the Items. |
protected java.lang.String |
getItemPresentationText(java.lang.Object item)
Returns the item presentation text (buttonEdge for the MenuItem). |
protected abstract java.lang.Object[] |
getItems()
You should return a hashtable with the possible items. |
protected javax.swing.JMenu |
getMenuBarComponent()
|
protected java.awt.Component |
getMenuComponent(java.lang.String actionCommand,
java.lang.Object itemValue)
Returns a JMenuItem with a link to this action. |
java.awt.Component[] |
getMenuComponents()
Creates by default an arry with one entry. |
protected java.lang.Object |
getSelectedItem(java.awt.event.ActionEvent e)
|
protected javax.swing.JComboBox |
getToolBarComponent()
|
java.awt.Component[] |
getToolComponents()
Returns by default a list with one JButton. |
protected static java.lang.String[] |
tokenize(java.lang.String input)
|
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 |
Methods inherited from interface java.awt.event.ActionListener |
---|
actionPerformed |
Field Detail |
---|
public static int u2
public static java.awt.Point center
public static final java.lang.String ITEM_KEY
Constructor Detail |
---|
public AbstractActionList(ClackFramework graphpad)
graphpad
- public AbstractActionList(ClackFramework graphpad, java.lang.String name)
graphpad
- name
- public AbstractActionList(ClackFramework graphpad, java.lang.String name, javax.swing.Icon icon)
graphpad
- name
- icon
- Method Detail |
---|
public java.awt.Component[] getMenuComponents()
AbstractActionDefault
getMenuComponents
in class AbstractActionDefault
AbstractActionDefault.getMenuComponents()
protected javax.swing.JMenu getMenuBarComponent()
public java.awt.Component[] getToolComponents()
AbstractActionDefault
getToolComponents
in class AbstractActionDefault
AbstractActionDefault.getToolComponents()
protected javax.swing.JComboBox getToolBarComponent()
protected java.lang.Object getSelectedItem(java.awt.event.ActionEvent e)
protected java.awt.Component getMenuComponent(java.lang.String actionCommand, java.lang.Object itemValue)
protected abstract java.lang.Object[] getItems()
protected javax.swing.ListCellRenderer getItemListCellRenderer()
protected java.lang.String getItemPresentationText(java.lang.Object item)
protected static java.lang.String[] tokenize(java.lang.String input)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |