Class ForecastActivityDetailGantt
java.lang.Object
overit.geocall.platform.ui.UINode
overit.geocall.ui.Component
overit.geocall.ui.Control
overit.geocall.basic.ui.Container
overit.geocallapp.wfm.planning.ux.forecastcapacity.forecast.activity.detail.gantt.ForecastActivityDetailGantt
- 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<BOForecastActivity,,BOForecastActivityDetailGantt> GanttViewTooltipManager
- Direct Known Subclasses:
CapacityPlanningActivityResultGantt,ForecastActivityDetailGanttComparator
public class ForecastActivityDetailGantt
extends Container
implements GanttView.GanttViewSelectionListener<BOForecastActivity,BOForecastActivityDetailGantt>, GanttViewTooltipManager
The Class that defines the forecast activity detail gantt.
- Since:
- 15.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 AddActivityMultipleTimeframesprotected AddForecastActivityprotected AddActivityTimeframeprotected AddGroupingConstraintPanelprotected DateRangePresetsprotected EditSkillPanelprotected BOActivityForecastHeaderprotected ForecastActivityDetailGanttViewprotected ImportOperationActivityPanelprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected Formprotected Panelprotected TableMessageprotected TableMessageprotected TableMessageprotected 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 voidaddConfigurationMenuItem(overit.geocallapp.wfm.ui.Menu menu) protected DateRangePresetsGets the date preset manager.getFilterParams(Map<String, Object> formValues) Returns the map used for generate the filter object.protected BOForecastActivitygetSortMap(List<GanttRow<List<BOForecastActivity>, BOForecastActivityDetailGantt>> ganttRows) getTooltip(String elementId) Returns the tooltip.protected voidprotected voidprotected voidprotected voidReloads all views by: 1.booleanOpen panel to add multiple timeframesbooleanonAddTimeframe(UIMessage uim) This event open the panel to add a single timeframebooleanonApplyPreset(UIMessage uim) Applies the preset date range to a date filter.booleanClears the value of the selected Date field.booleanbooleanThis event delete the activitybooleanUI event handler to delete the selected timeframebooleanUI event handler to delete the selected timeframesbooleanEvent launched when a user clicks on delete activity action.booleanUI event handler to delete a single timeframebooleanUI event handler to delete all the selected timeframesbooleanThis event open the panel to edit the skillsbooleanonEditTimeframe(UIMessage uim) Event launched when a user clicks on edit activity action.booleanonFilterTab(UIMessage uim) UI event handler to show the filter tab.booleanonGanttMenu(UIMessage uim) UI event handler to show the gantt menu.booleanUI event handler to view the gantt change.booleanEvent used to hide the search panel.booleanThis event open the panel to import the activities from the operation centerbooleanThis event open the page to import the activities from the Work OrderbooleanbooleanUI event handler to create aBOForecastActivity.booleanonNextPage(UIMessage uim) Handles the next page navigation event in the gantt view.voidMethod called when is executed theWindowManager.push(overit.geocall.basic.ui.Window, java.lang.Object)of theWindowthat contains the Container.booleanUI event handler to explode the timeframe when user clicks on the overlap iconbooleanonPreviousPage(UIMessage uim) Handles the previous page navigation event in the gantt view.booleanMain event for search action.voidMethod called when is executed theWindowManager.pop(java.lang.Object)of the aboveWindow.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.booleanbooleanonSaveDetail(UIMessage uim) booleanonSaveSkills(UIMessage uim) booleanbooleanClick on the timeframe -> Select the timeframe in the gantt chart and in the tablevoidOn selection changed.booleanUI event handler to show the configuration panel.booleanShows the pop-up menu with the data preset values.booleanEvent used to show the search panel.booleanonTreeItemClick(UIMessage uim) Click on the activity -> Select all the timeframes in the gantt chart and in the tablebooleanUI event handler to show the gantt menu related to an activity.booleanUI event handler to zoom in.booleanUI event handler to zoom out.protected voidprotected voidprotected voidExecutes the search.protected voidsetActivityFilter(Map<String, Object> map) Sets the activity filter by collecting activity IDs from the gantt view root row's children and adding them to the filter map.protected voidprotected voidprotected voidManages the visibility of the filter panel.protected booleanprotected doubleMethods inherited from class overit.geocall.basic.ui.Container
alert, applyRule, getBASIC, getBLANK, getHtml, getRO, getROField, onClose, onOpenChildContainer, 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
-
RN_GANTT_VIEW
- See Also:
-
ZOOM_STEP_FACTOR
protected static final double ZOOM_STEP_FACTOR- See Also:
-
ganttView
-
forecastHeader
-
importPanel
-
addForecastActivityPanel
-
addActivityMultipleTimeframesPanel
-
dateRangePresets
-
configureForecastActivitiesPanel
-
searchFilter
-
editActivitySkillsPanel
-
stvForecastActivityDetailGantt
-
tmNewForecastActivity
-
tmPreviousPage
-
tmNextPage
-
constraintPanel
-
searchPanel
-
searchForm
-
RN_CONFIG_PANEL
- See Also:
-
RN_IMPORT_PANEL
- See Also:
-
RN_ADD_ACTIVITY_PANEL
- See Also:
-
RN_EDIT_ACTIVITY_SKILLS_PANEL
- See Also:
-
RN_ADD_ACTIVITY_MULTIPLE_TIMEFRAMES_PANEL
- See Also:
-
RN_CONF_FORECAST_ACTIVITIES_PANEL
- See Also:
-
RN_NEW_FORECAST_ACTIVITY_TM
- See Also:
-
-
Constructor Details
-
ForecastActivityDetailGantt
public ForecastActivityDetailGantt()
-
-
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); -
openContainer
protected void openContainer() -
initComponents
protected void initComponents() -
setGanttPeriod
protected void setGanttPeriod() -
preparePage
protected void preparePage() -
initForecastActivityDetailTableView
protected void initForecastActivityDetailTableView() -
onGanttMenu
UI event handler to show the gantt menu.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
addConfigurationMenuItem
protected void addConfigurationMenuItem(overit.geocallapp.wfm.ui.Menu menu) -
onTreeItemContextMenu
UI event handler to show the gantt menu related to an activity.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
updateView
protected boolean updateView() -
loadGanttView
protected void loadGanttView() -
setVisibilityOfTableRows
-
onSelectionChanged
On selection changed.- Specified by:
onSelectionChangedin interfaceGanttView.GanttViewSelectionListener<BOForecastActivity,BOForecastActivityDetailGantt> - Parameters:
view- the view
-
getTooltip
Returns the tooltip.- Specified by:
getTooltipin interfaceGanttViewTooltipManager- Parameters:
elementId- the element id- Returns:
- the tooltip
-
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.
-
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.
-
zoomStepWidth
protected double zoomStepWidth() -
onNewForecastActivity
UI event handler to create aBOForecastActivity.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onImportActivities
This event open the panel to import the activities from the operation center- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onImportActivitiesFromWO
This event open the page to import the activities from the Work Order- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onImportOperationActivities
-
onSave
-
onSaveDetail
-
onSaveTimeframes
-
onSaveSkills
-
onAddTimeframe
This event open the panel to add a single timeframe- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onAddMultipleTimeframes
Open panel to add multiple timeframes- Parameters:
uim-- Returns:
- true to break the responsibility chain, false otherwise.
-
onDeleteActivity
Event launched when a user clicks on delete activity action.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onConfirmDeleteActivity
This event delete the activity- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onEditActivitySkills
This event open the panel to edit the skills- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
getForecastActivity
-
onRowBlockClicked
UI event handler for when the row block is clicked.- 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.
-
onDeleteTimeframe
UI event handler to delete a single timeframe- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onEditTimeframe
Event launched when a user clicks on edit activity action.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onDeleteTimeframes
UI event handler to delete all the selected timeframes- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onConfirmDeleteTimeframe
UI event handler to delete the selected timeframe- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onConfirmDeleteTimeframes
UI event handler to delete the selected timeframes- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onTreeItemClick
Click on the activity -> Select all the timeframes in the gantt chart and in the table- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onSelectForecastActivityDetail
Click on the timeframe -> Select the timeframe in the gantt chart and in the table- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onClearSelection
-
getSortMap
protected Map<String,Integer> getSortMap(List<GanttRow<List<BOForecastActivity>, BOForecastActivityDetailGantt>> ganttRows) -
onOverlapIconClick
UI event handler to explode the timeframe when user clicks on the overlap icon- Parameters:
uim- the uim- Returns:
- true, if successful
-
onRestore
Description copied from class:ContainerMethod called when is executed theWindowManager.pop(java.lang.Object)of the aboveWindow. It calls the onRestore(o) method of all the Container's childrens -
onQuery
Main event for search action. It retrieves the search params from the uim and hide the search panel.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
search
Executes the search.- Parameters:
formValues- the form values
-
getFilterParams
Returns the map used for generate the filter object.- Parameters:
formValues- the search form values map- Returns:
- a map used for generate the filter object
-
setActivityFilter
Sets the activity filter by collecting activity IDs from the gantt view root row's children and adding them to the filter map.- Parameters:
map- The filter map to which activity IDs will be added
-
onShowSearchPanel
Event used to show the search panel.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onHideSearchPanel
Event used to hide the search panel.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onFilterTab
UI event handler to show the filter tab.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
showFilterPanel
protected void showFilterPanel()Manages the visibility of the filter panel. -
dateRangesPresets
Gets the date preset manager.- Returns:
- the date range presets
-
onShowDatePresets
Shows the pop-up menu with the data preset values.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onClearDatePresets
Clears the value of the selected Date field.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onApplyPreset
Applies the preset date range to a date filter.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onNextPage
Handles the next page navigation event in the gantt view. Increments the current page number and reloads the views.- Parameters:
uim- the UI message containing event information- Returns:
- true to indicate the event was handled
-
onPreviousPage
Handles the previous page navigation event in the gantt view. Decrements the current page number and reloads the views.- Parameters:
uim- the UI message containing event information- Returns:
- true to indicate the event was handled
-
loadViews
protected void loadViews()Reloads all views by: 1. Getting updated filter parameters from the search form 2. Loading the gantt view with current data 3. Refreshing the gantt view display 4. Updating activity filters 5. Executing the search with current filters
-