|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.AbstractAction
schmitzm.geotools.gui.JEditorToolBar.EditorPaneToolBarAction
public static class JEditorToolBar.EditorPaneToolBarAction
Extends the AbstractAction
with maintaining an ID and
the JEditorToolBar
the action controls.
Additionally this class automatically calls
JEditorToolBar.performActionButton(int, ActionEvent)
.
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 |
---|
protected int id
protected JEditorToolBar toolBar
Constructor Detail |
---|
public JEditorToolBar.EditorPaneToolBarAction(int id, JEditorToolBar toolBar)
id
- unique ID for the actiontoolBar
- toolbar this action is made forpublic JEditorToolBar.EditorPaneToolBarAction(int id, JEditorToolBar toolBar, String name)
id
- unique ID for the actiontoolBar
- toolbar this action is made forname
- description used for buttons or menuspublic JEditorToolBar.EditorPaneToolBarAction(int id, JEditorToolBar toolBar, String name, Icon icon)
id
- unique ID for the actiontoolBar
- toolbar this action is made forname
- description used for buttons or menusicon
- icon used for buttons or menusMethod Detail |
---|
public void actionPerformed(ActionEvent e)
JEditorToolBar.performActionButton(int, ActionEvent)
.
public int getID()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |