| java.lang.Object org.acm.seguin.ide.jedit.action.Action
All known Subclasses: org.acm.seguin.ide.jedit.action.HideAction, org.acm.seguin.ide.jedit.action.ReloadAllAction, org.acm.seguin.ide.jedit.action.ReloadAction, org.acm.seguin.ide.jedit.action.JEditUndoAction, org.acm.seguin.ide.jedit.action.ShowAction,
Action | abstract public class Action implements ActionListener,Cloneable(Code) | | An action defines an action to be taken when the user presses some menu item
in the tree's context menu or a button on the toolbar.
author: Mike author: Atkinson version: $Id: Action.java,v 1.1 2003/09/17 19:52:50 mikeatkinson Exp $ since: 0.0.1 |
Method Summary | |
public Object | clone() Clones the current action, returning a copy of it. | public RolloverButton | getButton() Returns the toolbar button that triggers this action. | public Icon | getIcon() Returns the icon to be shown on the toolbar button. | public JComponent | getMenuItem() Returns the menu item that triggers this action. | abstract public String | getText() Returns a String that will be shown as the text of the menu item or the
tooltip of the toolbar button. | public void | setViewer(JRefactory viewer) Sets the viewer where this action is being used. |
tbButton | protected RolloverButton tbButton(Code) | | Description of the Field
|
clone | public Object clone()(Code) | | Clones the current action, returning a copy of it.
Description of the Return Value |
getButton | public RolloverButton getButton()(Code) | | Returns the toolbar button that triggers this action.
The button value |
getIcon | public Icon getIcon()(Code) | | Returns the icon to be shown on the toolbar button. The default
implementation returns "null" so that actions that will only be used in
the context menu don't need to implement this.
The icon value |
getMenuItem | public JComponent getMenuItem()(Code) | | Returns the menu item that triggers this action. This returns a
JComponent, which makes it possible to add virtually anything to the
menu. For example, it's possible to return a sub-menu instead of a
simple menu item. The default implementation returns a menu item, which
is stored in the "cmItem" variable.
The menuItem value |
getText | abstract public String getText()(Code) | | Returns a String that will be shown as the text of the menu item or the
tooltip of the toolbar button.
The text value |
setViewer | public void setViewer(JRefactory viewer)(Code) | | Sets the viewer where this action is being used.
Parameters: viewer - The new viewer value |
|
|