com.dlsc.flexgantt.swing.action.eventline
Class DeleteEventlineObjectAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by com.dlsc.flexgantt.swing.action.AbstractFlexGanttAction
          extended by com.dlsc.flexgantt.swing.action.eventline.AbstractEventlineAction
              extended by com.dlsc.flexgantt.swing.action.eventline.DeleteEventlineObjectAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class DeleteEventlineObjectAction
extends AbstractEventlineAction

An action that can be used in the context of the Eventline to delete eventline object. The action will delete all objects that are currently selected in the eventline. The action uses IEditEventlineObjectPolicy to determine whether an object is deletable and which command object to use to actually delete it.

Since:
1.0
Author:
Dirk Lemmermann
See Also:
IEditEventlineObjectPolicy.isDeletable(Object, IEventlineModel), IEditEventlineObjectPolicy.getDeleteCommand(Object, IEventlineModel), Serialized Form

Field Summary
 
Fields inherited from class com.dlsc.flexgantt.swing.action.eventline.AbstractEventlineAction
eventline
 
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
DeleteEventlineObjectAction(Eventline eventline)
          Constructs a new action.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
           
 
Methods inherited from class com.dlsc.flexgantt.swing.action.eventline.AbstractEventlineAction
getEventline, setEventline
 
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
 

Constructor Detail

DeleteEventlineObjectAction

public DeleteEventlineObjectAction(Eventline eventline)
Constructs a new action.

Parameters:
eventline - the eventline on which the action will be performed
Since:
1.0
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)