Package com.storedobject.ui
Class ELabels
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.HtmlComponent
com.vaadin.flow.component.HtmlContainer
com.vaadin.flow.component.html.Div
com.storedobject.ui.ELabels
- All Implemented Interfaces:
StyledBuilder,StyledBuilder,HTMLGenerator,com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.ClickNotifier<com.vaadin.flow.component.html.Div>,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.HasComponents,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasEnabled,com.vaadin.flow.component.HasOrderedComponents,com.vaadin.flow.component.HasSize,com.vaadin.flow.component.HasStyle,com.vaadin.flow.component.HasText,Serializable
public class ELabels
extends com.vaadin.flow.component.html.Div
implements StyledBuilder, com.vaadin.flow.component.HasText
- 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
Fields 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 TypeMethodDescriptionvoidadd(com.vaadin.flow.component.Component... components) Append an object.Append an object with the given color.Append an object with the given style.appendHTML(String html) voidclear()Clear the content.drawLine()getText()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.protected voidonAttach(com.vaadin.flow.component.AttachEvent attachEvent) voidremove(com.vaadin.flow.component.Component... components) voidvoidvoidSet a value with the given styles.space(int count) update()Update internals if required.Methods inherited from class com.vaadin.flow.component.HtmlComponent
getTitle, setTitleMethods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getChildren, getElement, 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, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.ClickNotifier
addClickListener, addClickShortcut, addDoubleClickListener, addSingleClickListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.HasComponents
add, add, addComponentAsFirst, addComponentAtIndex, removeMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasEnabled
isEnabled, setEnabledMethods inherited from interface com.vaadin.flow.component.HasOrderedComponents
getChildren, getComponentAt, getComponentCount, indexOf, replaceMethods inherited from interface com.vaadin.flow.component.HasSize
getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, 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
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, getHTML, redMessage, setValue
-
Constructor Details
-
ELabels
public ELabels() -
ELabels
-
ELabels
-
-
Method Details
-
onAttach
protected void onAttach(com.vaadin.flow.component.AttachEvent attachEvent) - Overrides:
onAttachin classcom.vaadin.flow.component.Component
-
getApplication
- Specified by:
getApplicationin interfaceStyledBuilder
-
setText
- Specified by:
setTextin interfacecom.vaadin.flow.component.HasText
-
getText
- Specified by:
getTextin interfacecom.vaadin.flow.component.HasText
-
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
-
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.
-
getValue
- Specified by:
getValuein 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.
-
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.
-
append
Description copied from interface:StyledBuilderAppend an object.- Specified by:
appendin interfaceStyledBuilder- Specified by:
appendin interfaceStyledBuilder- Parameters:
anything- Object to append.- 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:
anything- 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 with the given style.- Specified by:
appendin interfaceStyledBuilder- Specified by:
appendin interfaceStyledBuilder- Parameters:
anything- Object to append.style- Styles to be set. (Default implementation ignores this).- Returns:
- Self-reference is returned.
-
appendHTML
- Specified by:
appendHTMLin interfaceStyledBuilder
-
clear
public void clear()- Specified by:
clearin interfaceStyledBuilder
-
clearContent
Description copied from interface:StyledBuilderClear the content.- Specified by:
clearContentin interfaceStyledBuilder- Specified by:
clearContentin interfaceStyledBuilder- Returns:
- Self-reference is returned.
-
space
- Specified by:
spacein interfaceStyledBuilder
-
drawLine
- Specified by:
drawLinein interfaceStyledBuilder
-
add
public void add(com.vaadin.flow.component.Component... components) - Specified by:
addin interfacecom.vaadin.flow.component.HasComponents
-
removeAll
public void removeAll()- Specified by:
removeAllin interfacecom.vaadin.flow.component.HasComponents
-
remove
public void remove(com.vaadin.flow.component.Component... components) - Specified by:
removein interfacecom.vaadin.flow.component.HasComponents
-