Java Doc for StyledEditorKit.java in  » 6.0-JDK-Core » swing » javax » swing » text » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Home
Java Source Code / Java Documentation
1.6.0 JDK Core
2.6.0 JDK Modules
3.6.0 JDK Modules com.sun
4.6.0 JDK Modules com.sun.java
5.6.0 JDK Modules sun
6.6.0 JDK Platform
7.Ajax
8.Apache Harmony Java SE
9.Aspect oriented
10.Authentication Authorization
11.Blogger System
12.Build
13.Byte Code
14.Cache
15.Chart
16.Chat
17.Code Analyzer
18.Collaboration
19.Content Management System
20.Database Client
21.Database DBMS
22.Database JDBC Connection Pool
23.Database ORM
24.Development
25.EJB Server
26.ERP CRM Financial
27.ESB
28.Forum
29.Game
30.GIS
31.Graphic 3D
32.Graphic Library
33.Groupware
34.HTML Parser
35.IDE
36.IDE Eclipse
37.IDE Netbeans
38.Installer
39.Internationalization Localization
40.Inversion of Control
41.Issue Tracking
42.J2EE
43.J2ME
44.JBoss
45.JMS
46.JMX
47.Library
48.Mail Clients
49.Music
50.Net
51.Parser
52.PDF
53.Portal
54.Profiler
55.Project Management
56.Report
57.RSS RDF
58.Rule Engine
59.Science
60.Scripting
61.Search Engine
62.Security
63.Sevlet Container
64.Source Control
65.Swing Library
66.Template Engine
67.Test Coverage
68.Testing
69.UML
70.Web Crawler
71.Web Framework
72.Web Mail
73.Web Server
74.Web Services
75.Web Services apache cxf 2.2.6
76.Web Services AXIS2
77.Wiki Engine
78.Workflow Engines
79.XML
80.XML UI
Java Source Code / Java Documentation » 6.0 JDK Core » swing » javax.swing.text 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javax.swing.text.EditorKit
      javax.swing.text.DefaultEditorKit
         javax.swing.text.StyledEditorKit

All known Subclasses:   javax.swing.text.html.HTMLEditorKit,  javax.swing.text.rtf.RTFEditorKit,
StyledEditorKit
public class StyledEditorKit extends DefaultEditorKit (Code)
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.
author:
   Timothy Prinzing
version:
   1.52 05/05/07

Inner Class :class AttributeTracker implements CaretListener,PropertyChangeListener,Serializable
Inner Class :static class StyledViewFactory implements ViewFactory
Inner Class :abstract public static class StyledTextAction extends TextAction
Inner Class :public static class FontFamilyAction extends StyledTextAction
Inner Class :public static class FontSizeAction extends StyledTextAction
Inner Class :public static class ForegroundAction extends StyledTextAction
Inner Class :public static class AlignmentAction extends StyledTextAction
Inner Class :public static class BoldAction extends StyledTextAction
Inner Class :public static class ItalicAction extends StyledTextAction
Inner Class :public static class UnderlineAction extends StyledTextAction
Inner Class :static class StyledInsertBreakAction extends StyledTextAction

Field Summary
 ElementcurrentParagraph
    
 ElementcurrentRun
    
 MutableAttributeSetinputAttributes
     This is the set of attributes used to store the input attributes.

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

Method Summary
public  Objectclone()
     Creates a copy of the editor kit.
public  DocumentcreateDefaultDocument()
     Creates an uninitialized text storage model that is appropriate for this type of editor.
protected  voidcreateInputAttributes(Element element, MutableAttributeSet set)
     Copies the key/values in elements AttributeSet into set.
public  voiddeinstall(JEditorPane c)
     Called when the kit is being removed from the JEditorPane.
public  Action[]getActions()
     Fetches the command list for the editor.
public  ElementgetCharacterAttributeRun()
     Fetches the element representing the current run of character attributes for the caret.
public  MutableAttributeSetgetInputAttributes()
     Gets the input attributes for the pane.
public  ViewFactorygetViewFactory()
     Fetches a factory that is suitable for producing views of any models that are produced by this kit.
public  voidinstall(JEditorPane c)
     Called when the kit is being installed into a JEditorPane.

Field Detail
currentParagraph
Element currentParagraph(Code)



currentRun
Element currentRun(Code)



inputAttributes
MutableAttributeSet inputAttributes(Code)
This is the set of attributes used to store the input attributes.




Constructor Detail
StyledEditorKit
public StyledEditorKit()(Code)
Creates a new EditorKit used for styled documents.




Method Detail
clone
public Object clone()(Code)
Creates a copy of the editor kit. the copy



createDefaultDocument
public Document createDefaultDocument()(Code)
Creates an uninitialized text storage model that is appropriate for this type of editor. the model



createInputAttributes
protected void createInputAttributes(Element element, MutableAttributeSet set)(Code)
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.




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



getActions
public Action[] getActions()(Code)
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. the command list



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



getInputAttributes
public MutableAttributeSet getInputAttributes()(Code)
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. the attribute set



getViewFactory
public ViewFactory getViewFactory()(Code)
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
the factory



