public static class StyledEditorKit.AlignmentAction extends StyledEditorKit.StyledTextAction
changeSupport, enabled
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
Constructor and Description |
---|
StyledEditorKit.AlignmentAction(String nm,
int a)
Creates a new instance of
AlignmentAction to set the
alignment to a . |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent event)
Performs the action.
|
getEditor, getStyledDocument, getStyledEditorKit, setCharacterAttributes, setParagraphAttributes
augmentList, getFocusedComponent, getTextComponent
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
public StyledEditorKit.AlignmentAction(String nm, int a)
AlignmentAction
to set the
alignment to a
.nm
- the name of the Actiona
- the alignment to setpublic void actionPerformed(ActionEvent event)
event
- the ActionEvent
that describes the action