Home » openjdk-7 » javax » swing » text »

javax.swing.text

Sub Packages:

javax.swing.text.html   Provides the class HTMLEditorKit and supporting classes for creating HTML text editors.  
javax.swing.text.html.parser   Provides the default HTML parser, along with support classes.  
javax.swing.text.rtf   Provides a class ( RTFEditorKit ) for creating Rich-Text-Format text editors.  

Interfaces:

AbstractDocument.AttributeContext   An interface that can be used to allow MutableAttributeSet implementations to use pluggable attribute compression techniques.  code | html
AbstractDocument.Content   Interface to describe a sequence of character content that can be edited.  code | html
AttributeSet   A collection of unique attributes.  code | html
AttributeSet.CharacterAttribute   This interface is the type signature that is expected to be present on any attribute key that contributes to character level presentation.  code | html
AttributeSet.ColorAttribute   This interface is the type signature that is expected to be present on any attribute key that contributes to presentation of color.  code | html
AttributeSet.FontAttribute   This interface is the type signature that is expected to be present on any attribute key that contributes to the determination of what font to use to render some text.  code | html
AttributeSet.ParagraphAttribute   This interface is the type signature that is expected to be present on any attribute key that contributes to the paragraph level presentation.  code | html
Caret   A place within a document view that represents where things can be inserted into the document model.  code | html
CharacterIterator     code | html
Document  

The Document is a container for text that serves as the model for swing text components. 

code | html
Element   Interface to describe a structural piece of a document.  code | html
Highlighter   An interface for an object that allows one to mark up the background with colored areas.  code | html
Highlighter.Highlight     code | html
Highlighter.HighlightPainter   Highlight renderer.  code | html
Keymap   A collection of bindings of KeyStrokes to actions.  code | html
MutableAttributeSet   A generic interface for a mutable collection of unique attributes.  code | html
Position   Represents a location within a document.  code | html
Style   A collection of attributes to associate with an element in a document.  code | html
StyledDocument   Interface for a generic styled document.  code | html
TabExpander   Simple interface to allow for different types of implementations of tab expansion.  code | html
TabableView   Interface for Views that have size dependent upon tabs.  code | html
TableView.GridCell   THIS IS NO LONGER USED, AND WILL BE REMOVED IN THE NEXT RELEASE.  code | html
TextInterval.TextIntervalPainter   Defines how text is actually painted.  code | html
ViewFactory   A factory to create a view of some portion of document subject.  code | html

Abstract Classes:

AbstractContentUndoableEdit     code | html
AbstractDocument   An implementation of the document interface to serve as a basis for implementing various kinds of documents.  code | html
AbstractDocument.AbstractElement   Implements the abstract part of an element.  code | html
AbstractWriter   AbstractWriter is an abstract class that actually does the work of writing out the element tree including the attributes.  code | html
CompositeView   CompositeView is an abstract View implementation which manages one or more child views.  code | html
ContentPositions     code | html
DefaultStyledDocument.AbstractChangeHandler   Base class for style change handlers with support for stale objects detection.  code | html
DefaultTextUI  

This class has been deprecated and should no longer be used. 

code | html
DocumentFilter.FilterBypass   Used as a way to circumvent calling back into the Document to change it.  code | html
EditorKit   Establishes the set of things needed by a text component to be a reasonably functioning editor for some type of text content.  code | html
FlowView   A View that tries to flow it's children into some partially constrained space.  code | html
GapVector   An implementation of a gapped buffer similar to that used by emacs.  code | html
GlyphView.GlyphPainter   A class to perform rendering of the glyphs.  code | html
JTextComponent   JTextComponent is the base class for swing text components.  code | html
LayeredHighlighter     code | html
LayeredHighlighter.LayerPainter   Layered highlight renderer.  code | html
NavigationFilter.FilterBypass   Used as a way to circumvent calling back into the caret to position the cursor.  code | html
PlainViewI18N.BidiTextView   Base class for directional run of text.  code | html
StyledEditorKit.StyledTextAction   An action that assumes it's being fired on a JEditorPane with a StyledEditorKit (or subclass) installed.  code | html
TableView  

Implements View interface for a table, that is composed of an element structure where the child elements of the element this view is responsible for represent rows and the child elements of the row elements are cells. 

code | html
TextAction   An Action implementation useful for key bindings that are shared across a number of different text components.  code | html
TextInterval   Represents a basic interval of text.  code | html
View  

