com.inet.html.actions
Class ListAction

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

public class ListAction
extends InetHtmlAction

An action to change a selected part of a HTML document to list items or to convert a list into normal paragraphs.

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
ListAction(boolean numberedList)
          Constructs a new ListAction.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Toggles the bold attribute.
 java.lang.Object getValue(java.lang.String key)
          
 
Methods inherited from class javax.swing.text.TextAction
augmentList
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, getKeys, getPropertyChangeListeners, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListAction

public ListAction(boolean numberedList)
Constructs a new ListAction.

Parameters:
numberedList - true, if a numbered OL list should be created, false for an UL list
Method Detail

getValue

public java.lang.Object getValue(java.lang.String key)

Specified by:
getValue in interface javax.swing.Action
Overrides:
getValue in class javax.swing.AbstractAction

actionPerformed

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

Parameters:
e - the action event