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.AbstractElement
Implements the abstract part of an element.
|
class |
AbstractDocument.BranchElement
Implements a composite element that contains other elements.
|
class |
AbstractDocument.LeafElement
Implements an element that directly represents content of
some kind.
|
protected class |
DefaultStyledDocument.SectionElement
Default root element for a document...
|
class |
SimpleAttributeSet
A straightforward implementation of MutableAttributeSet using a
hash table.
|
class |
StyleContext.NamedStyle
A collection of attributes, typically used to represent
character and paragraph styles.
|
Modifier and Type | Method and Description |
---|---|
protected MutableAttributeSet |
StyleContext.createLargeAttributeSet(AttributeSet a)
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 element,
MutableAttributeSet set)
Copies the key/values in
element s AttributeSet into
set . |
void |
StyleContext.readAttributes(ObjectInputStream in,
MutableAttributeSet a)
Context-specific handling of reading in attributes
|
static void |
StyleContext.readAttributeSet(ObjectInputStream in,
MutableAttributeSet a)
Reads a set of attributes from the given object input
stream that have been previously written out with
writeAttributeSet . |
static void |
StyleConstants.setAlignment(MutableAttributeSet a,
int align)
Sets alignment.
|
static void |
StyleConstants.setBackground(MutableAttributeSet a,
Color fg)
Sets the background color.
|
static void |
StyleConstants.setBidiLevel(MutableAttributeSet a,
int o)
Sets the BidiLevel.
|
static void |
StyleConstants.setBold(MutableAttributeSet a,
boolean b)
Sets the bold attribute.
|
static void |
StyleConstants.setComponent(MutableAttributeSet a,
Component c)
Sets the component attribute.
|
static void |
StyleConstants.setFirstLineIndent(MutableAttributeSet a,
float i)
Sets the first line indent.
|
static void |
StyleConstants.setFontFamily(MutableAttributeSet a,
String fam)
Sets the font attribute.
|
static void |
StyleConstants.setFontSize(MutableAttributeSet a,
int s)
Sets the font size attribute.
|
static void |
StyleConstants.setForeground(MutableAttributeSet a,
Color fg)
Sets the foreground color.
|
static void |
StyleConstants.setIcon(MutableAttributeSet a,
Icon c)
Sets the icon attribute.
|
static void |
StyleConstants.setItalic(MutableAttributeSet a,
boolean b)
Sets the italic attribute.
|
static void |
StyleConstants.setLeftIndent(MutableAttributeSet a,
float i)
Sets left indent.
|
static void |
StyleConstants.setLineSpacing(MutableAttributeSet a,
float i)
Sets line spacing.
|
static void |
StyleConstants.setRightIndent(MutableAttributeSet a,
float i)
Sets right indent.
|
static void |
StyleConstants.setSpaceAbove(MutableAttributeSet a,
float i)
Sets space above.
|
static void |
StyleConstants.setSpaceBelow(MutableAttributeSet a,
float i)
Sets space below.
|
static void |
StyleConstants.setStrikeThrough(MutableAttributeSet a,
boolean b)
Sets the strikethrough attribute.
|
static void |
StyleConstants.setSubscript(MutableAttributeSet a,
boolean b)
Sets the subscript attribute.
|
static void |
StyleConstants.setSuperscript(MutableAttributeSet a,
boolean b)
Sets the superscript attribute.
|
static void |
StyleConstants.setTabSet(MutableAttributeSet a,
TabSet tabs)
Sets the TabSet.
|
static void |
StyleConstants.setUnderline(MutableAttributeSet a,
boolean b)
Sets the underline attribute.
|
Modifier and Type | Class and Description |
---|---|
class |
HTMLDocument.BlockElement
An element that represents a structural block of
HTML.
|
class |
HTMLDocument.RunElement
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 a)
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 attr,
CSS.Attribute key,
String value)
Adds a CSS attribute to the given set.
|
boolean |
StyleSheet.addCSSAttributeFromHTML(MutableAttributeSet attr,
CSS.Attribute key,
String value)
Adds a CSS attribute to the given set.
|
protected void |
HTMLDocument.HTMLReader.addSpecialElement(HTML.Tag t,
MutableAttributeSet a)
Adds content that is basically specified entirely
in the attribute set.
|
protected void |
HTMLDocument.HTMLReader.blockOpen(HTML.Tag t,
MutableAttributeSet attr)
Adds an instruction to the parse buffer to create a
block element with the given attributes.
|
protected void |
HTMLEditorKit.createInputAttributes(Element element,
MutableAttributeSet set)
Copies the key/values in
element s AttributeSet into
set . |
void |
HTMLDocument.HTMLReader.handleSimpleTag(HTML.Tag t,
MutableAttributeSet a,
int pos)
Callback from the parser.
|
void |
HTMLEditorKit.ParserCallback.handleSimpleTag(HTML.Tag t,
MutableAttributeSet a,
int pos) |
void |
HTMLDocument.HTMLReader.handleStartTag(HTML.Tag t,
MutableAttributeSet a,
int pos)
Callback from the parser.
|
void |
HTMLEditorKit.ParserCallback.handleStartTag(HTML.Tag t,
MutableAttributeSet a,
int pos) |
void |
HTMLDocument.HTMLReader.TagAction.start(HTML.Tag t,
MutableAttributeSet a)
Called when a start tag is seen for the
type of tag this action was registered
to.
|
void |
HTMLDocument.HTMLReader.BlockAction.start(HTML.Tag t,
MutableAttributeSet attr) |
void |
HTMLDocument.HTMLReader.ParagraphAction.start(HTML.Tag t,
MutableAttributeSet a) |
void |
HTMLDocument.HTMLReader.SpecialAction.start(HTML.Tag t,
MutableAttributeSet a) |
void |
HTMLDocument.HTMLReader.IsindexAction.start(HTML.Tag t,
MutableAttributeSet a) |
void |
HTMLDocument.HTMLReader.HiddenAction.start(HTML.Tag t,
MutableAttributeSet a) |
void |
HTMLDocument.HTMLReader.PreAction.start(HTML.Tag t,
MutableAttributeSet attr) |
void |
HTMLDocument.HTMLReader.CharacterAction.start(HTML.Tag t,
MutableAttributeSet attr) |
void |
HTMLDocument.HTMLReader.FormAction.start(HTML.Tag t,
MutableAttributeSet attr) |
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2017, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.