A very important part of the text package is the View class. 

code | html

Classes:

AWTCaret     code | html
AbstractDocument.BidiElement   Represents an element of the bidirectional element structure.  code | html
AbstractDocument.BidiRootElement   Represents the root element of the bidirectional element structure.  code | html
AbstractDocument.BranchElement   Implements a composite element that contains other elements.  code | html
AbstractDocument.DefaultDocumentEvent   Stores document changes as the document is being modified.  code | html
AbstractDocument.DefaultFilterBypass     code | html
AbstractDocument.ElementEdit   An implementation of ElementChange that can be added to the document event.  code | html
AbstractDocument.LeafElement   Implements an element that directly represents content of some kind.  code | html
AbstractDocument.UndoRedoDocumentEvent   This event used when firing document changes while Undo/Redo operations.  code | html
AsyncBoxView   A box that does layout asynchronously.  code | html
AsyncBoxView.ChildLocator   A class to manage the effective position of the child views in a localized area while changes are being made around the localized area.  code | html
AsyncBoxView.ChildState   A record representing the layout state of a child view.  code | html
AsyncBoxView.FlushTask   Task to flush requirement changes upward  code | html
BadLocationException   This exception is to report bad locations within a document model (that is, attempts to reference a location that doesn't exist).  code | html
BoxView   A view that arranges its children into a box shape by tiling its children along an axis.  code | html
ChangedCharSetException   ChangedCharSetException as the name indicates is an exception thrown when the charset is changed.  code | html
ComponentView   Component decorator that implements the view interface.  code | html
ComponentView.Invalidator   This class feeds the invalidate back to the hosting View.  code | html
ComposedTextInterval   Interval with composed text.  code | html
ContentPositions.DocumentMark     code | html
ContentPositions.MarkReference     code | html
ContentPositions.UndoPosRef     code | html
ContentPositions.WeakPosition     code | html
DateFormatter   DateFormatter is an InternationalFormatter that does its formatting by way of an instance of java.text.DateFormat code | html
DefaultCaret   A default implementation of Caret.  code | html
DefaultCaret.DefaultFilterBypass     code | html
DefaultCaret.Handler     code | html
DefaultCaret.SafeScroller     code | html
DefaultEditorKit   This is the set of things needed by a text component to be a reasonably functioning editor for some type of text document.  code | html
DefaultEditorKit.BeepAction   Creates a beep.  code | html
DefaultEditorKit.BeginAction     code | html
DefaultEditorKit.BeginLineAction     code | html
DefaultEditorKit.BeginParagraphAction     code | html
DefaultEditorKit.BeginWordAction     code | html
DefaultEditorKit.CopyAction   Copies the selected region and place its contents into the system clipboard.  code | html
DefaultEditorKit.CutAction   Cuts the selected region and place its contents into the system clipboard.  code | html
DefaultEditorKit.DefaultKeyTypedAction   The action that is executed by default if a key typed event is received and there is no keymap entry.  code | html
DefaultEditorKit.DeleteNextCharAction     code | html
DefaultEditorKit.DeletePrevCharAction     code | html
DefaultEditorKit.DeleteWordAction     code | html
DefaultEditorKit.DumpModelAction     code | html
DefaultEditorKit.EndAction     code | html
DefaultEditorKit.EndLineAction     code | html
DefaultEditorKit.EndParagraphAction     code | html
DefaultEditorKit.EndWordAction     code | html
DefaultEditorKit.InsertBreakAction   Places a line/paragraph break into the document.  code | html
DefaultEditorKit.InsertContentAction   Places content into the associated document.  code | html
DefaultEditorKit.InsertTabAction   Places a tab character into the document.  code | html
DefaultEditorKit.NextVisualPositionAction     code | html
DefaultEditorKit.NextWordAction     code | html
DefaultEditorKit.PageAction   Pages one view to the left or right.  code | html
DefaultEditorKit.PasteAction   Pastes the contents of the system clipboard into the selected region, or before the caret if nothing is selected.  code | html
DefaultEditorKit.PreviousWordAction     code | html
DefaultEditorKit.ReadOnlyAction     code | html
DefaultEditorKit.SelectAllAction     code | html
DefaultEditorKit.SelectLineAction     code | html
DefaultEditorKit.SelectParagraphAction     code | html
DefaultEditorKit.SelectWordAction     code | html
DefaultEditorKit.ToggleComponentOrientationAction     code | html
DefaultEditorKit.UnselectAction     code | html
DefaultEditorKit.VerticalPageAction   Scrolls up/down vertically.  code | html
DefaultEditorKit.WritableAction     code | html
DefaultFormatter   DefaultFormatter formats aribtrary objects.  code | html
DefaultFormatter.DefaultDocumentFilter   DocumentFilter implementation that calls back to the replace method of DefaultFormatter.  code | html
DefaultFormatter.DefaultNavigationFilter   NavigationFilter implementation that calls back to methods with same name in DefaultFormatter.  code | html
DefaultFormatter.ReplaceHolder   ReplaceHolder is used to track where insert/remove/replace is going to happen.  code | html
DefaultFormatterFactory   An implementation of JFormattedTextField.AbstractFormatterFactory code | html
DefaultGlyphPainter   Default GlyphPainter which is used when a GlyphView needs a painter but none was set.  code | html
DefaultGlyphPainter.TextPainter     code | html
DefaultHighlighter   Implements the Highlighter interfaces.  code | html
DefaultHighlighter.DefaultHighlightPainter   Simple highlight painter that fills a highlighted area with a solid color.  code | html
DefaultHighlighter.HighlightInfo     code | html
DefaultHighlighter.LayeredHighlightInfo   LayeredHighlightPainter is used when a drawsLayeredHighlights is true.  code | html
DefaultHighlighter.SafeDamager   This class invokes mapper.damageRange in EventDispatchThread.  code | html
DefaultStyledDocument   A document that can be marked up with character and paragraph styles in a manner similar to the Rich Text Format.  code | html
DefaultStyledDocument.AbstractChangeHandler.DocReference     code | html
DefaultStyledDocument.AttributeUndoableEdit   An UndoableEdit used to remember AttributeSet changes to an Element.  code | html
DefaultStyledDocument.ChangeUpdateRunnable   When run this creates a change event for the complete document and fires it.  code | html
DefaultStyledDocument.ElementBuffer   Class to manage changes to the element hierarchy.  code | html
DefaultStyledDocument.ElementBuffer.ElemChanges     code | html
DefaultStyledDocument.ElementSpec   Specification for building elements.  code | html
DefaultStyledDocument.SectionElement   Default root element for a document...  code | html
DefaultStyledDocument.StyleChangeHandler   Added to all the Styles.  code | html
DefaultStyledDocument.StyleChangeUndoableEdit   UndoableEdit for changing the resolve parent of an Element.  code | html
DefaultStyledDocument.StyleContextChangeHandler   Added to the StyleContext.  code | html
DocumentFilter   DocumentFilter, as the name implies, is a filter for the Document mutation methods.  code | html
ElementIterator  

ElementIterator, as the name suggests, iteratates over the Element tree. 

code | html
ElementIterator.StackItem   The StackItem class stores the element as well as a child index.  code | html
EmptyAttributeSet   Implementation of empty attribute set.  code | html
FieldView   Extends the multi-line plain text view to be suitable for a single-line editor view.  code | html
FieldViewI18N     code | html
FlowView.FlowStrategy   Strategy for maintaining the physical form of the flow.  code | html
FlowView.LogicalView   This class can be used to represent a logical view for a flow.  code | html
GapContent   An implementation of the AbstractDocument.Content interface implemented using a gapped buffer similar to that used by emacs.  code | html
GapContent.InsertUndo   UnoableEdit created for inserts.  code | html
GapContent.MarkData   Holds the data for a mark...  code | html
GapContent.MarkVector     code | html
GapContent.RemoveUndo   UndoableEdit created for removes.  code | html
GapContent.StickyPosition     code | html
GapContent.UndoPosRef   Used to hold a reference to a Mark that is being reset as the result of removing from the content.  code | html
GlyphPainter1   A class to perform rendering of the glyphs.  code | html
GlyphPainter2   A class to perform rendering of the glyphs.  code | html
GlyphView   A GlyphView is a styled chunk of text that represents a view mapped over an element in the text model.  code | html
GlyphView.JustificationInfo   Class to hold data needed to justify this GlyphView in a PargraphView.Row  code | html
IconView   Icon decorator that implements the view interface.  code | html
InternationalFormatter   InternationalFormatter extends DefaultFormatter, using an instance of java.text.Format to handle the conversion to a String, and the conversion from a String.  code | html
InternationalFormatter.ExtendedReplaceHolder   As InternationalFormatter replaces the complete text on every edit, ExtendedReplaceHolder keeps track of the offset and length passed into canReplace.  code | html
InternationalFormatter.IncrementAction   IncrementAction is used to increment the value by a certain amount.  code | html
JTextComponent.AccessibleJTextComponent   This class implements accessibility support for the JTextComponent class.  code | html
JTextComponent.AccessibleJTextComponent.IndexedSegment   IndexedSegment extends Segment adding the offset into the the model the Segment was asked for.  code | html
JTextComponent.ComposedTextCaret     code | html
JTextComponent.DefaultKeymap     code | html
JTextComponent.DefaultTransferHandler   A Simple TransferHandler that exports the data as a String, and imports the data from the String clipboard.  code | html
JTextComponent.DoSetCaretPosition     code | html
JTextComponent.DropLocation   Represents a drop location for JTextComponents.  code | html
JTextComponent.InputMethodRequestsHandler     code | html
JTextComponent.KeyBinding   Binding record for creating key bindings.  code | html
JTextComponent.KeymapActionMap   Wraps a Keymap inside an ActionMap.  code | html
JTextComponent.KeymapWrapper   KeymapWrapper wraps a Keymap inside an InputMap.  code | html
JTextComponent.MutableCaretEvent   Event to use when firing a notification of change to caret position.  code | html
LabelView   A LabelView is a styled chunk of text that represents a view mapped over an element in the text model.  code | html
LayoutQueue   A queue of text layout tasks.  code | html
LayoutQueue.LayoutThread   low priority thread to perform layout work forever  code | html
MaskFormatter   MaskFormatter is used to format and edit strings.  code | html
MaskFormatter.AlphaNumericCharacter   Represents either a character or digit, uses Character.isLetterOrDigit code | html
MaskFormatter.CharCharacter   Represents a letter, uses Character.isLetter code | html
MaskFormatter.DigitMaskCharacter   Represents a number, uses Character.isDigit code | html
MaskFormatter.HexCharacter   Represents a hex character, 0-9a-fA-F. a-f is mapped to A-F  code | html
MaskFormatter.LiteralCharacter   Used to represent a fixed character in the mask.  code | html
MaskFormatter.LowerCaseCharacter   Represents a character, upper case letters are mapped to lower case using Character.toLowerCase code | html
MaskFormatter.MaskCharacter     code | html
MaskFormatter.UpperCaseCharacter   Represents a character, lower case letters are mapped to upper case using Character.toUpperCase code | html
NavigationFilter   NavigationFilter can be used to restrict where the cursor can be positioned.  code | html
NumberFormatter   NumberFormatter subclasses InternationalFormatter adding special behavior for numbers.  code | html
ParagraphView   View of a simple line-wrapping paragraph that supports multiple fonts, colors, components, icons, etc.  code | html
ParagraphView.Row   Internally created view that has the purpose of holding the views that represent the children of the paragraph that have been arranged in rows.  code | html
PasswordView   Implements a View suitable for use in JPasswordField UI implementations.  code | html
PlainDocument   A plain document that maintains no character attributes.  code | html
PlainEditorKit     code | html
PlainView   Implements View interface for a simple multi-line text view that has text in one font and color.  code | html
PlainViewI18N   Represents view for displaying bidirectional text.  code | html
PlainViewI18N.LTRTextView   Represents text fragment with left-to-right orientation.  code | html
PlainViewI18N.LineView   Represents one logical line of text.  code | html
PlainViewI18N.RTLTextView   Represents text fragment with right-to-left orientation.  code | html
Position.Bias   A typesafe enumeration to indicate bias to a position in the model.  code | html
RootView     code | html
Segment   A segment of a character array representing a fragment of text.  code | html
SegmentCache   SegmentCache caches Segments to avoid continually creating and destroying of Segments.  code | html
SegmentCache.CachedSegment   CachedSegment is used as a tagging interface to determine if a Segment can successfully be shared.  code | html
SelectedTextInterval   Interval with selected text.  code | html
SimpleAttributeSet   A straightforward implementation of MutableAttributeSet using a hash table.  code | html
SimpleAttributeSet.EmptyAttributeSet   An AttributeSet that is always empty.  code | html
StateInvariantError   This exception is to report the failure of state invarient assertion that was made.  code | html
StringContent   An implementation of the AbstractDocument.Content interface that is a brute force implementation that is useful for relatively small documents and/or debugging.  code | html
StringContent.InsertUndo   UnoableEdit created for inserts.  code | html
StringContent.PosRec   holds the data for a mark...  code | html
StringContent.RemoveUndo   UndoableEdit created for removes.  code | html
StringContent.StickyPosition   This really wants to be a weak reference but in 1.1 we don't have a 100% pure solution for this...  code | html
StringContent.UndoPosRef   Used to hold a reference to a Position that is being reset as the result of removing from the content.  code | html
StyleConstants  

A collection of well known or common attribute keys and methods to apply to an AttributeSet or MutableAttributeSet to get/set the properties in a typesafe manner. 

code | html
StyleConstants.CharacterConstants   This is a typesafe enumeration of the well-known attributes that contribute to a character style.  code | html
StyleConstants.ColorConstants   This is a typesafe enumeration of the well-known attributes that contribute to a color.  code | html
StyleConstants.FontConstants   This is a typesafe enumeration of the well-known attributes that contribute to a font.  code | html
StyleConstants.ParagraphConstants   This is a typesafe enumeration of the well-known attributes that contribute to a paragraph style.  code | html
StyleContext   A pool of styles and their associated resources.  code | html
StyleContext.FontKey   key for a font table  code | html
StyleContext.KeyBuilder   Sorts the key strings so that they can be very quickly compared in the attribute set searchs.  code | html
StyleContext.KeyEnumeration   An enumeration of the keys in a SmallAttributeSet.  code | html
StyleContext.NamedStyle   A collection of attributes, typically used to represent character and paragraph styles.  code | html
StyleContext.SmallAttributeSet   This class holds a small number of attributes in an array.  code | html
StyledEditorKit   This is the set of things needed by a text component to be a reasonably functioning editor for some type of text document.  code | html
StyledEditorKit.AlignmentAction   An action to set paragraph alignment.  code | html
StyledEditorKit.AttributeTracker   Tracks caret movement and keeps the input attributes set to reflect the current set of attribute definitions at the caret position.  code | html
StyledEditorKit.BoldAction   An action to toggle the bold attribute.  code | html
StyledEditorKit.FontFamilyAction   An action to set the font family in the associated JEditorPane.  code | html
StyledEditorKit.FontSizeAction   An action to set the font size in the associated JEditorPane.  code | html
StyledEditorKit.ForegroundAction   An action to set foreground color.  code | html
StyledEditorKit.ItalicAction   An action to toggle the italic attribute.  code | html
StyledEditorKit.StyledInsertBreakAction   StyledInsertBreakAction has similar behavior to that of DefaultEditorKit.InsertBreakAction code | html
StyledEditorKit.StyledViewFactory     code | html
StyledEditorKit.UnderlineAction   An action to toggle the underline attribute.  code | html
TabSet   A TabSet is comprised of many TabStops.  code | html
TabStop   This class encapsulates a single tab stop (basically as tab stops are thought of by RTF).  code | html
TableView.TableCell     code | html
TableView.TableRow   View of a row in a row-centric table.  code | html
TextFactoryImpl     code | html
TextLayoutStrategy   A flow strategy that uses java.awt.font.LineBreakMeasureer to produce java.awt.font.TextLayout for i18n capable rendering.  code | html
TextLayoutStrategy.AttributedSegment   Implementation of AttributedCharacterIterator that supports the GlyphView attributes for rendering the glyphs through a TextLayout.  code | html
TextPaintParams   Stores parameters to paint text in plain text views.  code | html
UnselectedTextInterval   Interval with unselected text.  code | html
Utilities   A collection of methods to deal with various text related activities.  code | html
WhitespaceBasedBreakIterator   A simple whitespace-based BreakIterator implementation.  code | html
WrappedPlainView   View of plain text (text with only one font and color) that does line-wrapping.  code | html
WrappedPlainView.WrappedLine   Simple view of a line that wraps if it doesn't fit withing the horizontal space allocated.  code | html
ZoneView   ZoneView is a View implementation that creates zones for which the child views are not created or stored until they are needed for display or model/view translations.  code | html
ZoneView.Zone   Internally created view that has the purpose of holding the views that represent the children of the ZoneView that have been arranged in a zone.  code | html