Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.gendiapo.editor.document
Class GenDiapoEditorKit  view GenDiapoEditorKit download GenDiapoEditorKit.java

java.lang.Object
  extended byjavax.swing.text.EditorKit
      extended byjavax.swing.text.DefaultEditorKit
          extended byjavax.swing.text.StyledEditorKit
              extended byorg.gendiapo.editor.document.GenDiapoEditorKit
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class GenDiapoEditorKit
extends javax.swing.text.StyledEditorKit


Nested Class Summary
static class GenDiapoEditorKit.GenDiapoFactory
           
static class GenDiapoEditorKit.ToggleStyledTag
           
static class GenDiapoEditorKit.TransactionTracker
           
 
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
 
Field Summary
private static javax.swing.text.ViewFactory defaultFactory
           
protected  java.util.Vector toggleStyledTags
           
private static GenDiapoEditorKit.TransactionTracker transactionTracker
           
 
Fields inherited from class javax.swing.text.StyledEditorKit
 
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
 
Constructor Summary
GenDiapoEditorKit()
           
 
Method Summary
 java.lang.Object clone()
          Creates an exact copy of this StyledEditorKit.
 javax.swing.text.Document createDefaultDocument()
          Creates the default javax.swing.text.Document supported by this EditorKit.
protected  void createInputAttributes(javax.swing.text.Element element, javax.swing.text.MutableAttributeSet set)
          Copies the text attributes from element to set.
 GenDiapoEditorKit.ToggleStyledTag createToggleStyledTag(javax.swing.JEditorPane editor, java.lang.String name)
           
 void deinstall(javax.swing.JEditorPane c)
          Deinstalls this EditorKit from the specified javax.swing.JEditorPane.
 java.lang.String getContentType()
          Returns the content type that this EditorKit supports.
 javax.swing.text.ViewFactory getViewFactory()
          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: AbstractDocument.ContentElementName>AbstractDocument.ContentElementName 55 AbstractDocument.ParagraphElementName>AbstractDocument.ParagraphElementName 55 AbstractDocument.SectionElementName>AbstractDocument.SectionElementName 55 StyleConstants.ComponentElementName>StyleConstants.ComponentElementName 55 StyleConstants.IconElementName>StyleConstants.IconElementName 55
 void install(javax.swing.JEditorPane c)
          Installs this EditorKit on the specified javax.swing.JEditorPane.
 void removeToggleStyledTag(GenDiapoEditorKit.ToggleStyledTag action)
           
protected  void updateToggleStyledTag()
           
 
Methods inherited from class javax.swing.text.StyledEditorKit
getActions, getCharacterAttributeRun, getInputAttributes
 
Methods inherited from class javax.swing.text.DefaultEditorKit
createCaret, read, read, write, write
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultFactory

private static final javax.swing.text.ViewFactory defaultFactory

transactionTracker

private static final GenDiapoEditorKit.TransactionTracker transactionTracker

toggleStyledTags

protected java.util.Vector toggleStyledTags
Constructor Detail

GenDiapoEditorKit

public GenDiapoEditorKit()
Method Detail

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()