|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gjt.sp.jedit.JEditAbstractEditAction<View>
org.gjt.sp.jedit.EditAction
public abstract class EditAction
An action that can be bound to a menu item, tool bar button or keystroke.
jEdit.getAction(String),
jEdit.getActionNames(),
ActionSet| 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 |
|---|
| Fields inherited from class org.gjt.sp.jedit.JEditAbstractEditAction |
|---|
args, name |
| Constructor Summary | |
|---|---|
EditAction(java.lang.String name)
Creates a new edit action with the specified name. |
|
EditAction(java.lang.String name,
java.lang.Object[] newArgs)
|
|
| Method Summary | |
|---|---|
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. |
static View |
getView(java.awt.Component comp)
Deprecated. Call GUIUtilities.getView() instead. |
abstract 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. |
| Methods inherited from class org.gjt.sp.jedit.JEditAbstractEditAction |
|---|
getName, invoke, setName, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EditAction(java.lang.String name)
name - The action name
public EditAction(java.lang.String name,
java.lang.Object[] newArgs)
| Method Detail |
|---|
public java.lang.String getLabel()
JEditAbstractEditAction.getName() suffixed
with .label.
public final java.lang.String getMouseOverText()
JEditAbstractEditAction.getName() suffixed
with .mouse-over.
public abstract void invoke(View view)
invoke in class JEditAbstractEditAction<View>view - The viewpublic static View getView(java.awt.Component comp)
GUIUtilities.getView() instead.
public final boolean isToggle()
JEditAbstractEditAction.getName() suffixed
with .toggle.
public boolean isSelected(java.awt.Component comp)
comp - The componentpublic boolean noRepeat()
public boolean noRecord()
public boolean noRememberLast()
public java.lang.String getCode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||