com.inet.html.actions
Class EnterAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by javax.swing.text.TextAction
          extended by javax.swing.text.StyledEditorKit.StyledTextAction
              extended by com.inet.html.actions.InetHtmlAction
                  extended by com.inet.html.actions.EnterAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class EnterAction
extends InetHtmlAction

Handelt das Keyevent ENTER, Da Java das ENTER nur als neuen Absatz handelt in einem Absatz, muss hier einiges geheckt werden. HTMLEditorKit.InsertHTMLTextAction wird verwendet, weil bereits einige sinnvole Hilfsfunktionen existieren.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
EnterAction()
          Creates the action without default fallback
EnterAction(javax.swing.Action defaultAction)
          Erstellt eine Instanz und initialisiert nur Variablen.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ev)
          
 
Methods inherited from class javax.swing.text.TextAction
augmentList
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnterAction

public EnterAction(javax.swing.Action defaultAction)
Erstellt eine Instanz und initialisiert nur Variablen.

Parameters:
defaultAction - Die default Action, die Java bereits f�r ENTER implementiert, wird aufgerufen, wenn kein Verhalten in dieser Klasse defiert war.

EnterAction

public EnterAction()
Creates the action without default fallback

Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ev)