public abstract class EditAction extends JEditAbstractEditAction<View>
jEdit.getAction(String)
,
jEdit.getActionNames()
,
ActionSet
Modifier and Type | Class and Description |
---|---|
static class |
EditAction.Wrapper
'Wrap' EditActions in this class to turn them into AWT
ActionListeners, that can be attached to buttons, menu items, etc.
|
args, name
Constructor and Description |
---|
EditAction(java.lang.String name)
Creates a new edit action with the specified name.
|
EditAction(java.lang.String name,
java.lang.Object[] newArgs) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCode() |
java.lang.String |
getLabel() |
java.lang.String |
getMouseOverText() |
abstract void |
invoke(View view)
Invokes the action.
|
boolean |
isSelected(java.awt.Component comp) |
boolean |
isToggle() |
boolean |
noRecord() |
boolean |
noRememberLast() |
boolean |
noRepeat() |
getName, invoke, setName, toString
public EditAction(java.lang.String name)
name
- The action namepublic EditAction(java.lang.String name, java.lang.Object[] newArgs)
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 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()