com.dlsc.flexgantt.swing.action.dateline
Class AbstractDatelineAction
java.lang.Object
javax.swing.AbstractAction
com.dlsc.flexgantt.swing.action.AbstractFlexGanttAction
com.dlsc.flexgantt.swing.action.dateline.AbstractDatelineAction
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
- Direct Known Subclasses:
- ZoomInAction, ZoomOutAction
public abstract class AbstractDatelineAction
- extends AbstractFlexGanttAction
An abstract action implementation that is specialized on performing
operations on a dateline. The class provides methods for setting and getting
a reference to the dateline.
- Since:
- 1.0
- Author:
- Dirk Lemmermann
- See Also:
- Serialized Form
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 |
Method Summary |
Dateline |
getDateline()
Returns the dateline on which the action will be performed. |
void |
setDateline(Dateline dateline)
Sets a new dateline on which the action will be performed. |
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 |
dateline
protected Dateline dateline
- Stores a reference to the dateline.
- Since:
- 1.0
- See Also:
setDateline(Dateline)
,
getDateline()
AbstractDatelineAction
public AbstractDatelineAction(Dateline dateline,
java.lang.String name,
javax.swing.Icon icon)
- Constructs a new dateline action.
- Parameters:
dateline
- the dateline on which to perform the actionname
- the name of the action that will be displayed on buttons and /
or menu itemsicon
- a graphical representation of the action- Since:
- 1.0
AbstractDatelineAction
public AbstractDatelineAction(Dateline dateline,
java.lang.String name)
- Constructs a new dateline action.
- Parameters:
dateline
- the dateline on which to perform the actionname
- the name of the action that will be displayed on buttons and /
or menu items- Since:
- 1.0
getDateline
public Dateline getDateline()
- Returns the dateline on which the action will be performed.
- Returns:
- the dateline that is the target of the action
- Since:
- 1.0
setDateline
public void setDateline(Dateline dateline)
- Sets a new dateline on which the action will be performed.
- Parameters:
dateline
- the new target dateline of the action- Since:
- 1.0