|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pivot.wtk.Component
org.apache.pivot.wtk.Label
public class Label
Component that displays a string of text.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.pivot.wtk.Component |
---|
Component.ComponentDictionary, Component.DecoratorSequence, Component.StyleDictionary, Component.UserDataDictionary |
Constructor Summary | |
---|---|
Label()
|
|
Label(String text)
|
Method Summary | |
---|---|
ListenerList<LabelListener> |
getLabelListeners()
|
String |
getText()
|
String |
getTextKey()
Returns the label's text key. |
void |
load(Dictionary<String,?> context)
Copies bound values from the bind context to the component. |
void |
setText(String text)
|
void |
setTextKey(String textKey)
Sets the label's text key. |
void |
store(Dictionary<String,?> context)
Copies bound values from the component to the bind context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Label()
public Label(String text)
Method Detail |
---|
public String getText()
public void setText(String text)
public String getTextKey()
public void setTextKey(String textKey)
textKey
- The text key, or null to clear the binding.public void load(Dictionary<String,?> context)
Component
load
in class Component
public void store(Dictionary<String,?> context)
Component
store
in class Component
public ListenerList<LabelListener> getLabelListeners()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |