Package org.vaadin.tltv.gantt.element
Class StepElement
java.lang.Object
com.vaadin.flow.component.Component
org.vaadin.tltv.gantt.element.StepElement
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.HasComponents,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasEnabled,com.vaadin.flow.component.HasStyle,Serializable
@Tag("gantt-step-element")
public class StepElement
extends com.vaadin.flow.component.Component
implements com.vaadin.flow.component.HasComponents
StepElement represents gantt-step-element element in the DOM.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddContextMenu(BiConsumer<com.vaadin.flow.component.contextmenu.ContextMenu, String> builder) Adds dynamic context menu.com.vaadin.flow.component.shared.TooltipCreate and return new Tooltip instance attached to this step.com.vaadin.flow.component.shared.TooltipaddTooltip(com.vaadin.flow.component.shared.Tooltip tooltip) Create and return new Tooltip instance attached to this step based on the given Tooltip data.com.vaadin.flow.component.shared.TooltipaddTooltip(String text) Create and return new Tooltip instance attached to this step with the given text.List<BiConsumer<com.vaadin.flow.component.contextmenu.ContextMenu, String>> getModel()List<com.vaadin.flow.component.shared.Tooltip> Return all tooltips added to this step with addTooltip methods.getUid()voidrefresh()voidRemove element from the parent and clear all context menu listeners (getContextMenuBuilders()).voidsetBackgroundColor(String backgroundColor) voidsetCaption(String caption) voidsetEndDateTime(LocalDateTime endDateTime) voidsetStartDateTime(LocalDateTime startDateTime) 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, onAttach, onDetach, onEnabledStateChanged, 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.HasComponents
add, add, add, addComponentAsFirst, addComponentAtIndex, remove, remove, removeAllMethods 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.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Constructor Details
-
StepElement
-
-
Method Details
-
refresh
public void refresh() -
getUid
-
getModel
-
setCaption
-
getCaption
-
setBackgroundColor
-
getBackgroundColor
-
setStartDateTime
-
getStartDateTime
-
setEndDateTime
-
getEndDateTime
-
removeFromParent
public void removeFromParent()Remove element from the parent and clear all context menu listeners (getContextMenuBuilders()).- Overrides:
removeFromParentin classcom.vaadin.flow.component.Component
-
addContextMenu
public void addContextMenu(BiConsumer<com.vaadin.flow.component.contextmenu.ContextMenu, String> builder) Adds dynamic context menu. Builder is responsible rebuilding the context menu items for the given UID.- Parameters:
builder- Context menu builder withContextMenuinstance to build and target step's UID.
-
getContextMenuBuilders
public List<BiConsumer<com.vaadin.flow.component.contextmenu.ContextMenu,String>> getContextMenuBuilders() -
addTooltip
public com.vaadin.flow.component.shared.Tooltip addTooltip()Create and return new Tooltip instance attached to this step. -
addTooltip
Create and return new Tooltip instance attached to this step with the given text. -
getTooltips
Return all tooltips added to this step with addTooltip methods.
-