Skip navigation links 
 
oracle.javatools.editor
Class BasicEditorKit.NavigateAction
java.lang.Object
  
javax.swing.AbstractAction
      
javax.swing.text.TextAction
          
oracle.javatools.editor.BasicAction
              
oracle.javatools.editor.BasicEditorKit.NavigateAction
- All Implemented Interfaces:
 
- java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
 
- Direct Known Subclasses:
 
- BasicEditorKit.BackwardAction, BasicEditorKit.BeginAction, BasicEditorKit.BeginLineAction, BasicEditorKit.BeginWordAction, BasicEditorKit.DownAction, BasicEditorKit.EndAction, BasicEditorKit.EndLineAction, BasicEditorKit.EndWordAction, BasicEditorKit.ForwardAction, BasicEditorKit.NextWordAction, BasicEditorKit.PageDownAction, BasicEditorKit.PageUpAction, BasicEditorKit.PreviousWordAction, BasicEditorKit.UpAction
 
- Enclosing class:
 
- BasicEditorKit
 
- 
public abstract static class BasicEditorKit.NavigateAction
 
- extends BasicAction
 
The NavigateAction just takes care of storing whether selection is performed or not.
- See Also:
 
- Serialized Form
 
 
 
| Fields inherited from class javax.swing.AbstractAction | 
changeSupport, enabled | 
 
| Fields inherited from interface javax.swing.Action | 
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON | 
  
 
| Constructor Summary | 
protected | 
BasicEditorKit.NavigateAction(java.lang.String actionName, boolean performSelect) 
          Constructs this object with the appropriate action name. | 
  
 
 
| Methods inherited from class oracle.javatools.editor.BasicAction | 
actionPerformed, beep, buildIndent, getFontHeight, getIndentSizeProperty, getLastAction, getMagicCaretPosition, getName, getSmartIndentProvider, getSpaces, getTab, getTabs, getTabSizeProperty, getUseAutoIndentProperty, getUseTabsProperty, getVisibleRect, isEditable, lock, setMagicCaretPosition, showMessage, skipLeadingIndent, unlock | 
 
| Methods inherited from class javax.swing.text.TextAction | 
augmentList, getFocusedComponent, getTextComponent | 
 
| Methods inherited from class javax.swing.AbstractAction | 
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled | 
 
| Methods inherited from class java.lang.Object | 
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
 
BasicEditorKit.NavigateAction
protected BasicEditorKit.NavigateAction(java.lang.String actionName,
                                        boolean performSelect)
- Constructs this object with the appropriate action name.
- Parameters:
 
actionName - the name of the navigation action 
performSelect - true to perform selection while navigating 
 
doSelect
protected final boolean doSelect()
- Fetches whether selection should be performed when moving the cursor.
 
- 
- Returns:
 
- true if selection should be performed
 
 
actionPerformed
public final void actionPerformed(java.awt.event.ActionEvent event,
                                  BasicEditorPane editor,
                                  BasicDocument document)
- The operation to perform when this action is triggered.
 
- 
- Specified by:
 
actionPerformed in class BasicAction 
 
- 
- Parameters:
 
event - the action event 
editor - the editor his action was invoked in 
document - the document associated with the editor 
 
navigatePerformed
protected abstract void navigatePerformed(java.awt.event.ActionEvent event,
                                          BasicEditorPane editor,
                                          BasicDocument document)
- The navigate operation to perform when this action is triggered. Navigation implementations should override this instead of actionPerformed, which takes care of undo marking.
 
- 
- Parameters:
 
event - the action event 
editor - the editor his action was invoked in 
document - the document associated with the editor 
 
Skip navigation links 
 
Copyright © 1997, 2016, Oracle. All rights reserved.