Class EventServerTableView<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.geocall.basic.ui.container.TableView
overit.geocall.basic.ui.container.ServerTableView
overit.geocallapp.utilities.ux.ui.container.table.EventServerTableView<T>
- Type Parameters:
T- the generic type
- All Implemented Interfaces:
Serializable,EntityContainer,overit.geocall.clipboard.XClip,overit.geocall.marks.MethodExposer,overit.geocall.marks.NameExposer,AjaxableComponent,Badgeable,DAViewManager,DBViewManager,DraggableDroppable,Hideable,Identified,Tool,overit.geocall.ux.configurability.UIConfigurable,overit.geocall.ux.edm.ModelConfigurable
- Direct Known Subclasses:
CrewShellCompositionServerTableView,CrewShellDraftCompositionServerTableView,ServerTableViewActiveGroupingConstraint,ServerTableViewActivityForecastHeader,ServerTableViewActivityForecastHeaderSelection,ServerTableViewAddress,ServerTableViewAgendaHistory,ServerTableViewAllocateTechnicians,ServerTableViewBundle,ServerTableViewBundleOperationOrdering,ServerTableViewCapacityPlanningActivityDetailResult,ServerTableViewCapacityPlanningResourceDetailResult,ServerTableViewCapacityPlanningScenario,ServerTableViewCopyForecastResourceDetail,ServerTableViewCrewShell,ServerTableViewCrewShellModel,ServerTableViewDailyPlanOrderConfiguration,ServerTableViewExpectedMaterial,ServerTableViewForecastActivityPriority,ServerTableViewForecastGroupingConstraint,ServerTableViewForecastHeader,ServerTableViewForecastShiftModel,ServerTableViewForecastShiftModelDetail,ServerTableViewImmediateSchedulingActivities,ServerTableViewImmediateSchedulingActivitiesHistory,ServerTableViewImportForecast,ServerTableViewImportForecastResources,ServerTableViewImportOperationActivityFromWo,ServerTableViewImportWarehouseMaterial,ServerTableViewLogDetail,ServerTableViewLogMaster,ServerTableViewLogMaster,ServerTableViewMaterial,ServerTableViewMobileErrorLog,ServerTableViewObtainedPermitHistory,ServerTableViewOperationActivity,ServerTableViewPermitSingleIntervention,ServerTableViewRequiredPermitHistory,ServerTableViewResourceForecastHeaderSelection,ServerTableViewRoughPlanning,ServerTableViewRoughPlanningActivities,ServerTableViewSchedulingProposal,ServerTableViewSchedulingUser,ServerTableViewSelectionForecastResource,ServerTableViewSelectionRoughPlanningResources,ServerTableViewSerializedMaterial,ServerTableViewStock,ServerTableViewStockDetail,ServerTableViewStockHistory,ServerTableViewTechnicalObjectType,ServerTableViewTooltipConfiguration,ServerTableViewTooltipConfigurationRules,ServerTableViewTransferRequest,ServerTableViewUser,ServerTableViewWarehouse,ServerTableViewWarehouseMaterial,ServerTableViewWarehouseOperation,ServerTableViewWorkloadDistributionRule,ServerTableViewWorkOrderNote,ServerTableViewWorkOrderOperationType,ServerTableViewWorkOrderType
The Class that defines the event server table view.
- Since:
- 19.0
- See Also:
- GCApi:
- controller
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfaceAnnotation used to define the event launched refresh a single item (row).static @interfaceAnnotation used to define the event launched on search action.static @interfaceAnnotation used to define the DAO for the table.Nested classes/interfaces inherited from class overit.geocall.basic.ui.container.TableView
TableView.SelectionNested classes/interfaces inherited from class overit.geocall.ui.Component
Component.Configurable, Component.ConfigurableAttribute, Component.ConfigurableAttributes, Component.FilterCriteria, Component.Registry -
Field Summary
FieldsFields inherited from class overit.geocall.basic.ui.container.ServerTableView
_da, _dao, _dao0, _extension, _initRows, _lastButton, _maxrows, _orderFields, _params, _queryCommand, _queryExecuted, _queryid, haveMoreFields inherited from class overit.geocall.basic.ui.container.TableView
_activeMode, _advancedLayout, _alRowMessages, _alTableMessages, _alTableOrders, _anchor, _begin, _bkgColorName, _bkgColorSwitch, _changedMetaData, _columns, _columnsOrigin, _contentFrame, _cutname, _cutting, _cuttingRow, _dbv, _draggable, _droppable, _end, _event, _event2, _eventmode, _eventr, _footerLastRow, _footerValues, _forceFirstPage, _from, _fullsize, _height, _hiddenCols, _lastSelected, _minWidth, _msg, _msg2, _msgr, _page, _param, _param2, _paramr, _query, _requestedMode, _rows, _selection, _selectionRow, _selectname, _selectset, _someThingDraggable, _somethingHidden, _titleFormat, _to, _visible, _xclass, configurableRows, editable, extensionTabIndex, hiddenProfileCols, navBarTabIndex, NOT_IDENTIFIED_COLUMN_PLACEHOLDER, PARAM_KEY, TABLE_CONFIGURABILITY_PANEL_PATH, TABLE_FIELDS_OBJECT_NAME, TABLE_OBJ_TEMP_PREFIX, TABLE_WIDGET_ATTRIBUTES_OBJECT, TABLE_WIDGET_STATE_CLASSFields 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, safeInlineServiceFields inherited from interface overit.geocall.ui.AjaxableComponent
FRAME_ID_PREFIX, NOTRANSITION, TRANSITION_BODY_MORPH, TRANSITION_BODY_RESIZE, TRANSITION_BORDER_RESIZE, TRANSITION_DOWN, TRANSITION_UPFields inherited from interface overit.geocall.ui.DAViewManager
PAGE_FIRST, PAGE_LAST, PAGE_NEXT, PAGE_PREVIOUS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DBViewbuildDBView(int maxRows, int skipRows, PoolKit poolKit) Launches the search event in order to update the currentDBView.protected DynOExtractor<T> buildExtractor(Class<?> extractorClass) protected DynOExtractor<T> buildExtractor(EventServerTableView.EventLoad eventAnnotation) protected DynOExtractor<T> buildExtractor(EventServerTableView.EventSearch eventAnnotation) protected voidcompleteRowData(DBView dbv, int rowNumber, T object, PoolKit poolKit) Completes the row data of theDBViewextracted by the search event.protected DBViewfetchRange(int maxrows, int skiprows) Updates the currentDBView.protected String[]Defines the columns that must be added to the table'sDBView.protected LonggetIdValue(T currentBO) Returns the id of the current business object ofEventServerTableViewtype.protected intgetRowObject(int row) protected SearchEvent<? extends DynO, ? extends DynO> protected SearchEvent<? extends DynO, ? extends DynO> getSearchEvent(Page page) protected voidloadCachedData(List<T> object, PoolKit poolKit) Method used to load precomputed or cached data for multiple objects and store it in a map for later use.protected DynOmakeFilter(EventServerTableView.EventSearch eventAnnotation) Initializes the class of the search filter.protected PagemakePage(int maxRows) protected SearchEvent<? extends DynO, ? extends DynO> makeSearchEvent(EventServerTableView.EventSearch eventAnnotation, Page page, DynO searchFilter) Initializes the class of the search event.protected voidonNewDBView(DBView dbv) Updates the table label with the count of the extracted records.voidMethod called when is executed theWindowManager.push(overit.geocall.basic.ui.Window, java.lang.Object)of theWindowthat contains the Container.booleanonOrder(HashGetter hg) Orders the data of the table (seesetMode())voidrefresh()Refreshes the result table.voidSets the map of filters used for launch the search event and launch the table refresh.booleanupdateRow(int row) Updates the required table row.booleanUpdates the required table row.booleanUpdates the required table row.Methods inherited from class overit.geocall.basic.ui.container.ServerTableView
buildLoadPageScript, changed, getDa, getDAO, getDAO0, getExtensionLabel, getExtensionRow, getFrameHtml, getMode, getNavBar, getParams, getQueryId, inMemory, load, load, needsNavBar, onDeSelectCurrPage, onExtends, onFirstPage, onLastPage, onNextPage, onPreviousPage, onSelectCurrPage, pageExtension, setDa, setDA, setDao, setDAO, setDao0, setDAO0, setDBView, setEXTENSION, setLASTBUTTON, setMAXROWS, setMode, setParams, setQUERY, setQueryCommand, setQueryId, setROWS, setupRanges, updateCurrentRowsForPageMethods inherited from class overit.geocall.basic.ui.container.TableView
addPageSizeLookup, buildDisplayScript, buildScrollScript, buildScrollTopScript, buildSetupScript, buildStuckScript, canPaste, changedMetaData, chooseSelectAction, clickOnControlLightMenu, clickOnControlMenu, collectEntities, doCopy, doCut, doPaste, doRemove, drag, dragDrop, dragged, drop, findColumnGroup, freeClip, getCaption, getColumnByLayoutName, getColumnByName, getColumns, getCurrentPage, getCUTNAME, getCutSet, getCutting, getCuttingSize, getDBView, getDefaultChange, getDropDownMenu, getEntities, getEntityValidator, getFieldsProfileVisibilityList, getFieldsUserVisibilityList, getFOOTERLASTROW, getHtml, getNavBarHtml, getOriginalColumns, getPage, getProfileLayoutCustomizations, getProfileStateConf, getProfileStateConfFields, getRo, getRows, getRows, getSelection, getSelectionSize, getSELECTNAME, getSelectSet, getStateConf, getStateConfAttributes, getStateConfFields, getTitle, getTR, getUserComponentAttributesMap, getUserLayoutCustomizations, getXmlColumns, hasTableOrders, invalidateComponentsAttributeMap, isCutSet, isCutted, isSelected, isSelectSet, isVisible, moveColumn, onAutoSelect, onBodyClick, onChangeRows, onColumnMove, onControlLightMenu, onControlMenu, onCopy, onCopy, onCut, onCut, onOpenPage, onPaste, onPaste, onRemove, onRemove, onSaveLightTableCustomization, onSelect, onSelect, onSelectAll, onSelectNone, onSelectTable, onSingleSelect, onSingleSelect, onTableOrdersMenu, onToggle, pasteContent, selectAction, setANCHOR, setBKGCOLORNAME, setBKGCOLORSWITCH, setCONTENTFRAME, setCUTNAME, setDRAGGABLE, setDROPPABLE, setEDITABLE, setENTITY, setEVENT, setEVENT2, setEVENTMODE, setEVENTR, setFOOTERLASTROW, setFooterValues, setFROM, setFULLSIZE, setHEIGHT, setMINWIDTH, setMODE, setMsg, setMSG, setMsg2, setMSG2, setMsgR, setMSGR, setPARAM, setPARAM2, setPARAMR, setRo, setSELECTNAME, setSelectSet, setSELECTSET, setTITLEFORMAT, setTO, setup, setupMetaData, setupSelection, setupTableColumns, setupUserHiddenColumns, setVISIBLE, setXCLASS, stuckColumnsEnabled, updateStateConf, userIsAllowedToEditTablesMethods inherited from class overit.geocall.basic.ui.Container
alert, applyRule, getBASIC, getBLANK, 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, 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, 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, makeBadgedIconMethods inherited from interface overit.geocall.ui.DBViewManager
changedMetaData, getDBView, getRo, setFROM, setRo, setTOMethods inherited from interface overit.geocall.ui.Hideable
getVISIBLEMethods inherited from interface overit.geocall.clipboard.XClip
getWM
-
Field Details
-
BUSINESS_OBJECT
- See Also:
-
startingLabel
-
filters
-
order
-
-
Constructor Details
-
EventServerTableView
public EventServerTableView()
-
-
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); -
onNewDBView
Updates the table label with the count of the extracted records.- Overrides:
onNewDBViewin classServerTableView- Parameters:
dbv- the currentDBView
-
onOrder
Description copied from class:TableViewOrders the data of the table (seesetMode()) -
search
Sets the map of filters used for launch the search event and launch the table refresh.- Parameters:
filters- the map of filters
-
refresh
public void refresh()Refreshes the result table. -
fetchRange
Updates the currentDBView.- Overrides:
fetchRangein classServerTableView- Parameters:
maxrows- the number of max rowsskiprows- the number of skip rows- Returns:
- the current
DBView.
-
buildDBView
protected DBView buildDBView(int maxRows, int skipRows, PoolKit poolKit) throws DAValidateException, DAException Launches the search event in order to update the currentDBView.- Parameters:
maxRows- the number of max rowsskipRows- the number of skip rowspoolKit- thePoolKit- Returns:
- the current
DBView - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
makePage
-
getLastPageIndex
protected int getLastPageIndex() -
getSearchEvent
-
getSearchEvent
-
makeFilter
Initializes the class of the search filter.- Parameters:
eventAnnotation- the event annotation- Returns:
- the
DynOrepresenting the search filter
-
makeSearchEvent
protected SearchEvent<? extends DynO,? extends DynO> makeSearchEvent(EventServerTableView.EventSearch eventAnnotation, Page page, DynO searchFilter) Initializes the class of the search event.- Parameters:
eventAnnotation- the event annotationpage- the pagesearchFilter- the search filter- Returns:
- the search event
-
buildExtractor
-
buildExtractor
-
buildExtractor
-
completeRowData
protected void completeRowData(DBView dbv, int rowNumber, T object, PoolKit poolKit) throws DAValidateException, DAException Completes the row data of theDBViewextracted by the search event.- Parameters:
dbv- the current @link DBView}rowNumber- the row numberobject- the current business object ofEventServerTableViewtypepoolKit- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
loadCachedData
protected void loadCachedData(List<T> object, PoolKit poolKit) throws DAValidateException, DAException Method used to load precomputed or cached data for multiple objects and store it in a map for later use. This method is intended to be overridden by subclasses, which should implement the logic for loading the necessary data for each object.- Parameters:
object- The object for which to load the data.poolKit- thePoolKit- Throws:
DAValidateException- If an error occurs during data validation.DAException- If an error occurs during the query execution or data processing.
-
updateRow
Updates the required table row.- Parameters:
row- the row to update- Returns:
- true if the row is updated, false otherwise
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
updateRow
Updates the required table row.- Parameters:
row- the row to updatepoolKit- thePoolKit- Returns:
- true if the row is updated, false otherwise
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
updateRow
public boolean updateRow(int row, T object, PoolKit poolKit) throws DAValidateException, DAException Updates the required table row.- Parameters:
row- the row to updateobject- the business object ofEventServerTableViewtype of this rowpoolKit- thePoolKit- Returns:
- true if the row is updated, false otherwise
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
getIdValue
Returns the id of the current business object ofEventServerTableViewtype.- Parameters:
currentBO- the current business object ofEventServerTableViewtype.- Returns:
- the current business object id
-
getAdditionalColumns
Defines the columns that must be added to the table'sDBView.- Returns:
- the additional columns
-
getRowObject
-