Class DataCollectionTemplateGanttViewConfiguration
java.lang.Object
overit.geocallapp.utilities.ux.ui.container.gantt.view.GanttViewConfiguration
overit.geocallapp.wfm.core.ux.datacollection.template.gantt.common.DataCollectionTemplateGanttViewConfiguration
- All Implemented Interfaces:
Serializable
Page which allows to view the data collection template gantt configuration.
- Since:
- 12.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringprotected static final doublestatic final Stringstatic final StringFields inherited from class overit.geocallapp.utilities.ux.ui.container.gantt.view.GanttViewConfiguration
_brickType, _headerGroupRows, _indicatorDistance, _indicatorWidth, _minuteWidth, _preferenceName, _rowHeight, _showActualBlocks, _showExpectedBlocks, _showGridCols, _showGridRows, _showIndicators, _showRelations, _showStatusColors, _visibleRangeBegin, _visibleRangeEnd, _widthForDay, _widthForFourMonths, _widthForHour, _widthForMonth, _widthForQuarter, _widthForWeek, _widthForYear, DAY, DEFAULT_MINUTE_WIDTH_FOR_DAY, DEFAULT_MINUTE_WIDTH_FOR_HOUR, DEFAULT_MINUTE_WIDTH_FOR_MONTH, DEFAULT_MINUTE_WIDTH_FOR_QUORTER, DEFAULT_MINUTE_WIDTH_FOR_THIRDS, DEFAULT_MINUTE_WIDTH_FOR_WEEK, DEFAULT_MINUTE_WIDTH_FOR_YEAR, HOUR, MONTH, QUARTERS, THIRDS, WEEK, YEAR -
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new data collection template gantt view configuration. -
Method Summary
Modifier and TypeMethodDescriptionoverit.geocallapp.wfm.ui.stato.StatoUIgetState()Returns the state.Returns the tree size.protected voidrestoreBrickType(overit.geocallapp.wfm.ui.stato.StatoUI state) protected voidrestoreHeaderGroupRows(overit.geocallapp.wfm.ui.stato.StatoUI state) voidsetBrickType(int type) Allow to define the brick type.voidsetHeaderGroupRows(int... rowType) Allow to define a set of brick type to use as extra header to group the main brick type.voidsetMinuteWidth(double minuteWidth) Allow to modify the width of a brick in the GanttViewvoidsetState(overit.geocallapp.wfm.ui.stato.StatoUI state) Sets the state.Methods inherited from class overit.geocallapp.utilities.ux.ui.container.gantt.view.GanttViewConfiguration
alignBrickWidth, getBrickType, getBrickWidthPreferences, getBrickWidthsString, getDefaultMinuteWidth, getHeaderGroupRows, getHeaderRowNumber, getIndicatorDistance, getIndicatorWidth, getMinuteWidth, getRowHeight, getVisibleRangeBegin, getVisibleRangeEnd, isShowActualBlocks, isShowExpectedBlocks, isShowGridCols, isShowGridRows, isShowIndicators, isShowRelations, isShowStatusColors, setIndicatorDistance, setIndicatorWidth, setPreferenceName, setRowHeight, setShowActualBlocks, setShowExpectedBlocks, setShowGridCols, setShowGridRows, setShowIndicators, setShowRelations, setShowStatusColors, setVisibleRangeBegin, setVisibleRangeEnd, updateBrickWidths
-
Field Details
-
MIN_TREE_SIZE
protected static final double MIN_TREE_SIZE- See Also:
-
CATEGORY_VIEW
- See Also:
-
CURRENT_BRICK_TYPE_CONFIGURATION
- See Also:
-
PX_PER_BRICK_TYPE_CONFIGURATION
- See Also:
-
TREE_SIZE_CONFIGURATION
- See Also:
-
HEADER_GROUP_CONFIGURATION
- See Also:
-
-
Constructor Details
-
DataCollectionTemplateGanttViewConfiguration
public DataCollectionTemplateGanttViewConfiguration()Instantiates a new data collection template gantt view configuration.
-
-
Method Details
-
getState
public overit.geocallapp.wfm.ui.stato.StatoUI getState()Returns the state.- Returns:
- the state
-
setState
public void setState(overit.geocallapp.wfm.ui.stato.StatoUI state) Sets the state.- Parameters:
state- the state
-
restoreBrickType
protected void restoreBrickType(overit.geocallapp.wfm.ui.stato.StatoUI state) -
setBrickType
public void setBrickType(int type) Description copied from class:GanttViewConfigurationAllow to define the brick type. Valid values areGanttViewConfiguration.HOURGanttViewConfiguration.DAYGanttViewConfiguration.WEEKGanttViewConfiguration.MONTHGanttViewConfiguration.QUARTERSGanttViewConfiguration.THIRDSGanttViewConfiguration.YEAR- Overrides:
setBrickTypein classGanttViewConfiguration- Parameters:
type- the brick type
-
getTreeSize
Returns the tree size.- Returns:
- the tree size
-
setMinuteWidth
public void setMinuteWidth(double minuteWidth) Description copied from class:GanttViewConfigurationAllow to modify the width of a brick in the GanttView- Overrides:
setMinuteWidthin classGanttViewConfiguration- Parameters:
minuteWidth- the width of a brick of the Gantt expressed in pixel
-
restoreHeaderGroupRows
protected void restoreHeaderGroupRows(overit.geocallapp.wfm.ui.stato.StatoUI state) -
setHeaderGroupRows
public void setHeaderGroupRows(int... rowType) Description copied from class:GanttViewConfigurationAllow to define a set of brick type to use as extra header to group the main brick type. For example: if the main brick type isGanttViewConfiguration.DAYand addGanttViewConfiguration.MONTHthe gantt will present the month header over the day header-----------------------March--------------------------| ----01----|----02----|----03----|----04----|----05----|
- Overrides:
setHeaderGroupRowsin classGanttViewConfiguration- Parameters:
rowType- the header group rows
-