Package de.esoco.process.ui
Klasse UiTextComponent<C extends UiTextComponent<C>>
java.lang.Object
org.obrel.core.RelatedObject
- Alle implementierten Schnittstellen:
de.esoco.lib.property.TextAttribute
,org.obrel.core.Relatable
public abstract class UiTextComponent<C extends UiTextComponent<C>>
extends UiComponent<String,C>
implements de.esoco.lib.property.TextAttribute
Base class for read-only text components.
-
Konstruktorübersicht
KonstruktorBeschreibungUiTextComponent
(UiContainer<?> parent, String text) Creates a new instance. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibunggetText()
Returns the element's text.Sets the text value of this component so that it will be rendered as HTML.Sets a resource ID for this instance by setting the UI propertyContentProperties.RESOURCE_ID
.void
setFormattedHtml
(String template, String... formatArguments) Sets an HTML text value, formatted with arguments.void
setFormattedText
(String template, String... formatArguments) Sets a text that will be formatted by inserting values into a template, similar toString.format(String, Object...)
but only with strings allowed as format arguments.void
Sets the text value of this component so that it will be rendered as HTML.void
Sets the element's text.Sets the text of this component.Von Klasse geerbte Methoden de.esoco.process.ui.UiComponent
applyProperties, attachTo, cell, cell, getComponentStyleName, getImage, getParent, getRootView, getValueImpl, getView, height, icon, image, label, placeBefore, setValueImpl, size, style, style, styleName, tooltip, toString, update, visibleOn, width
Von Klasse geerbte Methoden de.esoco.process.param.ParameterWrapper
clear, disable, enable, fragment, get, getParam, has, hide, id, initiateDownload, isEnabled, isVisible, remove, set, set, set, setEnabled, setFragment, setParam, setParameterEventHandler, setParameterType, setVisible, show, type
Von Klasse geerbte Methoden org.obrel.core.RelatedObject
deleteRelation, get, getRelation, getRelations, notifyRelationListeners, readRelations, relationsEqual, relationsHashCode, relationsString, set, set, transform, writeRelations
Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden org.obrel.core.Relatable
deleteRelation, deleteRelations, getAll, getOption, getRelationCount, getRelations, hasFlag, hasRelation, hasRelations, init, set, set, set, setOption, streamRelations
-
Konstruktordetails
-
UiTextComponent
Creates a new instance.- Parameter:
parent
- The parent containertext
- The initial component text
-
-
Methodendetails
-
getText
Returns the element's text.- Angegeben von:
getText
in Schnittstellede.esoco.lib.property.TextAttribute
- Gibt zurück:
- The text
-
html
Sets the text value of this component so that it will be rendered as HTML. The value can be queried withgetText()
.- Parameter:
html
- The HTML text- Gibt zurück:
- This instance for fluent invocation
-
resid
Sets a resource ID for this instance by setting the UI propertyContentProperties.RESOURCE_ID
.- Setzt außer Kraft:
resid
in KlasseUiComponent<String,
C extends UiTextComponent<C>> - Parameter:
resourceId
- The resource ID string- Gibt zurück:
- This instance for concatenation
-
setFormattedHtml
Sets an HTML text value, formatted with arguments.- Siehe auch:
-
setFormattedText
Sets a text that will be formatted by inserting values into a template, similar toString.format(String, Object...)
but only with strings allowed as format arguments.- Parameter:
template
- The format templateformatArguments
- The format arguments
-
setHtml
Sets the text value of this component so that it will be rendered as HTML. The value can be queried withgetText()
.- Parameter:
html
- The HTML text
-
setText
Sets the element's text.- Angegeben von:
setText
in Schnittstellede.esoco.lib.property.TextAttribute
- Parameter:
text
- The new text
-
text
Sets the text of this component.- Parameter:
text
- The new text- Gibt zurück:
- This instance for fluent invocation
-