com.dlsc.flexgantt.swing.action.gantt
Class SplitGanttChartAction<T extends DualGanttChart>

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by com.dlsc.flexgantt.swing.action.AbstractFlexGanttAction
          extended by com.dlsc.flexgantt.swing.action.gantt.AbstractGanttChartAction<T>
              extended by com.dlsc.flexgantt.swing.action.gantt.SplitGanttChartAction<T>
Type Parameters:
T - the type of the Gantt chart
All Implemented Interfaces:
java.awt.event.ActionListener, java.beans.PropertyChangeListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class SplitGanttChartAction<T extends DualGanttChart>
extends AbstractGanttChartAction<T>
implements java.beans.PropertyChangeListener

An action that toggles the visibility of the secondary Gantt chart of a DualGanttChart.

Since:
1.0
Author:
Dirk Lemmermann
See Also:
DualGanttChart.setSecondaryVisible(boolean), Serialized Form

Field Summary
 
Fields inherited from class com.dlsc.flexgantt.swing.action.gantt.AbstractGanttChartAction
ganttChart
 
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
SplitGanttChartAction(T gc)
          Constructs a new action.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void propertyChange(java.beans.PropertyChangeEvent evt)
           
 void setGanttChart(T gc)
          Sets a new Gantt chart to be used for performing the action.
 
Methods inherited from class com.dlsc.flexgantt.swing.action.gantt.AbstractGanttChartAction
getGanttChart
 
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

SplitGanttChartAction

public SplitGanttChartAction(T gc)
Constructs a new action.

Parameters:
gc - the Gantt chart on which to invoke the action
Since:
1.0
Method Detail

setGanttChart

public void setGanttChart(T gc)
Description copied from class: AbstractGanttChartAction
Sets a new Gantt chart to be used for performing the action.

Overrides:
setGanttChart in class AbstractGanttChartAction<T extends DualGanttChart>
Parameters:
gc - the Gantt chart on which to perform the action

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent evt)
Specified by:
propertyChange in interface java.beans.PropertyChangeListener