Class UserIndicator<V>
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<com.vaadin.flow.component.html.Div>
io.jmix.flowui.kit.component.main.UserIndicator<V>
- Type Parameters:
V- value type
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasEnabled,com.vaadin.flow.component.HasSize,com.vaadin.flow.component.HasStyle,HasTitle,SupportsFormatter<V>,Serializable
- Direct Known Subclasses:
JmixUserIndicator
public class UserIndicator<V>
extends com.vaadin.flow.component.Composite<com.vaadin.flow.component.html.Div>
implements SupportsFormatter<V>, HasTitle, com.vaadin.flow.component.HasStyle, com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasEnabled
Displays information about the current user. If the user substitution is set up,
a dropdown list of users available for substitution is displayed.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.vaadin.flow.component.html.Spanprotected StringgenerateUserTitle(V user) protected com.vaadin.flow.component.html.DivvoidUpdates user information displayed by the component.voidsetFormatter(Formatter<? super V> formatter) Sets a formatter that is used to produce the strings representation of the value.protected voidupdateUserIndicatorLabel(V user) Methods 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, onAttach, 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.DetachNotifier
addDetachListenerMethods 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.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, setClassName
-
Field Details
-
USER_INDICATOR_CLASS_NAME
- See Also:
-
USER_INDICATOR_LABEL_CLASS_NAME
- See Also:
-
userComponent
protected com.vaadin.flow.component.Component userComponent -
userFormatter
-
-
Constructor Details
-
UserIndicator
public UserIndicator()
-
-
Method Details
-
initContent
protected com.vaadin.flow.component.html.Div initContent()- Overrides:
initContentin classcom.vaadin.flow.component.Composite<com.vaadin.flow.component.html.Div>
-
refreshUser
public void refreshUser()Updates user information displayed by the component. -
updateUserIndicatorLabel
-
createUserIndicator
protected com.vaadin.flow.component.html.Span createUserIndicator() -
generateUserTitle
-
getFormatter
- Specified by:
getFormatterin interfaceSupportsFormatter<V>- Returns:
- a formatter or
nullif not set
-
setFormatter
Description copied from interface:SupportsFormatterSets a formatter that is used to produce the strings representation of the value.- Specified by:
setFormatterin interfaceSupportsFormatter<V>- Parameters:
formatter- a formatter to set ornullto remove
-