Class DataCollectionTemplateGantt
java.lang.Object
overit.geocall.platform.ui.UINode
overit.geocall.ui.Component
overit.geocall.ui.Control
overit.geocall.basic.ui.Container
overit.geocallapp.wfm.core.ux.datacollection.template.gantt.DataCollectionTemplateGantt
- All Implemented Interfaces:
Serializable,overit.geocall.marks.MethodExposer,overit.geocall.marks.NameExposer,Badgeable,Identified,Tool,overit.geocall.ux.configurability.UIConfigurable,overit.geocall.ux.edm.ModelConfigurable,GanttView.GanttViewSelectionListener<BODataCollectionTemplateStructure,,BODataCollectionTemplateStructureRelease> GanttViewTooltipManager
public class DataCollectionTemplateGantt
extends Container
implements GanttView.GanttViewSelectionListener<BODataCollectionTemplateStructure,BODataCollectionTemplateStructureRelease>, GanttViewTooltipManager
The Class that defines the data collection template gantt.
- Since:
- 12.0
- See Also:
- GCApi:
- controller
-
Nested Class Summary
Nested classes/interfaces inherited from class overit.geocall.ui.Component
Component.Configurable, Component.ConfigurableAttribute, Component.ConfigurableAttributes, Component.FilterCriteria, Component.Registry -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected GanttViewConfigurationprotected DataCollectionTemplateGanttViewprotected static final Stringprotected static final Stringprotected BODataCollectionTemplateHeaderstatic final Stringprotected static final doubleFields inherited from class overit.geocall.basic.ui.Container
_rofields, _rules, DALINK_NO, DALINK_YES, DATE_MAX, DATE_MIN, TIME_MAX, TIME_MIN, TYPE_ACTION, TYPE_BOOLEAN, TYPE_DATE, TYPE_DOUBLE, TYPE_DTZ, TYPE_EURO, TYPE_FILE, TYPE_FILES, TYPE_INTEGER, TYPE_LONG, TYPE_LONGARRAY, TYPE_MAP, TYPE_MAXDATE, TYPE_MAXTIME, TYPE_MEASURE, TYPE_MINDATE, TYPE_MINTIME, TYPE_NEWACTION, TYPE_STRING, TYPE_STRINGARRAY, TYPE_SUBSET, TYPE_SUBSETRANGE, TYPE_SUPPORT, TYPE_TIMERANGEFields inherited from class overit.geocall.ui.Control
_blank, _cleaner, _dblink, _enabled, _ro, _title, altEventIconsList, altIcon, ariaDescription, ariaLabel, badge, badgeformat, FILTER_PREFIXES, LABEL_ATTRIBUTE, LABEL_IN_LINE_ATTRIBUTE, STATE_BLANK, STATE_NORMAL, STATE_RO, STATE_ROBLANKFields inherited from class overit.geocall.ui.Component
_basic, _childrenContainers, _currentId, _gridalign, _gridcols, _gridrows, _gridvalign, _iconElement, _id, _keylabel, _label, _layoutName, _name, _parentContainer, _registryName, _shortcut, _tabindex, _transformations, _valuesContainer, aliasField, BR, configHidden, configuredLabel, configuredLabelInLine, defaultHidden, ELEMENT_BR, ELEMENT_NULL, entityContainer, entityName, extendedField, fullHeight, important, labelInLine, layoutLabel, PIXEL_IMG, safeInlineService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected LonggetTooltip(String elementId) Returns the tooltip.protected voidprotected voidprotected DataCollectionTemplateloadDataCollectionTemplate(Long templateStructure) protected voidbooleanonEditRelease(UIMessage uim) UI event handler to open the edit page of the selected template.booleanonGanttMenu(UIMessage uim) UI event handler to show the gantt menu.booleanUI event handler to view the gantt change.booleanUI event handler to edit the grid cols visibility.booleanUI event handler to edit the grid rows visibility.voidMethod called when is executed theWindowManager.push(overit.geocall.basic.ui.Window, java.lang.Object)of theWindowthat contains the Container.booleanUI event handler for when the row block is clicked.booleanUI event handler to manage the right click on a block and it shows the context menu.booleanUI event handler to show the row menu.booleanUI event handler to save the data collection template structure release and refresh the data in the gantt page.voidonSelectionChanged(GanttView<BODataCollectionTemplateStructure, BODataCollectionTemplateStructureRelease> view) On selection changed.booleanUI event handler to select a template structure release.booleanUI event handler to show the configuration panel.booleanonShowLegend(UIMessage uim) UI event handler to show the legend.booleanonViewStructure(UIMessage uim) UI event handler to view a structure.booleanUI event handler to zoom in.booleanUI event handler to zoom out.protected voidvoidShow the days.protected voidprotected doubleMethods inherited from class overit.geocall.basic.ui.Container
alert, applyRule, getBASIC, getBLANK, getHtml, getRO, getROField, onClose, onOpenChildContainer, onRestore, onRule, prepareName, rulesNewValues, setROField, setValues, setValuesMethods inherited from class overit.geocall.ui.Control
avoidNull, clean, getBadgeFormat, getBadgeValue, getCleaner, getConfigurableProperties, getDAValues, getDBLINK, getKEYLABEL, getLABEL, getState, getTITLE, getValues, getWM, isEnabled, isEnabledBasedOnFunction, isFunctionEnabled, isImportant, isRoBasedOnFunction, nameWithNoFilterPrefix, setALTEVENTICON, setALTICON, setARIADESCRIPTION, setARIALABEL, setBADGEFORMAT, setBADGEVALUE, setBLANK, setCLEANER, setConfiguredProperty, setDBLINK, setENABLED, setFUNCTION, setModelProperties, setRO, setTitle, setTITLEMethods inherited from class overit.geocall.ui.Component
adapt, ajaxQuery, appendAttribute, buildDisplayScript, buildSetupScript, calcKeyLabel, calcLabel, calcShortcut, canBeConfigured, changed, clearConfiguredProperties, componentIterator, componentSize, connect, containerIterator, createAjaxFrame, deprecate, fillSetupScript, generateFlexableFullHeightContainer, generateId, getBoolean, getBoolean, getChildrenComponents, getChildrenContainers, getDefaultLabel, getDefaultLayoutLabel, getEntityContainer, getEntityName, getFullHeight, getGridAlign, getGridCols, getGridRows, getGridVAlign, getHtmlLabel, getHtmlLabel, getIcon, getId, getIdentity, getint, getLayoutLabel, getLayoutName, getNAME, getParentComponent, getParentContainer, getPublishedChildrenList, getRegistryName, getSHORTCUT, getTabIndex, getTeacher, getValuesContainer, getWindow, initChilds, isActivable, isActive, isAliasField, isConfigHidden, isDefaultHidden, isExtendedField, isLabelInLine, onInit, setActivable, setActive, setAliasField, setBASIC, setConfigHidden, setDEFAULTHIDDEN, setEntityName, setExtendedField, setFULLHEIGHT, setGRIDALIGN, setGRIDCOLS, setGRIDROWS, setGRIDVALIGN, setICON, setIdentity, setIMPORTANT, setLabel, setLABEL, setLABELINLINE, setLAYOUTLABEL, setLAYOUTNAME, setNAME, setREGISTRYNAME, setTooltip, setup, setValuesContainer, stringForJs, tabIndexerMethods inherited from class overit.geocall.platform.ui.UINode
addChild, addChildText, getChildren, getNodeId, getParent, getRoot, getSchema, setNodeId, setParent, setSchemaMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface overit.geocall.ui.Badgeable
badgeFormat, makeBadgedIcon
-
Field Details
-
templateHeader
-
XML_PATH
- See Also:
-
RN_GANTT_VIEW
- See Also:
-
RN_CONFIG_PANEL
- See Also:
-
ZOOM_STEP_FACTOR
protected static final double ZOOM_STEP_FACTOR- See Also:
-
ganttView
-
stvDataCollectionTemplateStructure
-
config
-
panelEdit
-
-
Constructor Details
-
DataCollectionTemplateGantt
public DataCollectionTemplateGantt()
-
-
Method Details
-
onOpen
Description copied from class:ContainerMethod called when is executed theWindowManager.push(overit.geocall.basic.ui.Window, java.lang.Object)of theWindowthat contains the Container. It calls the onOpen(o) method of all the Container's childrens.
If a page is opened through the process of a route, it is possible that the route was called with params to pass to the page.
The route params could be passed specifying them like query string's param on the url, using commas or the '=' character, to separate the keys and the values. Valid syntaxs are: "¶ms=KEY1,VAL1,KEY2,VAL2" or "¶ms=KEY1=VAL1,KEY2=VAL2"
In that case it is possible to retrieve those params via theWindowManager.getRouteParams()method that returns anHashGetterwith the params passed as parameters.
For example it's possible to retrieve and use the params in this way:HashGetter hg = getWM().getRouteParams();
String val1 = hg.getString("key1",null);
String val2 = hg.getString("key2",null); -
onSelectionChanged
public void onSelectionChanged(GanttView<BODataCollectionTemplateStructure, BODataCollectionTemplateStructureRelease> view) On selection changed.- Specified by:
onSelectionChangedin interfaceGanttView.GanttViewSelectionListener<BODataCollectionTemplateStructure,BODataCollectionTemplateStructureRelease> - Parameters:
view- the view
-
getTooltip
Returns the tooltip.- Specified by:
getTooltipin interfaceGanttViewTooltipManager- Parameters:
elementId- the element id- Returns:
- the tooltip
-
preparePage
protected void preparePage() -
initComponents
protected void initComponents() -
initTemplateStructureTableView
protected void initTemplateStructureTableView() -
loadGanttView
protected void loadGanttView() -
onGanttMenu
UI event handler to show the gantt menu.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onShowConfigurationPanel
UI event handler to show the configuration panel.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onGanttViewChange
UI event handler to view the gantt change.- Parameters:
v- theVoid- Returns:
- true to break the responsibility chain, false otherwise.
-
onRowMenu
UI event handler to show the row menu.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onZoomIn
UI event handler to zoom in.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onZoomOut
UI event handler to zoom out.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onViewStructure
UI event handler to view a structure.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
loadDataCollectionTemplate
protected DataCollectionTemplate loadDataCollectionTemplate(Long templateStructure) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
showDays
Show the days.- Parameters:
uim- theUIMessage
-
onGridColsVisibility
UI event handler to edit the grid cols visibility.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onGridRowsVisibility
UI event handler to edit the grid rows visibility.- Parameters:
uim- the uim- Returns:
- true, if successful
-
updateView
protected void updateView() -
zoomStepWidth
protected double zoomStepWidth() -
onShowLegend
UI event handler to show the legend.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onRowBlockClicked
UI event handler for when the row block is clicked.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onSelectTemplateStructureRelease
UI event handler to select a template structure release.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onRowBlockContextMenu
UI event handler to manage the right click on a block and it shows the context menu.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
getStructureIdFromUIMessage
-
onEditRelease
UI event handler to open the edit page of the selected template.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onSaveDataCollectionTemplateStructureRelease
UI event handler to save the data collection template structure release and refresh the data in the gantt page.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-