Class BaseSearchContainer<T extends DynO>
java.lang.Object
overit.geocall.platform.ui.UINode
overit.geocall.ui.Component
overit.geocall.ui.Control
overit.geocall.basic.ui.Container
overit.geocallapp.utilities.ux.ui.container.BaseSearchContainer<T>
- Type Parameters:
T- the generic type
- 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
- Direct Known Subclasses:
CapacityPlanningScenarioSearch,ExpectedMaterialDetail,ImportOperationActivityFromWo,LogMaster,PermitHistory,PermitsForSingleIntervention,ResourceForecastHeaderSearch,RoughPlanningActivities,RoughPlanningSearch,SearchActivityForecastHeader,SearchAgendaHistory,SearchBundle,SearchCrewShell,SearchCrewShellModel,SearchDailyPlanOrderConfiguration,SearchForecastActivityPriority,SearchForecastGroupingConstraint,SearchForecastShiftModel,SearchImmediateSchedulingActivities,SearchMaterial,SearchSchedulingProposal,SearchStock,SearchTechnicalObjectType,SearchTooltipConfiguration,SearchTransferRequest,SearchWarehouse,SearchWarehouseMaterial,SearchWarehouseOperation,SearchWorkOrderType,SelectMaterial,SelectTransferRequest,SelectWarehouse,StockDetail,StockHistory
Base container for search pages.
- Since:
- 19.0
- See Also:
- GCApi:
- controller
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfaceAnnotation used to define the classes of the pages to open.static @interfaceAnnotation used to define the registryname of the required ux components.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 intprotected DateRangePresetsprotected Objectprotected EventServerTableView<T> protected Formprotected PanelFields 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 voidaddRowMenuItems(Menu menu) Method used to manage the result table row menu items.protected voidaddTableMenuItems(Menu menu) Method for manage the result table menu items.protected DateRangePresetsGets the date preset manager.getFilterParams(Map<String, Object> formValues) Returns the map used for generate the filter object.protected TReturns the selected object.protected booleanDefines if the selected entity is editable or not.booleanonApplyPreset(UIMessage uim) Applies the preset date range to a date filter.booleanClears the value of the selected Date field.booleanEvent launched to edit the main entity.booleanonFilterTab(UIMessage uim) UI event handler to show the filter tab.booleanEvent used to hide the search panel.booleanEvent used to open a new page for new entity creation.voidMethod called when is executed theWindowManager.push(overit.geocall.basic.ui.Window, java.lang.Object)of theWindowthat contains the Container.booleanMain event for search action.booleanEvent for refresh the result table.booleanEvent for refresh the current table row.booleanonRowClick(UIMessage uim) Event launched when a user clicks on a table row.booleanEvent launched when a user clicks on a table row menu button.booleanShows the pop-up menu with the data preset values.booleanEvent used to show the search panel.booleanonTableMenu(UIMessage uim) UI event handler to show the table menu.booleanEvent launched to view the main entity.protected voidrefresh()Refreshes the search table.protected voidRefreshes the current table row.protected voidExecutes the search.protected abstract voidDefines the initial page aspect setting the visibility field in the search form and launches the main search.protected voidManages the visibility of the filter panel.Methods 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
-
searchPanel
-
searchForm
-
resultTable
-
openObject
-
searchFilter
-
currentRow
protected int currentRow -
dateRangePresets
-
-
Constructor Details
-
BaseSearchContainer
public BaseSearchContainer()
-
-
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); -
setupWindow
protected abstract void setupWindow()Defines the initial page aspect setting the visibility field in the search form and launches the main search. -
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
-
onRowClick
Event launched when a user clicks on a table row. It opens a panel with the entity details, evaluating if can be edited or not.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
isEditingEnabled
protected boolean isEditingEnabled()Defines if the selected entity is editable or not.- Returns:
- true, if is editing enabled
-
onRowMenu
Event launched when a user clicks on a table row menu button.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
addRowMenuItems
Method used to manage the result table row menu items.- Parameters:
menu- the menu displayed
-
onEdit
Event launched to edit the main entity.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onView
Event launched to view the main entity.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
getSelectedObject
Returns the selected object.- Returns:
- the selected object
-
onNew
Event used to open a new page for new entity creation.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
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.
-
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.
-
onRefresh
Event for refresh the result table.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onRefreshRow
Event for refresh the current table row. It is usually called on page restore.- Parameters:
o- the object received by the event- Returns:
- true to break the responsibility chain, false otherwise.
-
refresh
protected void refresh()Refreshes the search table. -
refreshCurrentTableRow
protected void refreshCurrentTableRow()Refreshes the current table row. -
onTableMenu
UI event handler to show the table menu.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
addTableMenuItems
Method for manage the result table menu items.- Parameters:
menu- the menu displayed
-
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.
-