com.dlsc.flexgantt.swing.action.treetable
Class AbstractTreeTableAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by com.dlsc.flexgantt.swing.action.AbstractFlexGanttAction
          extended by com.dlsc.flexgantt.swing.action.treetable.AbstractTreeTableAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
Direct Known Subclasses:
ClearSelectionAction, CollapseNodeAction, DeleteNodeAction, ExpandNodeAction, SelectAllNodesAction

public abstract class AbstractTreeTableAction
extends AbstractFlexGanttAction

An abstract action implementation that is specialized on performing operations on a tree table. The class provides methods for setting and getting a reference to a tree table.

Since:
1.0
Author:
Dirk Lemmermann
See Also:
Serialized Form

Field Summary
protected  TreeTable treeTable
          Stores a reference to the tree table.
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
AbstractTreeTableAction(TreeTable table, java.lang.String name)
          Constructs a new tree table action.
AbstractTreeTableAction(TreeTable table, java.lang.String name, javax.swing.Icon icon)
          Constructs a new tree table action.
 
Method Summary
 TreeTable getTreeTable()
          Returns the tree table on which the action will be performed.
 void setTreeTable(TreeTable table)
          Sets the tree table on which the action will be performed.
 
Methods inherited from class com.dlsc.flexgantt.swing.action.AbstractFlexGanttAction
getToolTipText, setToolTipText
 
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

treeTable

protected TreeTable treeTable
Stores a reference to the tree table.

Since:
1.0
See Also:
setTreeTable(TreeTable), getTreeTable()
Constructor Detail

AbstractTreeTableAction

public AbstractTreeTableAction(TreeTable table,
                               java.lang.String name,
                               javax.swing.Icon icon)
Constructs a new tree table action.

Parameters:
table - the tree table on which the action will be performed
name - the name of the action that will be displayed on buttons and / or menu items
icon - a graphical representation of the action
Since:
1.0

AbstractTreeTableAction

public AbstractTreeTableAction(TreeTable table,
                               java.lang.String name)
Constructs a new tree table action.

Parameters:
table - the tree table on which the action will be performed
name - the name of the action that will be displayed on buttons and / or menu items
Since:
1.0
Method Detail

getTreeTable

public TreeTable getTreeTable()
Returns the tree table on which the action will be performed.

Returns:
the actions target tree table
Since:
1.0

setTreeTable

public void setTreeTable(TreeTable table)
Sets the tree table on which the action will be performed.

Parameters:
table - the action's target tree table
Since:
1.0