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

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
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
Direct Known Subclasses:
DeleteEventlineObjectAction

public abstract class AbstractEventlineAction
extends AbstractFlexGanttAction

An abstract action implementation that is specialized on performing operations on an eventline. The class provides methods for setting and getting a reference to the dateline.

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

Field Summary
protected  Eventline eventline
          Stores a reference to the 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
AbstractEventlineAction(Eventline eventline, java.lang.String name)
          Constructs a new dateline action.
AbstractEventlineAction(Eventline eventline, java.lang.String name, javax.swing.Icon icon)
          Constructs a new dateline action.
 
Method Summary
 Eventline getEventline()
          Returns the eventline on which the action will be performed.
 void setEventline(Eventline dateline)
          Sets a new eventline 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

eventline

protected Eventline eventline
Stores a reference to the eventline.

Since:
1.0
See Also:
setEventline(Eventline), getEventline()
Constructor Detail

AbstractEventlineAction

public AbstractEventlineAction(Eventline eventline,
                               java.lang.String name,
                               javax.swing.Icon icon)
Constructs a new dateline action.

Parameters:
eventline - the dateline on which to perform the action
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

AbstractEventlineAction

public AbstractEventlineAction(Eventline eventline,
                               java.lang.String name)
Constructs a new dateline action.

Parameters:
eventline - the eventline on which to perform the action
name - the name of the action that will be displayed on buttons and / or menu items
Since:
1.0
Method Detail

getEventline

public Eventline getEventline()
Returns the eventline on which the action will be performed.

Returns:
the dateline that is the target of the action
Since:
1.0

setEventline

public void setEventline(Eventline dateline)
Sets a new eventline on which the action will be performed.

Parameters:
dateline - the new target dateline of the action
Since:
1.0