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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addContextMenu(BiConsumer<com.vaadin.flow.component.contextmenu.ContextMenu,String> builder)
    Adds dynamic context menu.
    com.vaadin.flow.component.shared.Tooltip
    Create and return new Tooltip instance attached to this step.
    com.vaadin.flow.component.shared.Tooltip
    addTooltip(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.Tooltip
    Create and return new Tooltip instance attached to this step with the given text.
     
     
    List<BiConsumer<com.vaadin.flow.component.contextmenu.ContextMenu,String>>
     
     
     
     
    List<com.vaadin.flow.component.shared.Tooltip>
    Return all tooltips added to this step with addTooltip methods.
     
    void
     
    void
    Remove element from the parent and clear all context menu listeners (getContextMenuBuilders()).
    void
    setBackgroundColor(String backgroundColor)
     
    void
    setCaption(String caption)
     
    void
     
    void
     

    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, 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.DetachNotifier

    addDetachListener

    Methods inherited from interface com.vaadin.flow.component.HasComponents

    add, add, add, addComponentAsFirst, addComponentAtIndex, remove, remove, removeAll

    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.HasStyle

    addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
  • Constructor Details

    • StepElement

      public StepElement(GanttStep model)
  • Method Details

    • refresh

      public void refresh()
    • getUid

      public String getUid()
    • getModel

      public GanttStep getModel()
    • setCaption

      public void setCaption(String caption)
    • getCaption

      public String getCaption()
    • setBackgroundColor

      public void setBackgroundColor(String backgroundColor)
    • getBackgroundColor

      public String getBackgroundColor()
    • setStartDateTime

      public void setStartDateTime(LocalDateTime startDateTime)
    • getStartDateTime

      public LocalDateTime getStartDateTime()
    • setEndDateTime

      public void setEndDateTime(LocalDateTime endDateTime)
    • getEndDateTime

      public LocalDateTime getEndDateTime()
    • removeFromParent

      public void removeFromParent()
      Remove element from the parent and clear all context menu listeners (getContextMenuBuilders()).
      Overrides:
      removeFromParent in class com.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 with ContextMenu instance 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

      public com.vaadin.flow.component.shared.Tooltip addTooltip(String text)
      Create and return new Tooltip instance attached to this step with the given text.
    • addTooltip

      public com.vaadin.flow.component.shared.Tooltip addTooltip(com.vaadin.flow.component.shared.Tooltip tooltip)
      Create and return new Tooltip instance attached to this step based on the given Tooltip data.
    • getTooltips

      public List<com.vaadin.flow.component.shared.Tooltip> getTooltips()
      Return all tooltips added to this step with addTooltip methods.