public static class RTextAreaEditorKit.SetReadOnlyAction extends RecordableTextAction
| 构造器和说明 |
|---|
RTextAreaEditorKit.SetReadOnlyAction() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
actionPerformedImpl(java.awt.event.ActionEvent e,
RTextArea textArea)
The actual meat of the action.
|
java.lang.String |
getMacroID()
Returns the identifier for this macro.
|
boolean |
isRecordable()
Returns whether or not this action will be recorded and replayed in
a macro.
|
actionPerformed, getAccelerator, getDescription, getIcon, getMnemonic, getName, setAccelerator, setMnemonic, setMnemonic, setName, setProperties, setRecordable, setShortDescriptionpublic void actionPerformedImpl(java.awt.event.ActionEvent e,
RTextArea textArea)
RecordableTextActionactionPerformedImpl 在类中 RecordableTextActione - The action being performed.textArea - The text area "receiving" the action.RecordableTextAction.actionPerformed(java.awt.event.ActionEvent)public final java.lang.String getMacroID()
RecordableTextActionRTextAreaEditorKit.CutAction
action, for example, rename it to "Remove", and it will still be
recorded as a "cut" action. Subclasses should return a unique string
from this method; preferably the name of the action.
If you subclass a RecordableTextAction, you should NOT
override this method; if you do, the action may not be properly
recorded in a macro.
getMacroID 在类中 RecordableTextActionpublic boolean isRecordable()
RecordableTextActionisRecordable 在类中 RecordableTextActionRecordableTextAction.setRecordable(boolean)