Class GanttBlock<T>
java.lang.Object
overit.geocallapp.utilities.ux.ui.container.gantt.data.GanttBlock<T>
- All Implemented Interfaces:
Serializable,Comparable<GanttBlock<T>>
- Direct Known Subclasses:
ForecastActivityDetailGanttBlock
Class to store the information of a block
in the GanttRow.
The natural order of a GanttBlock is
priority descendant, and begin date ascendant
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<GanttBlockLink<T>> protected static final Stringprotected static final Longstatic final GanttBlock.GanttBlockTypestatic final GanttBlock.GanttBlockType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddIndicator(GanttBlockIndicator indicator) voidaddLink(GanttBlockLink<T> link) intcompareTo(GanttBlock<T> o) Look at first the priority that is intended in descendant order.booleangetBegin()getColor()getEnd()getId()getLinks()doublegetRow()getType()inthashCode()voidremoveIndicator(GanttBlockIndicator indicator) voidsetActualBegin(Date actualBegin) voidsetActualEnd(Date actualEnd) voidvoidvoidsetDescription(String description) voidvoidsetExpectedBegin(Date expectedBegin) voidsetExpectedEnd(Date expectedEnd) voidsetGradient(Boolean gradient) voidvoidsetPriority(Long priority) voidsetProgress(double progress) voidsetRawData(T rawData) voidvoidsetTooltipItems(Map<String, String> tooltipItems) voidtoString()
-
Field Details
-
DEFAULT_PRIORITY
-
DEFAULT_COLOR
- See Also:
-
TYPE_SIMPLE
-
TYPE_MILESTONE
-
_links
-
-
Constructor Details
-
GanttBlock
public GanttBlock()
-
-
Method Details
-
getRow
-
setRow
-
setId
- Parameters:
id- the id of this block
-
getId
- Returns:
- the id of this block
-
setDescription
- Parameters:
description- the description of this block
-
getDescription
- Returns:
- the description of this block
-
setTooltipItems
-
getTooltipItems
- Returns:
- the
Maplabel - value with the basic tool-tip for the row. The label will be managed via Teacher.adjust so, add the '=' to say whether the label must be translation in the user language.
-
setColor
- Parameters:
color- the block color
-
getColor
- Returns:
- the block color
-
setBegin
- Parameters:
begin- the begin date of this block
-
getBegin
- Returns:
- the begin date of this block
-
setEnd
- Parameters:
end- the end date of this block
-
getEnd
- Returns:
- the end date of this block
-
getExpectedBegin
-
setExpectedBegin
-
getExpectedEnd
-
setExpectedEnd
-
getActualBegin
-
setActualBegin
-
getActualEnd
-
setActualEnd
-
setPriority
- Parameters:
priority- the priority of this block, used to determine a render order
-
getPriority
- Returns:
- the priority the priority of this block, used to determine a render order
-
setRawData
- Parameters:
rawData- the raw data that holds this block
-
getRawData
- Returns:
- the raw data that holds this block
-
addLink
-
getType
- Returns:
- the
GanttBlock.GanttBlockTypeof this block
-
setType
- Parameters:
type- theGanttBlock.GanttBlockTypeof this block
-
getLinks
-
getProgress
public double getProgress()- Returns:
- the percentage value of progress of this block
-
setProgress
public void setProgress(double progress) - Parameters:
progress- the percentage value of progress of this block
-
getIndicators
- Returns:
- the indicators configured for this block
-
addIndicator
- Parameters:
indicator- the indicator to add
-
removeIndicator
- Parameters:
indicator- the indicator to remove
-
getGradient
-
setGradient
-
compareTo
Look at first the priority that is intended in descendant order. So priority 5 comes before priority 1. whether the two blocks have the same priority, the comparison is done using the begin date.- Specified by:
compareToin interfaceComparable<T>
-
equals
-
hashCode
public int hashCode() -
toString
-