Package org.vaadin.tltv.gantt.model
Class GanttStep
java.lang.Object
org.vaadin.tltv.gantt.model.GanttStep
Abstract base class describing a step inside
Gantt component.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets background color like '#000000', 'red' or null if not set.Get caption text.Deprecated.Deprecated.Get inclusive end date and time.Application specific optional identifier.doubleGet inclusive start date and time time.getUid()Unique indetifier for the step.inthashCode()booleanbooleanbooleanbooleanvoidsetBackgroundColor(String backgroundColor) Sets background color like '#000000' or 'red'.voidsetCaption(String caption) voidsetCaptionMode(String captionMode) Deprecated.voidsetDescription(String description) Deprecated.Not shown anywhere.voidsetEndDate(LocalDateTime endDate) Set inclusive end date and time.voidsetIdentifier(Long identifier) voidsetMovable(boolean movable) voidsetProgress(double progress) Deprecated.Not shown anywhere.voidsetResizable(boolean resizable) voidsetShowProgress(boolean showProgress) Deprecated.Not shown anywhere.voidsetStartDate(LocalDateTime startDate) Set inclusive start date and time.voidsetStyleName(String styleName) voidsetSubstep(boolean substep) voidSet unique identifier for this step.
-
Constructor Details
-
GanttStep
public GanttStep()
-
-
Method Details
-
getIdentifier
Application specific optional identifier. -
setIdentifier
-
getUid
Unique indetifier for the step. UID is auto-generated for new steps when not set explicitly. -
setUid
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. -
setCaptionMode
Deprecated. -
getStyleName
-
setStyleName
-
getCaption
Get caption text.- Returns:
- Caption text
-
setCaption
-
getDescription
Deprecated.Gets a description text. -
setDescription
Deprecated.Not shown anywhere. UseStepElement.addTooltip(String)instead. Placeholder for backwards compatibility with Vaadin 8 Gantt API.Sets a description text.- Parameters:
description- description text
-
getBackgroundColor
Gets background color like '#000000', 'red' or null if not set. -
setBackgroundColor
Sets background color like '#000000' or 'red'. null clears it. -
getProgress
public double getProgress() -
setProgress
public void setProgress(double progress) Deprecated.Not shown anywhere. UseComponent.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. UseComponent.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
Get inclusive start date and time time. -
setStartDate
Set inclusive start date and time. -
getEndDate
Get inclusive end date and time. -
setEndDate
Set inclusive end date and time. -
isSubstep
public boolean isSubstep() -
setSubstep
public void setSubstep(boolean substep) -
hashCode
public int hashCode() -
equals
-