Class GanttStep

java.lang.Object
org.vaadin.tltv.gantt.model.GanttStep
Direct Known Subclasses:
Step, SubStep

public abstract class GanttStep extends Object
Abstract base class describing a step inside Gantt component.
  • Constructor Details

    • GanttStep

      public GanttStep()
  • Method Details

    • getIdentifier

      public Long getIdentifier()
      Application specific optional identifier.
    • setIdentifier

      public void setIdentifier(Long identifier)
    • getUid

      public String getUid()
      Unique indetifier for the step. UID is auto-generated for new steps when not set explicitly.
    • setUid

      public void setUid(String uid)
      Set unique identifier for this step. It's not recommended to set this explicitly as it will be auto-generated when step is added first time into Gantt and UID is not already set.
    • getCaptionMode

      @Deprecated public String getCaptionMode()
      Deprecated.
    • setCaptionMode

      @Deprecated public void setCaptionMode(String captionMode)
      Deprecated.
    • getStyleName

      public String getStyleName()
    • setStyleName

      public void setStyleName(String styleName)
    • getCaption

      public String getCaption()
      Get caption text.
      Returns:
      Caption text
    • setCaption

      public void setCaption(String caption)
    • getDescription

      @Deprecated public String getDescription()
      Deprecated.
      Gets a description text.
    • setDescription

      @Deprecated public void setDescription(String description)
      Deprecated.
      Not shown anywhere. Use StepElement.addTooltip(String) instead. Placeholder for backwards compatibility with Vaadin 8 Gantt API.
      Sets a description text.
      Parameters:
      description - description text
    • getBackgroundColor

      public String getBackgroundColor()
      Gets background color like '#000000', 'red' or null if not set.
    • setBackgroundColor

      public void setBackgroundColor(String backgroundColor)
      Sets background color like '#000000' or 'red'. null clears it.
    • getProgress

      public double getProgress()
    • setProgress

      public void setProgress(double progress)
      Deprecated.
      Not shown anywhere. Use Component.getElement() to add a custom progress bar element and/or CSS to draw a progress bar. Placeholder for backwards compatibility with Vaadin 8 Gantt API.
      Sets progress.
      Parameters:
      progress - Progress number
    • isShowProgress

      public boolean isShowProgress()
    • setShowProgress

      public void setShowProgress(boolean showProgress)
      Deprecated.
      Not shown anywhere. Use Component.getElement() to add a custom progress bar element and/or CSS to draw a progress bar. Placeholder for backwards compatibility with Vaadin 8 Gantt API.
      Sets showProgress boolean flag.
      Parameters:
      showProgress - boolean
    • isResizable

      public boolean isResizable()
    • setResizable

      public void setResizable(boolean resizable)
    • isMovable

      public boolean isMovable()
    • setMovable

      public void setMovable(boolean movable)
    • getStartDate

      public LocalDateTime getStartDate()
      Get inclusive start date and time time.
    • setStartDate

      public void setStartDate(LocalDateTime startDate)
      Set inclusive start date and time.
    • getEndDate

      public LocalDateTime getEndDate()
      Get inclusive end date and time.
    • setEndDate

      public void setEndDate(LocalDateTime endDate)
      Set inclusive end date and time.
    • isSubstep

      public boolean isSubstep()
    • setSubstep

      public void setSubstep(boolean substep)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object