|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.visuals.TextElement
public class TextElement
TextElement is a sub-class of com.sas.collection.PropertyBag that holds
properties about an element of text. Not all of the properties have to be set
for every TextElement instance. The properties are used to display the text
in different colors, fonts, or underlined states. The actionCommand allows
for a command to be sent for a specific TextElement. The TextElement is only
used in the StyledLabelView right now.
StyledLabelView
,
Serialized FormField Summary | |
---|---|
static java.lang.String |
ACTION_COMMAND
|
static java.lang.String |
COLOR
|
static java.lang.String |
DISPLAY_LOCATION
|
static java.lang.String |
DISPLAY_SIZE
|
static java.lang.String |
FONT
|
static java.lang.String |
PARENT_ELEMENT
|
static java.lang.String |
SUB_ELEMENTS
|
static java.lang.String |
TEXT
|
static java.lang.String |
UNDERLINED
|
Constructor Summary | |
---|---|
TextElement()
|
Method Summary | |
---|---|
java.lang.String |
getActionCommand()
Get the value of the actionCommand property. |
java.awt.Color |
getColor()
Get the value of the color property. |
java.awt.Point |
getDisplayLocation()
Get the value of the displayLocation property. |
java.awt.Dimension |
getDisplaySize()
Get the value of the displaySize property. |
java.awt.Font |
getFont()
Get the value of the font property. |
TextElement |
getParentElement()
Get the value of the parentElement property. |
com.sas.collection.OrderedCollectionInterface |
getSubElements()
Get the value of the subElements property. |
java.lang.String |
getText()
Get the value of the text property. |
boolean |
isActionCommandSet()
Checks to see if the actionCommand property has been set. |
boolean |
isColorSet()
Checks to see if the color property has been set. |
boolean |
isDisplayLocationSet()
Checks to see if the displayLocation property has been set. |
boolean |
isDisplaySizeSet()
Checks to see if the displaySize property has been set. |
boolean |
isFontSet()
Checks to see if the font property has been set. |
boolean |
isParentElementSet()
Checks to see if the parentElement property has been set. |
boolean |
isSubElementsSet()
Checks to see if the subElements property has been set. |
boolean |
isTextSet()
Checks to see if the text property has been set. |
boolean |
isUnderlined()
Get the value of the underlined property. |
boolean |
isUnderlinedSet()
Checks to see if the underlined property has been set. |
void |
setActionCommand(java.lang.String actionCommand)
Sets the value of the actionCommand property. |
void |
setColor(java.awt.Color color)
Set the value of the color property. |
void |
setDisplayLocation(java.awt.Point displayLocation)
Set the value of the displayLocation property. |
void |
setDisplaySize(java.awt.Dimension displaySize)
Set the value of the displaySize property. |
void |
setFont(java.awt.Font font)
Sets the value of the font property. |
void |
setParentElement(TextElement parent)
Set the value of the parentElement property. |
void |
setSubElements(com.sas.collection.OrderedCollectionInterface subElements)
Set the value of the subElements property. |
void |
setText(java.lang.String text)
Set the value of the text property. |
void |
setUnderlined(boolean underlined)
Set the value of the underlined property. |
void |
unsetActionCommand()
Clears the actionCommand property. |
void |
unsetColor()
Clears the color property. |
void |
unsetDisplayLocation()
Clears the displayLocation property. |
void |
unsetDisplaySize()
Clears the displaySize property. |
void |
unsetFont()
Clears the font property. |
void |
unsetParentElement()
Clears the parentElement property. |
void |
unsetSubElements()
Clears the subElements property. |
void |
unsetText()
Clears the text property. |
void |
unsetUnderlined()
Clears the underlined property. |
Field Detail |
---|
public static final java.lang.String TEXT
public static final java.lang.String PARENT_ELEMENT
public static final java.lang.String SUB_ELEMENTS
public static final java.lang.String DISPLAY_SIZE
public static final java.lang.String DISPLAY_LOCATION
public static final java.lang.String FONT
public static final java.lang.String COLOR
public static final java.lang.String UNDERLINED
public static final java.lang.String ACTION_COMMAND
Constructor Detail |
---|
public TextElement()
Method Detail |
---|
public java.lang.String getText()
public void setText(java.lang.String text)
newValue
- The new value to assign the text property.public boolean isTextSet()
public void unsetText()
public TextElement getParentElement()
public void setParentElement(TextElement parent)
newValue
- The new value to assign the parentElement property.public boolean isParentElementSet()
public void unsetParentElement()
public com.sas.collection.OrderedCollectionInterface getSubElements()
public void setSubElements(com.sas.collection.OrderedCollectionInterface subElements)
newValue
- The new value to assign the subElements property.public boolean isSubElementsSet()
public void unsetSubElements()
public java.awt.Dimension getDisplaySize()
public void setDisplaySize(java.awt.Dimension displaySize)
newValue
- The new value to assign the displaySize property.public boolean isDisplaySizeSet()
public void unsetDisplaySize()
public java.awt.Point getDisplayLocation()
public void setDisplayLocation(java.awt.Point displayLocation)
newValue
- The new value to assign the displayLocation property.public boolean isDisplayLocationSet()
public void unsetDisplayLocation()
public java.awt.Font getFont()
public void setFont(java.awt.Font font)
newValue
- The new value to assign the font property.public boolean isFontSet()
public void unsetFont()
public java.awt.Color getColor()
public void setColor(java.awt.Color color)
newValue
- The new value to assign the color property.public boolean isColorSet()
public void unsetColor()
public boolean isUnderlined()
public void setUnderlined(boolean underlined)
newValue
- The new value to assign the underlined property.public boolean isUnderlinedSet()
public void unsetUnderlined()
public java.lang.String getActionCommand()
public void setActionCommand(java.lang.String actionCommand)
newValue
- The new value to assign the actionCommand property.public boolean isActionCommandSet()
public void unsetActionCommand()
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |