java.lang.Object | |
↳ | javax.swing.text.DefaultStyledDocument.ElementSpec |
Specification for building elements.
Warning:
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is
appropriate for short term storage or RMI between applications running
the same version of Swing. As of 1.4, support for long term storage
of all JavaBeansTM
has been added to the java.beans
package.
Please see XMLEncoder
.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
short | ContentType | A possible value for getType. | |||||||||
short | EndTagType | A possible value for getType. | |||||||||
short | JoinFractureDirection | A possible value for getDirection. | |||||||||
short | JoinNextDirection | A possible value for getDirection. | |||||||||
short | JoinPreviousDirection | A possible value for getDirection. | |||||||||
short | OriginateDirection | A possible value for getDirection. | |||||||||
short | StartTagType | A possible value for getType. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructor useful for markup when the markup will not
be stored in the document.
| |||||||||||
Constructor for parsing inside the document when
the data has already been added, but len information
is needed.
| |||||||||||
Constructor for creating a spec externally for batch
input of content and markup into the document.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets the array of characters.
| |||||||||||
Gets the element attributes.
| |||||||||||
Gets the direction.
| |||||||||||
Gets the length.
| |||||||||||
Gets the starting offset.
| |||||||||||
Gets the element type.
| |||||||||||
Sets the direction.
| |||||||||||
Sets the element type.
| |||||||||||
Converts the element to a string.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
A possible value for getType. This specifies that this record type represents content.
A possible value for getType. This specifies that this record type is a end tag and represents markup that specifies the end of an element.
A possible value for getDirection. This specifies that the data associated with this record should be joined to the fractured element.
A possible value for getDirection. This specifies that the data associated with this record should be joined to what follows it.
A possible value for getDirection. This specifies that the data associated with this record should be joined to what precedes it.
A possible value for getDirection. This specifies that the data associated with this record should be used to originate a new element. This would be the normal value.
A possible value for getType. This specifies that this record type is a start tag and represents markup that specifies the start of an element.
Constructor useful for markup when the markup will not be stored in the document.
a | the attributes for the element |
---|---|
type | the type of the element (StartTagType, EndTagType, ContentType) |
Constructor for parsing inside the document when the data has already been added, but len information is needed.
a | the attributes for the element |
---|---|
type | the type of the element (StartTagType, EndTagType, ContentType) |
len | the length >= 0 |
Constructor for creating a spec externally for batch input of content and markup into the document.
a | the attributes for the element |
---|---|
type | the type of the element (StartTagType, EndTagType, ContentType) |
txt | the text for the element |
offs | the offset into the text >= 0 |
len | the length of the text >= 0 |
Gets the array of characters.
Gets the direction.
Gets the length.
Gets the starting offset.
Gets the element type.
Sets the direction.
direction | the direction (JoinPreviousDirection, JoinNextDirection) |
---|
Sets the element type.
type | the type of the element (StartTagType, EndTagType, ContentType) |
---|