public abstract static class BasicEditorKit.NavigateAction extends BasicAction
NavigateAction
just takes care of storing
whether selection is performed or not.Modifier | Constructor and Description |
---|---|
protected |
BasicEditorKit.NavigateAction(java.lang.String actionName,
boolean performSelect)
Constructs this object with the appropriate action name.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent event,
BasicEditorPane editor,
BasicDocument document)
The operation to perform when this action is triggered.
|
protected boolean |
doSelect()
Fetches whether selection should be performed when moving the
cursor.
|
protected abstract void |
navigatePerformed(java.awt.event.ActionEvent event,
BasicEditorPane editor,
BasicDocument document)
The navigate operation to perform when this action is triggered.
|
actionPerformed, beep, buildIndent, getFontHeight, getIndentSizeProperty, getLastAction, getMagicCaretPosition, getName, getSmartIndentProvider, getSpaces, getTab, getTabs, getTabSizeProperty, getUseAutoIndentProperty, getUseTabsProperty, getVisibleRect, isEditable, lock, setMagicCaretPosition, showMessage, skipLeadingIndent, unlock
augmentList, getFocusedComponent, getTextComponent
protected BasicEditorKit.NavigateAction(java.lang.String actionName, boolean performSelect)
actionName
- the name of the navigation actionperformSelect
- true to perform selection while navigatingprotected final boolean doSelect()
public final void actionPerformed(java.awt.event.ActionEvent event, BasicEditorPane editor, BasicDocument document)
actionPerformed
in class BasicAction
event
- the action eventeditor
- the editor his action was invoked indocument
- the document associated with the editorprotected abstract void navigatePerformed(java.awt.event.ActionEvent event, BasicEditorPane editor, BasicDocument document)
event
- the action eventeditor
- the editor his action was invoked indocument
- the document associated with the editor