javax.swing.text
Class StyledEditorKit.StyledInsertBreakAction

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byjavax.swing.text.TextAction
          extended byjavax.swing.text.StyledEditorKit.StyledTextAction
              extended byjavax.swing.text.StyledEditorKit.StyledInsertBreakAction
All Implemented Interfaces:
Action, ActionListener, Cloneable, EventListener, Serializable
Enclosing class:
StyledEditorKit

static class StyledEditorKit.StyledInsertBreakAction
extends StyledEditorKit.StyledTextAction

StyledInsertBreakAction has similar behavior to that of DefaultEditorKit.InsertBreakAction. That is when its actionPerformed method is invoked, a newline is inserted. Beyond that, this will reset the input attributes to what they were before the newline was inserted.


Nested Class Summary
 
Nested classes inherited from class javax.swing.AbstractAction
 
Field Summary
private  SimpleAttributeSet tempSet
           
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
(package private) StyledEditorKit.StyledInsertBreakAction()
           
 
Method Summary
 void actionPerformed(ActionEvent e)
          Invoked when an action occurs.
 
Methods inherited from class javax.swing.text.StyledEditorKit.StyledTextAction
getEditor, getStyledDocument, getStyledEditorKit, setCharacterAttributes, setParagraphAttributes
 
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
 

Field Detail

tempSet

private SimpleAttributeSet tempSet
Constructor Detail

StyledEditorKit.StyledInsertBreakAction

StyledEditorKit.StyledInsertBreakAction()
Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)
Description copied from interface: ActionListener
Invoked when an action occurs.