|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.olat.core.gui.components.Component
org.olat.core.gui.components.text.TextComponent
public class TextComponent
Description:
The text component can be used to display a text message. The message can be
either a string or an i18n key that is automatically translated during render
time. Optionally a CSS class can be provided.
By default, the text component renders in a span tag. If you want this span to be changed to a div tag, use the setSpanAsDomReplaceable() method.
Initial Date: 10.11.2009
| Method Summary | |
|---|---|
java.lang.String |
getCssClass()
Get the optional CSS class(es) |
java.lang.String |
getDisplayText()
Get the display text for this component. |
ComponentRenderer |
getHTMLRendererSingleton()
|
void |
setCssClass(java.lang.String cssClass)
Set an optional CSS class(es). |
void |
setI18nKey(java.lang.String i18nKey)
Set a new i18n key. |
void |
setText(java.lang.String text)
Set a new text that will not be translated. |
| Methods inherited from class org.olat.core.gui.components.Component |
|---|
addListener, debuginfoGetListeners, dispatchRequest, getAndClearLatestFiredEvent, getComponentName, getDispatchID, getExtendedDebugInfo, getLatestDispatchedController, getListenerInfo, getParent, getSpanAsDomReplaceable, getTimestamp, getTranslator, isDirty, isDirtyForUser, isDomReplaceable, isEnabled, isVisible, setDirty, setDomReplaceable, setEnabled, setSpanAsDomReplaceable, setVisible, toString, validate |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public ComponentRenderer getHTMLRendererSingleton()
getHTMLRendererSingleton in class ComponentComponent.getHTMLRendererSingleton()public void setI18nKey(java.lang.String i18nKey)
i18nKey - the key or NULL to resetpublic void setText(java.lang.String text)
text - the text or NULL to reset.public java.lang.String getDisplayText()
public void setCssClass(java.lang.String cssClass)
cssClass - public java.lang.String getCssClass()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||