install
public void install(JEditorPane c)(Code)
Called when the kit is being installed into a JEditorPane.
Parameters:
  c - the JEditorPane



Fields inherited from javax.swing.text.DefaultEditorKit
final public static String EndOfLineStringProperty(Code)(Java Doc)
final public static String backwardAction(Code)(Java Doc)
final public static String beepAction(Code)(Java Doc)
final public static String beginAction(Code)(Java Doc)
final public static String beginLineAction(Code)(Java Doc)
final public static String beginParagraphAction(Code)(Java Doc)
final public static String beginWordAction(Code)(Java Doc)
final public static String copyAction(Code)(Java Doc)
final public static String cutAction(Code)(Java Doc)
final public static String defaultKeyTypedAction(Code)(Java Doc)
final public static String deleteNextCharAction(Code)(Java Doc)
final public static String deleteNextWordAction(Code)(Java Doc)
final public static String deletePrevCharAction(Code)(Java Doc)
final public static String deletePrevWordAction(Code)(Java Doc)
final public static String downAction(Code)(Java Doc)
final public static String endAction(Code)(Java Doc)
final public static String endLineAction(Code)(Java Doc)
final public static String endParagraphAction(Code)(Java Doc)
final public static String endWordAction(Code)(Java Doc)
final public static String forwardAction(Code)(Java Doc)
final public static String insertBreakAction(Code)(Java Doc)
final public static String insertContentAction(Code)(Java Doc)
final public static String insertTabAction(Code)(Java Doc)
final public static String nextWordAction(Code)(Java Doc)
final public static String pageDownAction(Code)(Java Doc)
final public static String pageUpAction(Code)(Java Doc)
final public static String pasteAction(Code)(Java Doc)
final public static String previousWordAction(Code)(Java Doc)
final public static String readOnlyAction(Code)(Java Doc)
final public static String selectAllAction(Code)(Java Doc)
final public static String selectLineAction(Code)(Java Doc)
final public static String selectParagraphAction(Code)(Java Doc)
final public static String selectWordAction(Code)(Java Doc)
final public static String selectionBackwardAction(Code)(Java Doc)
final public static String selectionBeginAction(Code)(Java Doc)
final public static String selectionBeginLineAction(Code)(Java Doc)
final public static String selectionBeginParagraphAction(Code)(Java Doc)
final public static String selectionBeginWordAction(Code)(Java Doc)
final public static String selectionDownAction(Code)(Java Doc)
final public static String selectionEndAction(Code)(Java Doc)
final public static String selectionEndLineAction(Code)(Java Doc)
final public static String selectionEndParagraphAction(Code)(Java Doc)
final public static String selectionEndWordAction(Code)(Java Doc)
final public static String selectionForwardAction(Code)(Java Doc)
final public static String selectionNextWordAction(Code)(Java Doc)
final static String selectionPageDownAction(Code)(Java Doc)
final static String selectionPageLeftAction(Code)(Java Doc)
final static String selectionPageRightAction(Code)(Java Doc)
final static String selectionPageUpAction(Code)(Java Doc)
final public static String selectionPreviousWordAction(Code)(Java Doc)
final public static String selectionUpAction(Code)(Java Doc)
final static String toggleComponentOrientationAction(Code)(Java Doc)
final static String unselectAction(Code)(Java Doc)
final public static String upAction(Code)(Java Doc)
final public static String writableAction(Code)(Java Doc)

Methods inherited from javax.swing.text.DefaultEditorKit
public Caret createCaret()(Code)(Java Doc)
public Document createDefaultDocument()(Code)(Java Doc)
public Action[] getActions()(Code)(Java Doc)
public String getContentType()(Code)(Java Doc)
MutableAttributeSet getInputAttributes()(Code)(Java Doc)
public ViewFactory getViewFactory()(Code)(Java Doc)
public void read(InputStream in, Document doc, int pos) throws IOException, BadLocationException(Code)(Java Doc)
public void read(Reader in, Document doc, int pos) throws IOException, BadLocationException(Code)(Java Doc)
public void write(OutputStream out, Document doc, int pos, int len) throws IOException, BadLocationException(Code)(Java Doc)
public void write(Writer out, Document doc, int pos, int len) throws IOException, BadLocationException(Code)(Java Doc)

Methods inherited from javax.swing.text.EditorKit
public Object clone()(Code)(Java Doc)
abstract public Caret createCaret()(Code)(Java Doc)
abstract public Document createDefaultDocument()(Code)(Java Doc)
public void deinstall(JEditorPane c)(Code)(Java Doc)
abstract public Action[] getActions()(Code)(Java Doc)
abstract public String getContentType()(Code)(Java Doc)
abstract public ViewFactory getViewFactory()(Code)(Java Doc)
public void install(JEditorPane c)(Code)(Java Doc)
abstract public void read(InputStream in, Document doc, int pos) throws IOException, BadLocationException(Code)(Java Doc)
abstract public void read(Reader in, Document doc, int pos) throws IOException, BadLocationException(Code)(Java Doc)
abstract public void write(OutputStream out, Document doc, int pos, int len) throws IOException, BadLocationException(Code)(Java Doc)
abstract public void write(Writer out, Document doc, int pos, int len) throws IOException, BadLocationException(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.