com.inet.html.actions
Class TabKeyAction

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.TabKeyAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class TabKeyAction
extends InetHtmlAction

An action to modify the content of a document if the TAB-Key is pressed. The result depends on the caret position.

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
TabKeyAction(boolean typeReverse)
          Constructs a new TabKeyAction.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Toggles the bold attribute.
 
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

TabKeyAction

public TabKeyAction(boolean typeReverse)
Constructs a new TabKeyAction.

Parameters:
typeReverse - true to remove a tab/indent
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Toggles the bold attribute.

Parameters:
e - the action event