schmitzm.geotools.gui
Class JEditorToolBar.EditorPaneToolBarAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by schmitzm.geotools.gui.JEditorToolBar.EditorPaneToolBarAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action
Enclosing class:
JEditorToolBar

public static class JEditorToolBar.EditorPaneToolBarAction
extends AbstractAction

Extends the AbstractAction with maintaining an ID and the JEditorToolBar the action controls. Additionally this class automatically calls JEditorToolBar.performActionButton(int, ActionEvent).

Author:
Martin Schmitz (University of Bonn/Germany)
See Also:
Serialized Form

Field Summary
protected  int id
          The ID of the action
protected  JEditorToolBar toolBar
          The tool bar, this action is made for.
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
JEditorToolBar.EditorPaneToolBarAction(int id, JEditorToolBar toolBar)
          Creates a new action with a dummy description and no icon.
JEditorToolBar.EditorPaneToolBarAction(int id, JEditorToolBar toolBar, String name)
          Creates a new action without an icon.
JEditorToolBar.EditorPaneToolBarAction(int id, JEditorToolBar toolBar, String name, Icon icon)
          Creates a new action.
 
Method Summary
 void actionPerformed(ActionEvent e)
          Calls JEditorToolBar.performActionButton(int, ActionEvent).
 int getID()
          Returns the (unique) id of this action.
 
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
 

Field Detail

id

protected int id
The ID of the action


toolBar

protected JEditorToolBar toolBar
The tool bar, this action is made for.

Constructor Detail

JEditorToolBar.EditorPaneToolBarAction

public JEditorToolBar.EditorPaneToolBarAction(int id,
                                              JEditorToolBar toolBar)
Creates a new action with a dummy description and no icon.

Parameters:
id - unique ID for the action
toolBar - toolbar this action is made for

JEditorToolBar.EditorPaneToolBarAction

public JEditorToolBar.EditorPaneToolBarAction(int id,
                                              JEditorToolBar toolBar,
                                              String name)
Creates a new action without an icon.

Parameters:
id - unique ID for the action
toolBar - toolbar this action is made for
name - description used for buttons or menus

JEditorToolBar.EditorPaneToolBarAction

public JEditorToolBar.EditorPaneToolBarAction(int id,
                                              JEditorToolBar toolBar,
                                              String name,
                                              Icon icon)
Creates a new action.

Parameters:
id - unique ID for the action
toolBar - toolbar this action is made for
name - description used for buttons or menus
icon - icon used for buttons or menus
Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)
Calls JEditorToolBar.performActionButton(int, ActionEvent).


getID

public int getID()
Returns the (unique) id of this action.

Returns: