Overview | Package | Class | Tree | Deprecated | Index | Help |
Java Platform 1.1.7 |
||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.java.swing.AbstractAction | +--com.sun.java.swing.text.TextAction | +--com.sun.java.swing.text.StyledEditorKit.StyledTextAction
The component that gets acted upon by the action will be the source of the ActionEvent if the source can be narrowed to a JEditorPane type. If the source can't be narrowed, the most recently focused text component is changed. If neither of these are the case, the action cannot be performed.
Warning: serialized objects of this class will not be compatible with future swing releases. The current serialization support is appropriate for short term storage or RMI between Swing1.0 applications. It will not be possible to load serialized Swing1.0 objects with future releases of Swing. The JDK1.2 release of Swing will be the compatibility baseline for the serialized form of Swing objects.
Fields inherited from class com.sun.java.swing.AbstractAction | |
changeSupport, enabled |
Constructor Summary | |
StyledEditorKit.StyledTextAction(java.lang.String nm)
Creates a new StyledTextAction from a string action name. |
Method Summary | |
JEditorPane | getEditor(java.awt.event.ActionEvent e)
Gets the target editor for an action. |
StyledDocument | getStyledDocument(JEditorPane e)
Gets the document associated with an editor pane. |
StyledEditorKit | getStyledEditorKit(JEditorPane e)
Gets the editor kit associated with an editor pane. |
void | setCharacterAttributes(JEditorPane editor,
AttributeSet attr,
boolean replace)
Applies the given attributes to character content. |
void | setParagraphAttributes(JEditorPane editor,
AttributeSet attr,
boolean replace)
Applies the given attributes to paragraphs. |
Methods inherited from class com.sun.java.swing.text.TextAction | |
augmentList, getFocusedComponent, getTextComponent |
Methods inherited from class com.sun.java.swing.AbstractAction | |
addPropertyChangeListener, firePropertyChange, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object | |
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait |
Constructor Detail |
public StyledEditorKit.StyledTextAction(java.lang.String nm)
nm
- the name of the actionMethod Detail |
protected final JEditorPane getEditor(java.awt.event.ActionEvent e)
e
- the action eventprotected final StyledDocument getStyledDocument(JEditorPane e)
e
- the editorprotected final StyledEditorKit getStyledEditorKit(JEditorPane e)
e
- the editor paneprotected final void setCharacterAttributes(JEditorPane editor, AttributeSet attr, boolean replace)
editor
- the editor
attr
- the attributes
replace
- if true, then replace the existing attributes firstprotected final void setParagraphAttributes(JEditorPane editor, AttributeSet attr, boolean replace)
editor
- the editor
attr
- the attributes
replace
- if true, replace the existing attributes firstOverview | Package | Class | Tree | Deprecated | Index | Help |
Java Platform 1.1.7 |
||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |