Class AbstractEditorMenuItem

java.lang.Object
javax.swing.AbstractAction
repast.simphony.ui.plugin.AbstractEditorMenuItem
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, Comparable<EditorMenuItem>, EventListener, Action, EditorMenuItem
Direct Known Subclasses:
ConsoleSinkMenuItem, DataSetMenuItem, DefaultDataLoaderMenuItem, DefaultDisplayMenuItem, FileSinkMenuItem, FreezerMenuItem, HistogramMenuItem, TimeSeriesChartMenuItem, UserPanelMenuItem

public abstract class AbstractEditorMenuItem extends AbstractAction implements EditorMenuItem
Partial implementation of the EditorMenuItem interface. This implements setting and getting a label, and setting the ScenarioTreeEvent. The user only needs to implement actionPerformed(ActionEvent evt). This also implements Comparable by comparing on EditorMenuItem labels.
Version:
$Revision: 1.1 $ $Date: 2006/01/09 15:55:03 $
Author:
Nick Collier
See Also:
  • Field Details

  • Constructor Details

    • AbstractEditorMenuItem

      public AbstractEditorMenuItem(String label)
      Creates an AbstractEditorMenuItem with the specified label.
      Parameters:
      label -
  • Method Details

    • setScenarioEvt

      public void setScenarioEvt(ScenarioTreeEvent evt)
      Sets the ScenarioTreeEvent that triggers this menu item.
      Specified by:
      setScenarioEvt in interface EditorMenuItem
      Parameters:
      evt - the ScenarioTreeEvent that trigged this menu item.
    • getLabel

      public String getLabel()
      Gets the label for this menu item.
      Specified by:
      getLabel in interface EditorMenuItem
      Returns:
      the label for this menu item.
    • compareTo

      public int compareTo(EditorMenuItem editorMenuItem)
      Specified by:
      compareTo in interface Comparable<EditorMenuItem>
    • init

      public void init(org.java.plugin.PluginManager manager)
      A null implementation of this method.
      Specified by:
      init in interface EditorMenuItem
      Parameters:
      manager - ignored.