eu.beesoft.gantt.action
Class MoveNodeDownAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by eu.beesoft.gantt.action.AbstractGanttAction
          extended by eu.beesoft.gantt.action.AbstractTreeTableAction
              extended by eu.beesoft.gantt.action.MoveNodeDownAction
All Implemented Interfaces:
LanguageListener, java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class MoveNodeDownAction
extends AbstractTreeTableAction

This action asks GanttModel.moveObject(TimelineObject, TimelineObject, int, UndoStep) to move a domain object into domain hierarchy and then moves also corresponding GanttNode.

See Also:
Serialized Form

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
MoveNodeDownAction(JGantt component)
          Creates a new instance of MoveNodeDownAction.
 
Method Summary
protected  boolean executeAction(java.awt.event.ActionEvent event, UndoStep undo)
          Moves a selected GanttNode instance in 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

MoveNodeDownAction

public MoveNodeDownAction(JGantt component)
Creates a new instance of MoveNodeDownAction.

Parameters:
component - JGantt instance to which this action belongs
Method Detail

executeAction

protected boolean executeAction(java.awt.event.ActionEvent event,
                                UndoStep undo)
Moves a selected GanttNode instance in the tree hierarchy.

It invokes GanttModel.moveObject(TimelineObject, TimelineObject, int, UndoStep) method to move a appropriate domain object and if it returns true, moves also the selected node.

Specified by:
executeAction in class AbstractGanttAction
Parameters:
event - - event that invoked this action
undo - - register for undo / redo operations
Returns:
true if action finished successfully