|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.AbstractAction
com.lightdev.app.shtm.FrmMain.ToggleAction
public class FrmMain.ToggleAction
action to toggle an attribute
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.ToggleAction(java.lang.String name,
java.lang.Object key,
java.lang.Object sVal)
construct a ToggleFontAction |
|
FrmMain.ToggleAction(java.lang.String name,
java.lang.Object key,
java.lang.Object sVal,
java.lang.Object uVal)
construct a ToggleFontAction |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
do the format change for the associated attribute |
java.lang.Object |
getAttributeKey()
get the attribute this action represents values for |
void |
getProperties()
get image, etc. |
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.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 |
---|
public FrmMain.ToggleAction(java.lang.String name, java.lang.Object key, java.lang.Object sVal, java.lang.Object uVal)
name
- the name and command for this actionkey
- the attribute this action represents values forsVal
- the value for the attribute being selecteduVal
- the value for the attribute not being selectedpublic FrmMain.ToggleAction(java.lang.String name, java.lang.Object key, java.lang.Object sVal)
name
- the name and command for this actionkey
- the attribute this action represents values forsVal
- the value for the attribute being selectedMethod Detail |
---|
public void actionPerformed(java.awt.event.ActionEvent e)
This reverses the current setting for the associated attribute
actionPerformed
in interface java.awt.event.ActionListener
e
- the ActionEvent describing the cause for this actionpublic java.lang.Object getAttributeKey()
public boolean setValue(javax.swing.text.AttributeSet a)
AttributeComponent
setValue
in interface AttributeComponent
a
- the set of attributes possibly having an
attribute this component can display
public javax.swing.text.AttributeSet getValue()
AttributeComponent
getValue
in interface AttributeComponent
public javax.swing.text.AttributeSet getValue(boolean includeUnchanged)
getValue
in interface AttributeComponent
public void update()
update
in interface SHTMLAction
public void getProperties()
getProperties
in interface SHTMLAction
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |