All Packages Class Hierarchy This Package Previous Next Index
Interface com.sun.java.swing.text.ElementSpec
- public interface ElementSpec
Interface to act as a specification for creating
elements.
-
ContentType
- A possible value for getType.
-
EndTagType
- A possible value for getType.
-
JoinNextDirection
- A possible value for getDirection.
-
JoinPreviousDirection
- A possible value for getDirection.
-
OriginateDirection
- A possible value for getDirection.
-
StartTagType
- A possible value for getType.
-
getArray()
- The associated text, if there is any.
-
getAttributes()
- The attributes to associate with the element.
-
getDirection()
- The way insert should be done.
-
getLength()
- The length of the text
-
getOffset()
- The offset into the character array for
which the text begins.
-
getType()
- The type of specification.
StartTagType
public static final short StartTagType
- 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.
EndTagType
public static final short EndTagType
- 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.
ContentType
public static final short ContentType
- A possible value for getType. This specifies
that this record type represents content.
JoinPreviousDirection
public static final short JoinPreviousDirection
- A possible value for getDirection. This specifies
that the data associated with this record should
be joined to what precedes it.
JoinNextDirection
public static final short JoinNextDirection
- A possible value for getDirection. This specifies
that the data associated with this record should
be joined to what follows it.
OriginateDirection
public static final short OriginateDirection
- 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.
getType
public abstract short getType()
- The type of specification. This can represent
markup or content.
getDirection
public abstract short getDirection()
- The way insert should be done. The default value
for this should be OriginateDirection.
getAttributes
public abstract AttributeSet getAttributes()
- The attributes to associate with the element.
This will be copied so a MutableAttributeSet
can safely be used to supply this value.
getArray
public abstract char[] getArray()
- The associated text, if there is any.
getOffset
public abstract int getOffset()
- The offset into the character array for
which the text begins.
getLength
public abstract int getLength()
- The length of the text
All Packages Class Hierarchy This Package Previous Next Index