java.lang.Object
javax.swing.text.EditorKit
javax.swing.text.DefaultEditorKit
javax.swing.text.StyledEditorKit
org.gendiapo.editor.document.GenDiapoEditorKit
- All Implemented Interfaces:
- java.lang.Cloneable, java.io.Serializable
- public class GenDiapoEditorKit
- extends javax.swing.text.StyledEditorKit
| Nested classes inherited from class javax.swing.text.StyledEditorKit |
javax.swing.text.StyledEditorKit.AlignmentAction, javax.swing.text.StyledEditorKit.BoldAction, javax.swing.text.StyledEditorKit.FontFamilyAction, javax.swing.text.StyledEditorKit.FontSizeAction, javax.swing.text.StyledEditorKit.ForegroundAction, javax.swing.text.StyledEditorKit.ItalicAction, javax.swing.text.StyledEditorKit.StyledTextAction, javax.swing.text.StyledEditorKit.UnderlineAction |
| Nested classes inherited from class javax.swing.text.DefaultEditorKit |
javax.swing.text.DefaultEditorKit.BeepAction, javax.swing.text.DefaultEditorKit.CopyAction, javax.swing.text.DefaultEditorKit.CutAction, javax.swing.text.DefaultEditorKit.DefaultKeyTypedAction, javax.swing.text.DefaultEditorKit.InsertBreakAction, javax.swing.text.DefaultEditorKit.InsertContentAction, javax.swing.text.DefaultEditorKit.InsertTabAction, javax.swing.text.DefaultEditorKit.PasteAction |
| Fields inherited from class javax.swing.text.DefaultEditorKit |
backwardAction, beepAction, beginAction, beginLineAction, beginParagraphAction, beginWordAction, copyAction, cutAction, defaultKeyTypedAction, deleteNextCharAction, deletePrevCharAction, downAction, endAction, endLineAction, EndOfLineStringProperty, endParagraphAction, endWordAction, forwardAction, insertBreakAction, insertContentAction, insertTabAction, nextWordAction, pageDownAction, pageUpAction, pasteAction, previousWordAction, readOnlyAction, selectAllAction, selectionBackwardAction, selectionBeginAction, selectionBeginLineAction, selectionBeginParagraphAction, selectionBeginWordAction, selectionDownAction, selectionEndAction, selectionEndLineAction, selectionEndParagraphAction, selectionEndWordAction, selectionForwardAction, selectionNextWordAction, selectionPreviousWordAction, selectionUpAction, selectLineAction, selectParagraphAction, selectWordAction, upAction, writableAction |
defaultFactory
private static final javax.swing.text.ViewFactory defaultFactory
transactionTracker
private static final GenDiapoEditorKit.TransactionTracker transactionTracker
toggleStyledTags
protected java.util.Vector toggleStyledTags
GenDiapoEditorKit
public GenDiapoEditorKit()
clone
public java.lang.Object clone()
- Description copied from class:
javax.swing.text.StyledEditorKit
- Creates an exact copy of this
StyledEditorKit.
install
public void install(javax.swing.JEditorPane c)
- Description copied from class:
javax.swing.text.StyledEditorKit
- Installs this
EditorKit on the specified javax.swing.JEditorPane.
This basically involves setting up required listeners on the
JEditorPane.
deinstall
public void deinstall(javax.swing.JEditorPane c)
- Description copied from class:
javax.swing.text.StyledEditorKit
- Deinstalls this
EditorKit from the specified
javax.swing.JEditorPane. This basically involves removing all listeners from
JEditorPane that have been set up by this
EditorKit.
getContentType
public java.lang.String getContentType()
- Description copied from class:
javax.swing.text.DefaultEditorKit
- Returns the content type that this
EditorKit supports.
The DefaultEditorKit supports the content type
text/plain.
getViewFactory
public javax.swing.text.ViewFactory getViewFactory()
- Description copied from class:
javax.swing.text.StyledEditorKit
- Returns a javax.swing.text.ViewFactory that is able to create javax.swing.text.Views
for javax.swing.text.Elements that are supported by this
EditorKit,
namely the following types of Elements:
createDefaultDocument
public javax.swing.text.Document createDefaultDocument()
- Description copied from class:
javax.swing.text.StyledEditorKit
- Creates the default javax.swing.text.Document supported by this
EditorKit. This is an instance of
javax.swing.text.DefaultStyledDocument in this case but may be overridden by
subclasses.
createInputAttributes
protected void createInputAttributes(javax.swing.text.Element element,
javax.swing.text.MutableAttributeSet set)
- Description copied from class:
javax.swing.text.StyledEditorKit
- Copies the text attributes from
element to set.
This is called everytime when the caret position changes to keep
track of the current input attributes. The attributes in set
are cleaned before adding the attributes of element.
This method filters out attributes for element names, Icons
and Components.
createToggleStyledTag
public GenDiapoEditorKit.ToggleStyledTag createToggleStyledTag(javax.swing.JEditorPane editor,
java.lang.String name)
removeToggleStyledTag
public void removeToggleStyledTag(GenDiapoEditorKit.ToggleStyledTag action)
updateToggleStyledTag
protected void updateToggleStyledTag()