| Package | Description |
|---|---|
| javax.swing |
Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.
|
| javax.swing.text |
Provides classes and interfaces that deal with editable and noneditable text components.
|
| javax.swing.text.html |
Provides the class
HTMLEditorKit and supporting classes for creating HTML text editors.
|
| Modifier and Type | Method and Description |
|---|---|
MutableAttributeSet |
JTextPane.getInputAttributes()
Gets the input attributes for the pane.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
Style
A collection of attributes to associate with an element in a document.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractDocument
Implements the abstract part of an element.
|
class |
AbstractDocument
Implements a composite element that contains other elements.
|
class |
AbstractDocument
Implements an element that directly represents content of some kind.
|
protected class |
DefaultStyledDocument
Default root element for a document...
|
class |
SimpleAttributeSet
A straightforward implementation of MutableAttributeSet using a hash table.
|
class |
StyleContext
A collection of attributes, typically used to represent character and paragraph styles.
|
| Modifier and Type | Method and Description |
|---|---|
protected MutableAttributeSet |
StyleContext.createLargeAttributeSet(AttributeSet
Create a large set of attributes that should trade off space for time.
|
MutableAttributeSet |
StyledEditorKit.getInputAttributes()
Gets the input attributes for the pane.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
StyledEditorKit.createInputAttributes(Element
Copies the key/values in
elements AttributeSet into
set.
|
void |
StyleContext.readAttributes(ObjectInputStream
Context-specific handling of reading in attributes
|
static void |
StyleContext.readAttributeSet(ObjectInputStream
Reads a set of attributes from the given object input stream that have been previously written out with
writeAttributeSet.
|
static void |
StyleConstants.setAlignment(MutableAttributeSet
Sets alignment.
|
static void |
StyleConstants.setBackground(MutableAttributeSet
Sets the background color.
|
static void |
StyleConstants.setBidiLevel(MutableAttributeSet
Sets the BidiLevel.
|
static void |
StyleConstants.setBold(MutableAttributeSet
Sets the bold attribute.
|
static void |
StyleConstants.setComponent(MutableAttributeSet
Sets the component attribute.
|
static void |
StyleConstants.setFirstLineIndent(MutableAttributeSet
Sets the first line indent.
|
static void |
StyleConstants.setFontFamily(MutableAttributeSet
Sets the font attribute.
|
static void |
StyleConstants.setFontSize(MutableAttributeSet
Sets the font size attribute.
|
static void |
StyleConstants.setForeground(MutableAttributeSet
Sets the foreground color.
|
static void |
StyleConstants.setIcon(MutableAttributeSet
Sets the icon attribute.
|
static void |
StyleConstants.setItalic(MutableAttributeSet
Sets the italic attribute.
|
static void |
StyleConstants.setLeftIndent(MutableAttributeSet
Sets left indent.
|
static void |
StyleConstants.setLineSpacing(MutableAttributeSet
Sets line spacing.
|
static void |
StyleConstants.setRightIndent(MutableAttributeSet
Sets right indent.
|
static void |
StyleConstants.setSpaceAbove(MutableAttributeSet
Sets space above.
|
static void |
StyleConstants.setSpaceBelow(MutableAttributeSet
Sets space below.
|
static void |
StyleConstants.setStrikeThrough(MutableAttributeSet
Sets the strikethrough attribute.
|
static void |
StyleConstants.setSubscript(MutableAttributeSet
Sets the subscript attribute.
|
static void |
StyleConstants.setSuperscript(MutableAttributeSet
Sets the superscript attribute.
|
static void |
StyleConstants.setTabSet(MutableAttributeSet
Sets the TabSet.
|
static void |
StyleConstants.setUnderline(MutableAttributeSet
Sets the underline attribute.
|
| Modifier and Type | Class and Description |
|---|---|
class |
HTMLDocument
An element that represents a structural
block of HTML.
|
class |
HTMLDocument
An element that represents a chunk of text that has a set of HTML character level attributes assigned to it.
|
| Modifier and Type | Field and Description |
|---|---|
protected MutableAttributeSet |
HTMLDocument.HTMLReader.charAttr
|
| Modifier and Type | Method and Description |
|---|---|
protected MutableAttributeSet |
StyleSheet.createLargeAttributeSet(AttributeSet
Creates a large set of attributes that should trade off space for time.
|
MutableAttributeSet |
HTMLEditorKit.getInputAttributes()
Gets the input attributes used for the styled editing actions.
|
| Modifier and Type | Method and Description |
|---|---|
void |
StyleSheet.addCSSAttribute(MutableAttributeSet
Adds a CSS attribute to the given set.
|
boolean |
StyleSheet.addCSSAttributeFromHTML(MutableAttributeSet
Adds a CSS attribute to the given set.
|
protected void |
HTMLDocument.HTMLReader.addSpecialElement(HTML
Adds content that is basically specified entirely in the attribute set.
|
protected void |
HTMLDocument.HTMLReader.blockOpen(HTML
Adds an instruction to the parse buffer to create a block element with the given attributes.
|
protected void |
HTMLEditorKit.createInputAttributes(Element
Copies the key/values in
elements AttributeSet into
set.
|
void |
HTMLEditorKit.ParserCallback.handleSimpleTag(HTML
|
void |
HTMLDocument.HTMLReader.handleSimpleTag(HTML
Callback from the parser.
|
void |
HTMLEditorKit.ParserCallback.handleStartTag(HTML
|
void |
HTMLDocument.HTMLReader.handleStartTag(HTML
Callback from the parser.
|
void |
HTMLDocument.HTMLReader.TagAction.start(HTML
Called when a start tag is seen for the type of tag this action was registered to.
|
void |
HTMLDocument.HTMLReader.BlockAction.start(HTML
|
void |
HTMLDocument.HTMLReader.ParagraphAction.start(HTML
|
void |
HTMLDocument.HTMLReader.SpecialAction.start(HTML
|
void |
HTMLDocument.HTMLReader.IsindexAction.start(HTML
|
void |
HTMLDocument.HTMLReader.HiddenAction.start(HTML
|
void |
HTMLDocument.HTMLReader.PreAction.start(HTML
|
void |
HTMLDocument.HTMLReader.CharacterAction.start(HTML
|
void |
HTMLDocument.HTMLReader.FormAction.start(HTML
|