Package Summary  Overview Summary

class:StyledEditorKit [CHANGED]

  • All Implemented Interfaces:
    Serializable, Cloneable
    Direct Known Subclasses:
    HTMLEditorKit, RTFEditorKit


    public class StyledEditorKit
    extends DefaultEditorKit
    
    This is the set of things needed by a text component to be a reasonably functioning editor for some type of text document. This implementation provides a default implementation which treats text as styled text and provides a minimal set of actions for editing styled text.
    See Also:
    Serialized Form
  • All Implemented Interfaces:
    Serializable, Cloneable
    Direct Known Subclasses:
    HTMLEditorKit, RTFEditorKit


    public class StyledEditorKit
    extends DefaultEditorKit
    
    This is the set of things needed by a text component to be a reasonably functioning editor for some type of text document. This implementation provides a default implementation which treats text as styled text and provides a minimal set of actions for editing styled text.
  • All Implemented Interfaces:
    Serializable, Cloneable
    Direct Known Subclasses:
    HTMLEditorKit, RTFEditorKit


    public class StyledEditorKit
    extends DefaultEditorKit
    
    This is the set of things needed by a text component to be a reasonably functioning editor for some type of text document. This implementation provides a default implementation which treats text as styled text and provides a minimal set of actions for editing styled text.
    See Also:
    Serialized Form

constructor:StyledEditorKit() [CHANGED]

  • StyledEditorKit

    public StyledEditorKitpublic StyledEditorKit​()
    Creates a new EditorKit used for styled documents.
  • StyledEditorKit

    public StyledEditorKit()
    Creates a new EditorKit used for styled documents.
  • StyledEditorKit

    public StyledEditorKit​()
    Creates a new EditorKit used for styled documents.

method:getInputAttributes() [CHANGED]

  • getInputAttributes

    public MutableAttributeSet getInputAttributes getInputAttributes​()
    Gets the input attributes for the pane. When the caret moves and there is no selection, the input attributes are automatically mutated to reflect the character attributes of the current caret location. The styled editing actions use the input attributes to carry out their actions.
    Returns:
    the attribute set
  • getInputAttributes

    public MutableAttributeSet getInputAttributes()
    Gets the input attributes for the pane. When the caret moves and there is no selection, the input attributes are automatically mutated to reflect the character attributes of the current caret location. The styled editing actions use the input attributes to carry out their actions.
    Returns:
    the attribute set
  • getInputAttributes

    public MutableAttributeSet getInputAttributes​()
    Gets the input attributes for the pane. When the caret moves and there is no selection, the input attributes are automatically mutated to reflect the character attributes of the current caret location. The styled editing actions use the input attributes to carry out their actions.
    Returns:
    the attribute set

method:getCharacterAttributeRun() [CHANGED]

  • getCharacterAttributeRun

    public Element getCharacterAttributeRun getCharacterAttributeRun​()
    Fetches the element representing the current run of character attributes for the caret.
    Returns:
    the element
  • getCharacterAttributeRun

    public Element getCharacterAttributeRun()
    Fetches the element representing the current run of character attributes for the caret.
    Returns:
    the element
  • getCharacterAttributeRun

    public Element getCharacterAttributeRun​()
    Fetches the element representing the current run of character attributes for the caret.
    Returns:
    the element

method:getActions() [CHANGED]

  • getActions

    public Action[] getActions getActions​()
    Fetches the command list for the editor. This is the list of commands supported by the superclass augmented by the collection of commands defined locally for style operations.
    Overrides:
    getActions in class DefaultEditorKit
    Returns:
    the command list
  • getActions

    public Action[] getActions()
    Fetches the command list for the editor. This is the list of commands supported by the superclass augmented by the collection of commands defined locally for style operations.
    Overrides:
    getActions in class DefaultEditorKit
    Returns:
    the command list
  • getActions

    public Action[] getActions​()
    Fetches the command list for the editor. This is the list of commands supported by the superclass augmented by the collection of commands defined locally for style operations.
    Overrides:
    getActions in class DefaultEditorKit
    Returns:
    the command list

