oracle.javatools.editor
Class BasicEditorKit.BlockIndentOutdentAction
java.lang.Object
  
javax.swing.AbstractAction
      
javax.swing.text.TextAction
          
oracle.javatools.editor.BasicAction
              
oracle.javatools.editor.BasicWriteAction
                  
oracle.javatools.editor.BasicEditorKit.BlockIndentOutdentAction
- All Implemented Interfaces: 
 - java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
 
- Direct Known Subclasses: 
 - BasicEditorKit.InsertTabAction, BasicEditorKit.ReverseTabAction
 
- Enclosing class:
 - BasicEditorKit
 
public static class BasicEditorKit.BlockIndentOutdentAction
- extends BasicWriteAction
 
The BlockIndentOutdentAction implementation of the
 action for performing a block indent or block outdent.
- 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 | 
 
 
| 
Method Summary | 
 void | 
actionPerformed(java.awt.event.ActionEvent event,
                BasicEditorPane editor,
                BasicDocument document)
 
          The operation to perform when this action is triggered. | 
protected  boolean | 
shouldPerformBlockOperation(BasicEditorPane editor)
 
          Utility routine to check whether we should perform a block
 indent or outdent - this is called from InsertTabAction and
 ReverseTabAction to check if there is a selection and if the
 global property for performing block indents/outdents is on. | 
 
 
| Methods inherited from class oracle.javatools.editor.BasicAction | 
beep, buildIndent, getFontHeight, getIndentSizeProperty, getLastAction, getMagicCaretPosition, getName, getSmartIndentProvider, getSpaces, getTab, getTabs, getTabSizeProperty, getUseAutoIndentProperty, getUseTabsProperty, getVisibleRect, isEditable, setMagicCaretPosition, showMessage, skipLeadingIndent | 
 
| 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.BlockIndentOutdentAction
public BasicEditorKit.BlockIndentOutdentAction(java.lang.String actionName,
                                               boolean doIndent)
- Constructs this object with the appropriate action name.
 
shouldPerformBlockOperation
protected boolean shouldPerformBlockOperation(BasicEditorPane editor)
- Utility routine to check whether we should perform a block
 indent or outdent - this is called from InsertTabAction and
 ReverseTabAction to check if there is a selection and if the
 global property for performing block indents/outdents is on.
- Parameters:
 editor - the editor we are in
- Returns:
 - true if a block operation should be performed
 
 
 
actionPerformed
public 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 eventeditor - the editor his action was invoked indocument - the document associated with the editor
 
 
Copyright © 1997, 2010, Oracle. All rights reserved.