public interface StaticTextData
Definition of an interface for describing the properties of a static text element.
A static text is an element that appears like a label, but can be
changed after the GUI was created. For this purpose the
ComponentHandler
of the static text element is used. It maintains a data
object of the type of this interface. The methods defined by this interface
can then be used to query the current properties of the static text or modify
them.
Note: static text elements are created by the
StaticTextTag
tag handler class.
Modifier and Type | Method and Description |
---|---|
TextIconAlignment |
getAlignment()
Returns the alignment of the text and the icon.
|
Object |
getIcon()
Returns the icon of the affected element.
|
String |
getText()
Returns the text of the affected element.
|
void |
setAlignment(TextIconAlignment alignment)
Sets the alignment of the text and the icon.
|
void |
setIcon(Object icon)
Sets the icon of the affected element.
|
void |
setText(String s)
Sets the text of the affected element.
|
String getText()
void setText(String s)
s
- the new textObject getIcon()
void setIcon(Object icon)
IconTag
tag
handler class for instance.icon
- the iconTextIconAlignment getAlignment()
void setAlignment(TextIconAlignment alignment)
alignment
- the new alignment (must not be null)Copyright © 2016 The JGUIraffe Team. All rights reserved.