method:createDefaultDocument() [CHANGED]

  • createDefaultDocument

    public Document createDefaultDocument createDefaultDocument​()
    Creates an uninitialized text storage model that is appropriate for this type of editor.
    Overrides:
    createDefaultDocument in class DefaultEditorKit
    Returns:
    the model
  • createDefaultDocument

    public Document createDefaultDocument()
    Creates an uninitialized text storage model that is appropriate for this type of editor.
    Overrides:
    createDefaultDocument in class DefaultEditorKit
    Returns:
    the model
  • createDefaultDocument

    public Document createDefaultDocument​()
    Creates an uninitialized text storage model that is appropriate for this type of editor.
    Overrides:
    createDefaultDocument in class DefaultEditorKit
    Returns:
    the model

method:install(javax.swing.JEditorPane) [CHANGED]

  • install

    public void installpublic void install​(JEditorPane c)
    Called when the kit is being installed into a JEditorPane.
    Overrides:
    install in class EditorKit
    Parameters:
    c - the JEditorPane
  • install

    public void install(JEditorPane c)
    Called when the kit is being installed into a JEditorPane.
    Overrides:
    install in class EditorKit
    Parameters:
    c - the JEditorPane
  • install

    public void install​(JEditorPane c)
    Called when the kit is being installed into a JEditorPane.
    Overrides:
    install in class EditorKit
    Parameters:
    c - the JEditorPane

method:deinstall(javax.swing.JEditorPane) [CHANGED]

  • deinstall

    public void deinstallpublic void deinstall​(JEditorPane c)
    Called when the kit is being removed from the JEditorPane. This is used to unregister any listeners that were attached.
    Overrides:
    deinstall in class EditorKit
    Parameters:
    c - the JEditorPane
  • deinstall

    public void deinstall(JEditorPane c)
    Called when the kit is being removed from the JEditorPane. This is used to unregister any listeners that were attached.
    Overrides:
    deinstall in class EditorKit
    Parameters:
    c - the JEditorPane
  • deinstall

    public void deinstall​(JEditorPane c)
    Called when the kit is being removed from the JEditorPane. This is used to unregister any listeners that were attached.
    Overrides:
    deinstall in class EditorKit
    Parameters:
    c - the JEditorPane

method:getViewFactory() [CHANGED]

  • getViewFactory

    public ViewFactory getViewFactory getViewFactory​()
    Fetches a factory that is suitable for producing views of any models that are produced by this kit. This is implemented to return View implementations for the following kinds of elements:
    • AbstractDocument.ContentElementName
    • AbstractDocument.ParagraphElementName
    • AbstractDocument.SectionElementName
    • StyleConstants.ComponentElementName
    • StyleConstants.IconElementName
    Overrides:
    getViewFactory in class DefaultEditorKit
    Returns:
    the factory
  • getViewFactory

    public ViewFactory getViewFactory()
    Fetches a factory that is suitable for producing views of any models that are produced by this kit. This is implemented to return View implementations for the following kinds of elements:
    • AbstractDocument.ContentElementName
    • AbstractDocument.ParagraphElementName
    • AbstractDocument.SectionElementName
    • StyleConstants.ComponentElementName
    • StyleConstants.IconElementName
    Overrides:
    getViewFactory in class DefaultEditorKit
    Returns:
    the factory
  • getViewFactory

    public ViewFactory getViewFactory​()
    Fetches a factory that is suitable for producing views of any models that are produced by this kit. This is implemented to return View implementations for the following kinds of elements:
    • AbstractDocument.ContentElementName
    • AbstractDocument.ParagraphElementName
    • AbstractDocument.SectionElementName
    • StyleConstants.ComponentElementName
    • StyleConstants.IconElementName
    Overrides:
    getViewFactory in class DefaultEditorKit
    Returns:
    the factory

method:clone() [CHANGED]

  • clone

    public Object clone clone​()
    Creates a copy of the editor kit.
    Overrides:
    clone in class EditorKit
    Returns:
    the copy
    See Also:
    Cloneable

method:createInputAttributes(javax.swing.text.Element, javax.swing.text.MutableAttributeSet) [CHANGED]

  • createInputAttributes

    protected void createInputAttributesprotected void createInputAttributes​(Element element,
                                         MutableAttributeSet set)
    Copies the key/values in 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.

    Parameters:
    element - the element
    set - the attributes
  • createInputAttributes

    protected void createInputAttributes(Element element,
                                         MutableAttributeSet set)
    Copies the key/values in 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.

  • createInputAttributes

    protected void createInputAttributes​(Element element,
                                         MutableAttributeSet set)
    Copies the key/values in 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.

    Parameters:
    element - the element
    set - the attributes

© 2017 Oracle Corporation and/or its affiliates