com.lightdev.app.shtm
Class FrmMain.UnderlineAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by javax.swing.text.TextAction
          extended by javax.swing.text.StyledEditorKit.StyledTextAction
              extended by javax.swing.text.StyledEditorKit.UnderlineAction
                  extended by com.lightdev.app.shtm.FrmMain.UnderlineAction
All Implemented Interfaces:
AttributeComponent, SHTMLAction, java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
Enclosing class:
FrmMain

public class FrmMain.UnderlineAction
extends javax.swing.text.StyledEditorKit.UnderlineAction
implements SHTMLAction, AttributeComponent

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
FrmMain.UnderlineAction()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          do the format change for the associated attribute
 void getProperties()
          this method should be called from the constructor of each SHTMLAction and can be used to get action properties from a resource file
 javax.swing.text.AttributeSet getValue()
          get the value of this AttributeComponent
 javax.swing.text.AttributeSet getValue(boolean includeUnchanged)
           
 boolean setValue(javax.swing.text.AttributeSet a)
          set the value of this AttributeComponent
 void update()
          update the action's state
 
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
 
Methods inherited from interface javax.swing.Action
addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 

Constructor Detail

FrmMain.UnderlineAction

public FrmMain.UnderlineAction()
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
do the format change for the associated attribute

This reverses the current setting for the associated attribute

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Overrides:
actionPerformed in class javax.swing.text.StyledEditorKit.UnderlineAction
Parameters:
e - the ActionEvent describing the cause for this action

getProperties

public void getProperties()
Description copied from interface: SHTMLAction
this method should be called from the constructor of each SHTMLAction and can be used to get action properties from a resource file

Specified by:
getProperties in interface SHTMLAction

update

public void update()
Description copied from interface: SHTMLAction
update the action's state

Specified by:
update in interface SHTMLAction

setValue

public boolean setValue(javax.swing.text.AttributeSet a)
set the value of this AttributeComponent

Specified by:
setValue in interface AttributeComponent
Parameters:
a - the set of attributes possibly having an attribute this component can display
Returns:
true, if the set of attributes had a matching attribute, false if not

getValue

public javax.swing.text.AttributeSet getValue()
get the value of this AttributeComponent

Specified by:
getValue in interface AttributeComponent
Returns:
the value selected from this component

getValue

public javax.swing.text.AttributeSet getValue(boolean includeUnchanged)
Specified by:
getValue in interface AttributeComponent