|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.tirsen.angkor.Component | +--com.tirsen.angkor.widget.TextLabel
Displays text to the user. Has the following functionality:
ValueModel
s.
Format
.
MessageFormat
only the data from the first model is used.
MessageFormat
all values are fetched from all models.
MessageFormat
.
Constructor Summary | |
TextLabel()
|
|
TextLabel(java.lang.String label)
|
|
TextLabel(java.lang.String label,
ValueModel model)
|
|
TextLabel(ValueModel model)
|
Method Summary | |
void |
addModel(ValueModel model)
Adds a model. |
java.text.Format |
getFormat()
|
java.lang.String |
getFormattedText()
Gets the text formatted correctly and with the values fetched from the models. |
void |
render(RenderContext context)
Render this view on the given context if the view is visible. |
void |
setFormat(java.text.Format format)
Sets a custom format. |
void |
setLabel(java.lang.String label)
|
void |
setModel(ValueModel model)
Sets a single model to fetch data from. |
java.lang.String |
toString()
|
Methods inherited from class com.tirsen.angkor.Component |
allocateUniqueId, getAttribute, getContainer, getId, getRenderContext, getVisibleIndex, isDebugTables, isParsing, isVisible, parse, setAttribute, setContainer, setId, setVisible, uniqueId |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TextLabel()
public TextLabel(java.lang.String label)
public TextLabel(ValueModel model)
public TextLabel(java.lang.String label, ValueModel model)
Method Detail |
public void setLabel(java.lang.String label)
public void setModel(ValueModel model)
public void addModel(ValueModel model)
MessageFormat
only the first model is used.
public java.lang.String getFormattedText()
public void setFormat(java.text.Format format)
public java.text.Format getFormat()
public java.lang.String toString()
toString
in class java.lang.Object
public void render(RenderContext context) throws java.io.IOException
View
java.io.IOException
View.setVisible(boolean)
,
View.isVisible()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |