|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.AbstractAction
eu.beesoft.gantt.action.AbstractGanttAction
eu.beesoft.gantt.action.AbstractTreeTableAction
public abstract class AbstractTreeTableAction
Abstract action to support gantt treetable operations.
| Field Summary |
|---|
| Fields inherited from class javax.swing.AbstractAction |
|---|
enabled, changeSupport |
| 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(JGantt component)
Constructor. |
|
| Method Summary | |
|---|---|
protected void |
clearSelection()
Clears selection in tree table. |
protected GanttModel |
getGanttModel()
Returns the instance of GanttModel. |
protected java.util.List<GanttNode> |
getSelectedNodes()
Returns a list of selected instances of GanttNode (never null). |
protected GanttTreeTable |
getTreeTable()
Returns the instance of GanttTreeTable. |
protected void |
insertNode(GanttNode node,
GanttNode newParent,
int index,
UndoStep undo)
Inserts given node into the specified position in the
treetable hierarchy. |
protected void |
removeNode(GanttNode node,
UndoStep undo)
Removes given node from the treetable hierarchy. |
protected void |
selectNode(GanttNode node)
Selects given node in tree table. |
| Methods inherited from class eu.beesoft.gantt.action.AbstractGanttAction |
|---|
actionPerformed, executeAction, getGantt, getTextFromResourceBundle, languageChanged |
| 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 |
| Constructor Detail |
|---|
public AbstractTreeTableAction(JGantt component)
component - JGantt instance to which this action belongs| Method Detail |
|---|
protected GanttTreeTable getTreeTable()
GanttTreeTable.
protected GanttModel getGanttModel()
GanttModel.
protected java.util.List<GanttNode> getSelectedNodes()
GanttNode (never null).
protected void removeNode(GanttNode node,
UndoStep undo)
node from the treetable hierarchy.
node - - node to removeundo - - register for undo / redo operations
protected void insertNode(GanttNode node,
GanttNode newParent,
int index,
UndoStep undo)
node into the specified position in the
treetable hierarchy.
node - - node to insertnewParent - - new parent for nodeindex - - index in the new parent children list, where to insert
objectundo - - register for undo / redo operationsprotected void clearSelection()
protected void selectNode(GanttNode node)
node in tree table.
node - - node to select
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||