|
|||||||||
| 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
eu.beesoft.gantt.action.CreateNodeAction
public class CreateNodeAction
This action asks
GanttModel.createObject(TimelineObject, int, UndoStep) to create new
domain object and then creates a new GanttNode and includes it in
hierarchy.
| 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 | |
|---|---|
CreateNodeAction(JGantt component)
Creates a new instance of CreateNodeAction. |
|
| Method Summary | |
|---|---|
protected boolean |
executeAction(java.awt.event.ActionEvent event,
UndoStep undo)
Creates and includes a new GanttNode instance to the tree
hierarchy. |
| Methods inherited from class eu.beesoft.gantt.action.AbstractTreeTableAction |
|---|
clearSelection, getGanttModel, getSelectedNodes, getTreeTable, insertNode, removeNode, selectNode |
| Methods inherited from class eu.beesoft.gantt.action.AbstractGanttAction |
|---|
actionPerformed, 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 CreateNodeAction(JGantt component)
component - JGantt instance to which this action belongs| Method Detail |
|---|
protected boolean executeAction(java.awt.event.ActionEvent event,
UndoStep undo)
GanttNode instance to the tree
hierarchy.
It invokes GanttModel.createObject(TimelineObject, int, UndoStep)
method to get a new domain object and if it is not null, creates node and
includes it to the parent node.
executeAction in class AbstractGanttActionevent - - event that invoked this actionundo - - register for undo / redo operations
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||