Package com.storedobject.ui
Class ELabel
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<com.vaadin.flow.component.html.Span>
com.storedobject.vaadin.StyledText
com.storedobject.ui.ELabel
- All Implemented Interfaces:
StyledBuilder,StyledBuilder,HasSize,HTMLGenerator,com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasSize,com.vaadin.flow.component.HasStyle,com.vaadin.flow.component.HasText,Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.vaadin.flow.component.HasText
com.vaadin.flow.component.HasText.WhiteSpaceNested classes/interfaces inherited from interface com.storedobject.common.StyledBuilder
StyledBuilder.Style -
Field Summary
FieldsFields inherited from interface com.storedobject.vaadin.HTMLGenerator
CHAR_ENTITIESFields inherited from interface com.storedobject.common.StyledBuilder
EMPTY_STRINGS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAppend an object.Append an object with the given color.Append an object with the given style.appendHTML(String html) voidclear()Clear the content.drawLine()getHTML()Get the HTML text generated.getValue()booleanisEmpty()Check if the content is empty or not.booleanCheck if the last add was a new line or not.newLine(boolean force) Adds a new line.voidvoidSet a value.voidSet a value with the given styles.space(int count) toString()update()Update internals if required.Methods inherited from class com.storedobject.vaadin.StyledText
getText, initContent, onAttachMethods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElementMethods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasSize
getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidthFullMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassNameMethods inherited from interface com.vaadin.flow.component.HasText
getText, getWhiteSpace, setWhiteSpaceMethods inherited from interface com.storedobject.vaadin.HTMLGenerator
getPrintTextMethods inherited from interface com.storedobject.common.StyledBuilder
append, newLine, setValueMethods inherited from interface com.storedobject.ui.StyledBuilder
appendIcon, appendWithTag, appendWithTag, blackMessage, blueMessage, redMessage
-
Field Details
-
label
-
-
Constructor Details
-
ELabel
public ELabel() -
ELabel
-
ELabel
-
ELabel
-
ELabel
-
-
Method Details
-
newLine
Description copied from interface:StyledBuilderAdds a new line.- Specified by:
newLinein interfaceStyledBuilder- Specified by:
newLinein interfaceStyledBuilder- Parameters:
force- If true, a new line is added anyway. Otherwise, no new line should be added ifStyledBuilder.isNewLine()returns false.- Returns:
- Self-reference is returned.
-
isNewLine
public boolean isNewLine()Description copied from interface:StyledBuilderCheck if the last add was a new line or not.- Specified by:
isNewLinein interfaceStyledBuilder- Returns:
- True/false
-
drawLine
- Specified by:
drawLinein interfaceStyledBuilder
-
append
Description copied from interface:StyledBuilderAppend an object with the given style.- Specified by:
appendin interfaceStyledBuilder- Specified by:
appendin interfaceStyledBuilder- Parameters:
object- Object to append.style- Styles to be set. (Default implementation ignores this).- Returns:
- Self-reference is returned.
-
append
Description copied from interface:StyledBuilderAppend an object with the given color.- Specified by:
appendin interfaceStyledBuilder- Specified by:
appendin interfaceStyledBuilder- Parameters:
object- Object to append.color- Color to be set. (Default implementation ignores this).- Returns:
- Self-reference is returned.
-
append
Description copied from interface:StyledBuilderAppend an object.- Specified by:
appendin interfaceStyledBuilder- Specified by:
appendin interfaceStyledBuilder- Parameters:
object- Object to append.- Returns:
- Self-reference is returned.
-
appendHTML
- Specified by:
appendHTMLin interfaceStyledBuilder
-
space
- Specified by:
spacein interfaceStyledBuilder
-
clearContent
Description copied from interface:StyledBuilderClear the content.- Specified by:
clearContentin interfaceStyledBuilder- Specified by:
clearContentin interfaceStyledBuilder- Returns:
- Self-reference is returned.
-
clear
public void clear()- Specified by:
clearin interfaceStyledBuilder
-
update
Description copied from interface:StyledBuilderUpdate internals if required. (Default implementation does nothing).- Specified by:
updatein interfaceStyledBuilder- Specified by:
updatein interfaceStyledBuilder- Returns:
- Self-reference is returned.
-
setText
- Specified by:
setTextin interfacecom.vaadin.flow.component.HasText- Overrides:
setTextin classStyledText
-
isEmpty
public boolean isEmpty()Description copied from interface:StyledBuilderCheck if the content is empty or not.- Specified by:
isEmptyin interfaceStyledBuilder- Specified by:
isEmptyin interfaceStyledBuilder- Returns:
- True or false.
-
getInternalStyledBuilder
- Specified by:
getInternalStyledBuilderin interfaceStyledBuilder
-
setValue
Description copied from interface:StyledBuilderSet a value with the given styles. (Previous content if any will be cleared).- Specified by:
setValuein interfaceStyledBuilder- Specified by:
setValuein interfaceStyledBuilder- Parameters:
object- Object (value) to set.style- Styles to be set.
-
setValue
Description copied from interface:StyledBuilderSet a value. (Previous content if any will be cleared).- Specified by:
setValuein interfaceStyledBuilder- Specified by:
setValuein interfaceStyledBuilder- Parameters:
object- Object (value) to set.
-
getValue
- Specified by:
getValuein interfaceStyledBuilder
-
getApplication
- Specified by:
getApplicationin interfaceStyledBuilder
-
toString
-
getHTML
Description copied from interface:HTMLGeneratorGet the HTML text generated. (The generated HTML may not contain outer tags. So, span or div tag may be used to bracket it in order to make it a valid HTML text).- Specified by:
getHTMLin interfaceHTMLGenerator- Specified by:
getHTMLin interfaceStyledBuilder- Overrides:
getHTMLin classStyledText- Returns:
- HTML text generated.
-