com.lightdev.app.shtm
Class FrmMain.ItalicAction
java.lang.Object
javax.swing.AbstractAction
javax.swing.text.TextAction
javax.swing.text.StyledEditorKit.StyledTextAction
javax.swing.text.StyledEditorKit.ItalicAction
com.lightdev.app.shtm.FrmMain.ItalicAction
- 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.ItalicAction
- extends javax.swing.text.StyledEditorKit.ItalicAction
- implements SHTMLAction, AttributeComponent
- See Also:
- Serialized Form
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 |
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 |
FrmMain.ItalicAction
public FrmMain.ItalicAction()
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.ItalicAction
- 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