@CompileStatic
class AutoIndentAction
extends AbstractAction
Inserts a newline that preserves the indentation of the current line.
| Fields inherited from class | Fields |
|---|---|
class AbstractAction |
DEFAULT, NAME, SHORT_DESCRIPTION, LONG_DESCRIPTION, SMALL_ICON, ACTION_COMMAND_KEY, ACCELERATOR_KEY, MNEMONIC_KEY, SELECTED_KEY, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY |
| Type | Name and description |
|---|---|
AttributeSet |
simpleAttributeSetAttributes used for inserted text. |
| Constructor and description |
|---|
AutoIndentAction() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
actionPerformed(ActionEvent evt)Inserts a newline and copies the leading whitespace of the current line. |
| Methods inherited from class | Name |
|---|---|
class AbstractAction |
accept, actionPerformed, addPropertyChangeListener, equals, getClass, getKeys, getPropertyChangeListeners, getValue, hashCode, isEnabled, notify, notifyAll, putValue, removePropertyChangeListener, setEnabled, toString, wait, wait, wait |
Attributes used for inserted text.
Inserts a newline and copies the leading whitespace of the current line.
evt - the action event providing the target text paneCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.