|
|||||||||
| Home >> All >> org >> gjt >> sp >> [ jedit overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.gjt.sp.jedit
Class EditAction

java.lang.Objectorg.gjt.sp.jedit.EditAction
- Direct Known Subclasses:
- BeanShellAction, Macros.Macro
- public abstract class EditAction
- extends java.lang.Object
An action that can be bound to a menu item, tool bar button or keystroke.
- Version:
- $Id: EditAction.java,v 1.23 2003/05/01 04:17:13 spestov Exp $
| Nested Class Summary | |
static class |
EditAction.Wrapper
'Wrap' EditActions in this class to turn them into AWT ActionListeners, that can be attached to buttons, menu items, etc. |
| Field Summary | |
private java.lang.String |
name
|
| Constructor Summary | |
EditAction(java.lang.String name)
Creates a new edit action with the specified name. |
|
| Method Summary | |
abstract java.lang.String |
getCode()
Returns the BeanShell code that will replay this action. |
java.lang.String |
getLabel()
Returns the action's label. |
java.lang.String |
getMouseOverText()
Returns the action's mouse over message. |
java.lang.String |
getName()
Returns the internal name of this action. |
static View |
getView(java.awt.Component comp)
Deprecated. Call GUIUtilities.getView() instead. |
void |
invoke(View view)
Invokes the action. |
boolean |
isSelected(java.awt.Component comp)
If this edit action is a toggle, returns if it is selected or not. |
boolean |
isToggle()
Returns if this edit action should be displayed as a check box in menus. |
boolean |
noRecord()
Returns if this edit action should not be recorded. |
boolean |
noRememberLast()
Returns if this edit action should not be remembered as the most recently invoked action. |
boolean |
noRepeat()
Returns if this edit action should not be repeated. |
java.lang.String |
toString()
Convert this Object to a human-readable String. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
name
private java.lang.String name
| Constructor Detail |
EditAction
public EditAction(java.lang.String name)
- Creates a new edit action with the specified name.
| Method Detail |
getName
public java.lang.String getName()
- Returns the internal name of this action.
getLabel
public final java.lang.String getLabel()
- Returns the action's label. This returns the
value of the property named by
getName()55 suffixed with.label.
getMouseOverText
public final java.lang.String getMouseOverText()
- Returns the action's mouse over message. This returns the
value of the property named by
getName()55 suffixed with.mouse-over.
invoke
public void invoke(View view)
- Invokes the action.
- Since:
- jEdit 2.7pre2
getView
public static View getView(java.awt.Component comp)
- Deprecated. Call
GUIUtilities.getView()instead.
isToggle
public final boolean isToggle()
- Returns if this edit action should be displayed as a check box
in menus. This returns the
value of the property named by
getName()55 suffixed with.toggle.- Since:
- jEdit 2.2pre4
isSelected
public boolean isSelected(java.awt.Component comp)
- If this edit action is a toggle, returns if it is selected or not.
- Since:
- jEdit 4.2pre1
noRepeat
public boolean noRepeat()
- Returns if this edit action should not be repeated. Returns false
by default.
- Since:
- jEdit 2.7pre2
noRecord
public boolean noRecord()
- Returns if this edit action should not be recorded. Returns false
by default.
- Since:
- jEdit 2.7pre2
noRememberLast
public boolean noRememberLast()
- Returns if this edit action should not be remembered as the most
recently invoked action.
- Since:
- jEdit 4.2pre1
getCode
public abstract java.lang.String getCode()
- Returns the BeanShell code that will replay this action.
- Since:
- jEdit 2.7pre2
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object - Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string concatenation with this object. If the result is
null, string concatenation will instead use"null".The default implementation returns
getClass().getName() + "@" + Integer.toHexString(hashCode()).
|
|||||||||
| Home >> All >> org >> gjt >> sp >> [ jedit overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.gjt.sp.jedit.EditAction