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.


Variable Index

 o ContentType
A possible value for getType.
 o EndTagType
A possible value for getType.
 o JoinNextDirection
A possible value for getDirection.
 o JoinPreviousDirection
A possible value for getDirection.
 o OriginateDirection
A possible value for getDirection.
 o StartTagType
A possible value for getType.

Method Index

 o getArray()
The associated text, if there is any.
 o getAttributes()
The attributes to associate with the element.
 o getDirection()
The way insert should be done.
 o getLength()
The length of the text
 o getOffset()
The offset into the character array for which the text begins.
 o getType()
The type of specification.

Variables

 o 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.

 o 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.

 o ContentType
 public static final short ContentType
A possible value for getType. This specifies that this record type represents content.

 o 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.

 o 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.

 o 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.

Methods

 o getType
 public abstract short getType()
The type of specification. This can represent markup or content.

 o getDirection
 public abstract short getDirection()
The way insert should be done. The default value for this should be OriginateDirection.

 o 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.

 o getArray
 public abstract char[] getArray()
The associated text, if there is any.

 o getOffset
 public abstract int getOffset()
The offset into the character array for which the text begins.

 o getLength
 public abstract int getLength()
The length of the text


All Packages  Class Hierarchy  This Package  Previous  Next  Index