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.WhiteSpace
Nested classes/interfaces inherited from interface com.storedobject.common.StyledBuilder
StyledBuilder.Style
-
Field Summary
Fields inherited from interface com.storedobject.vaadin.HTMLGenerator
CHAR_ENTITIES
Fields inherited from interface com.storedobject.common.StyledBuilder
EMPTY_STRINGS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(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) void
clear()
Clear the content.drawLine()
getText()
getValue()
boolean
isEmpty()
Check if the content is empty or not.boolean
Check if the last add was a new line or not.newLine
(boolean force) Adds a new line.protected void
onAttach
(com.vaadin.flow.component.AttachEvent attachEvent) void
remove
(com.vaadin.flow.component.Component... components) void
void
void
Set a value with the given styles.space
(int count) update()
Update internals if required.Methods inherited from class com.vaadin.flow.component.HtmlComponent
getTitle, setTitle
Methods 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, setVisible
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListener
Methods inherited from interface com.vaadin.flow.component.ClickNotifier
addClickListener, addClickShortcut, addDoubleClickListener, addSingleClickListener
Methods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListener
Methods inherited from interface com.vaadin.flow.component.HasComponents
add, add, addComponentAsFirst, addComponentAtIndex, remove
Methods inherited from interface com.vaadin.flow.component.HasElement
getElement
Methods inherited from interface com.vaadin.flow.component.HasEnabled
isEnabled, setEnabled
Methods inherited from interface com.vaadin.flow.component.HasOrderedComponents
getChildren, getComponentAt, getComponentCount, indexOf, replace
Methods 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, setWidthFull
Methods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
Methods inherited from interface com.vaadin.flow.component.HasText
getWhiteSpace, setWhiteSpace
Methods inherited from interface com.storedobject.vaadin.HTMLGenerator
getPrintText
Methods inherited from interface com.storedobject.common.StyledBuilder
append, newLine, setValue
Methods 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:
onAttach
in classcom.vaadin.flow.component.Component
-
getApplication
- Specified by:
getApplication
in interfaceStyledBuilder
-
setText
- Specified by:
setText
in interfacecom.vaadin.flow.component.HasText
-
getText
- Specified by:
getText
in interfacecom.vaadin.flow.component.HasText
-
newLine
Description copied from interface:StyledBuilder
Adds a new line.- Specified by:
newLine
in interfaceStyledBuilder
- Specified by:
newLine
in 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:StyledBuilder
Check if the last add was a new line or not.- Specified by:
isNewLine
in interfaceStyledBuilder
- Returns:
- True/false
-
getInternalStyledBuilder
- Specified by:
getInternalStyledBuilder
in interfaceStyledBuilder
-
setValue
Description copied from interface:StyledBuilder
Set a value with the given styles. (Previous content if any will be cleared).- Specified by:
setValue
in interfaceStyledBuilder
- Specified by:
setValue
in interfaceStyledBuilder
- Parameters:
object
- Object (value) to set.style
- Styles to be set.
-
getValue
- Specified by:
getValue
in interfaceStyledBuilder
-
update
Description copied from interface:StyledBuilder
Update internals if required. (Default implementation does nothing).- Specified by:
update
in interfaceStyledBuilder
- Specified by:
update
in interfaceStyledBuilder
- Returns:
- Self-reference is returned.
-
isEmpty
public boolean isEmpty()Description copied from interface:StyledBuilder
Check if the content is empty or not.- Specified by:
isEmpty
in interfaceStyledBuilder
- Specified by:
isEmpty
in interfaceStyledBuilder
- Returns:
- True or false.
-
append
Description copied from interface:StyledBuilder
Append an object.- Specified by:
append
in interfaceStyledBuilder
- Specified by:
append
in interfaceStyledBuilder
- Parameters:
anything
- Object to append.- Returns:
- Self-reference is returned.
-
append
Description copied from interface:StyledBuilder
Append an object with the given color.- Specified by:
append
in interfaceStyledBuilder
- Specified by:
append
in 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:StyledBuilder
Append an object with the given style.- Specified by:
append
in interfaceStyledBuilder
- Specified by:
append
in interfaceStyledBuilder
- Parameters:
anything
- Object to append.style
- Styles to be set. (Default implementation ignores this).- Returns:
- Self-reference is returned.
-
appendHTML
- Specified by:
appendHTML
in interfaceStyledBuilder
-
clear
public void clear()- Specified by:
clear
in interfaceStyledBuilder
-
clearContent
Description copied from interface:StyledBuilder
Clear the content.- Specified by:
clearContent
in interfaceStyledBuilder
- Specified by:
clearContent
in interfaceStyledBuilder
- Returns:
- Self-reference is returned.
-
space
- Specified by:
space
in interfaceStyledBuilder
-
drawLine
- Specified by:
drawLine
in interfaceStyledBuilder
-
add
public void add(com.vaadin.flow.component.Component... components) - Specified by:
add
in interfacecom.vaadin.flow.component.HasComponents
-
removeAll
public void removeAll()- Specified by:
removeAll
in interfacecom.vaadin.flow.component.HasComponents
-
remove
public void remove(com.vaadin.flow.component.Component... components) - Specified by:
remove
in interfacecom.vaadin.flow.component.HasComponents
-