|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--javax.swing.text.EditorKit
|
+--javax.swing.text.DefaultEditorKit
|
+--javax.swing.text.StyledEditorKit
Safe:
| Field Summary | |
(package private) Element |
currentParagraph
|
(package private) Element |
currentRun
|
private static Action[] |
defaultActions
|
private static ViewFactory |
defaultFactory
|
(package private) MutableAttributeSet |
inputAttributes
This is the set of attributes used to store the input attributes. |
private javax.swing.text.StyledEditorKit.AttributeTracker |
inputAttributeUpdater
This listener will be attached to the caret of the text component that the EditorKit gets installed into. |
| Constructor Summary | |
StyledEditorKit()
Enabled: Creates a new EditorKit used for styled documents. |
|
| Method Summary | |
Object |
clone()
Suppressed: Creates a copy of the editor kit. |
Document |
createDefaultDocument()
Enabled: Creates an uninitialized text storage model that is appropriate for this type of editor. |
private void |
createInputAttributes()
Creates the AttributeSet used for the selection. |
protected void |
createInputAttributes(Element element,
MutableAttributeSet set)
Copies the key/values in elements AttributeSet into
set. |
private void |
createInputAttributeUpdated()
Creates a new AttributeTracker. |
void |
deinstall(JEditorPane c)
Suppressed: Called when the kit is being removed from the JEditorPane. |
Action[] |
getActions()
Suppressed: Fetches the command list for the editor. |
Element |
getCharacterAttributeRun()
Enabled: Fetches the element representing the current run of character attributes for the caret. |
MutableAttributeSet |
getInputAttributes()
Enabled: Gets the input attributes for the pane. |
ViewFactory |
getViewFactory()
Enabled: Fetches a factory that is suitable for producing views of any models that are produced by this kit. |
void |
install(JEditorPane c)
Suppressed: Called when the kit is being installed into a JEditorPane. |
| Methods inherited from class javax.swing.text.DefaultEditorKit |
createCaret, getContentType, read, read, write, write |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final ViewFactory defaultFactory
Element currentRun
Element currentParagraph
MutableAttributeSet inputAttributes
private javax.swing.text.StyledEditorKit.AttributeTracker inputAttributeUpdater
private static final Action[] defaultActions
| Constructor Detail |
public StyledEditorKit()
| Method Detail |
public MutableAttributeSet getInputAttributes()
getInputAttributes in class DefaultEditorKitpublic Element getCharacterAttributeRun()
public Action[] getActions()
getActions in class DefaultEditorKitpublic Document createDefaultDocument()
createDefaultDocument in class DefaultEditorKitpublic void install(JEditorPane c)
install in class EditorKitc - the JEditorPanepublic void deinstall(JEditorPane c)
deinstall in class EditorKitc - the JEditorPanepublic ViewFactory getViewFactory()
getViewFactory in class DefaultEditorKitpublic Object clone()
clone in class EditorKitprivate void createInputAttributes()
private void createInputAttributeUpdated()
AttributeTracker.
protected void createInputAttributes(Element element,
MutableAttributeSet set)
elements AttributeSet into
set. This does not copy component, icon, or element
names attributes. Subclasses may wish to refine what is and what
isn't copied here. But be sure to first remove all the attributes that
are in set.This is called anytime the caret moves over a different location.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||