Package overit.geocall.basic.ui
Class Container
java.lang.Object
overit.geocall.platform.ui.UINode
overit.geocall.ui.Component
overit.geocall.ui.Control
overit.geocall.basic.ui.Container
- 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:
AbsenceAddress,overit.geocall.basic.geos.ui.AbstractMapPanel,AssociateWorkCyclePermits,AssociateWorkCycleStructurePermits,AssociateWorkOrderPermits,AutomaticMeterReadingDetail,BaseEditTechnicalObjectType,BaseSearchContainer,overit.geocallapp.wfm.schedulazione.odl.ricerca.BaseWOSearch,BasicDashboard,BasicMonitor,BundleDetail,BundlingRuleDetail,overit.geocallapp.wfm.schedulazione.consuntivazione.activity.CActivityOutcome,overit.geocallapp.wfm.schedulazione.consuntivazione.activity.CActivityOutcomeSectionBase,CActivityPlanMonitor,CActivityRelations,overit.geocallapp.wfm.schedulazione.utenti.calendarioturni.CalendarioTurniRisorse,CapacityPlanningCoverageResult,CardContainer,overit.geocallapp.wfm.schedulazione.anagrafiche.ricerchesalvate.CConfRicercheSalvate,CCustomerNotes,CDashboardBasic,CDetailedDebreifingWizardStep,overit.geocallapp.wfm.clienti.dettaglio.CEditImpianto,CEditNotification,CEditProject,CEditProjectActivity,CEditProjectActivityDebriefing,overit.geocallapp.wfm.clienti.dettaglio.CEditUtenza,CEmbeddedPage,CFindNotifications,CGanttTest,ChartsDDManager,Chatbot,CImportExportConfiguration,overit.geocall.basic.mm.authoring.CListTemplate,CNewProject,CNewProjectActivity,ConfigurationParameters,ConfParamsHistory,COperationPlanSlotSelectionWizardStep,CPlanningParameters,CPlanningParametersConfigurationWizardStep,CProjectDiaryHistory,CProjectGeneralConfiguration,CProjectHeaderTO,CProjectProfile,CProjectStructureBaseView,CProjectWoTypes,CreateAddress,CreateWarehouse,CResourceSelection,CResourceSelectionWizardStep,CrewShellAddress,CrewShellComposition,CrewShellConfiguration,CrewShellDetail,overit.geocallapp.wfm.schedulazione.consuntivazione.ricerca.CRicercaConsuntivazione,overit.geocallapp.wfm.schedulazione.odl.CRigheOdlMT,CriticalActivityRuleDetail,CSchedulingParametersConfigurationWizardStep,CSearchCustomer,CSearchProjectDiary,CSearchProjects,CSearchProjectsActivities,CSearchSurvey,CSettings,CTemplate,overit.geocallapp.wfm.schedulazione.odl.CTestataOdl,CViewGenericDebriefingHistory,CViewProject,CViewProjectActivity,DAContainer,DataCollectionConverterOutcomeReasonLogDetail,DataCollectionConverterSheetLogDetail,DataCollectionConverterSheetLogSearch,DataCollectionConverterTableNodeLogDetail,DataCollectionConverterTableNodeLogSearch,DataCollectionConverterTemplateLogDetail,DataCollectionConverterTemplateLogSearch,DataCollectionConverterTemplateStructureLog,DataCollectionConverterTemplateTypeLogDetail,DataCollectionConverterTemplateTypeLogSearch,DataCollectionConverterWorkCycleLogDetail,DataCollectionNodeContainer,DataCollectionNodeDownloadAttachmentContainer,DataCollectionNodeFontPropertiesContainer,DataCollectionNodeMatrixComponentContainer,DataCollectionNodeMatrixContainer,DataCollectionSheetDetail,DataCollectionTemplateDetail,DataCollectionTemplateGantt,DataCollectionTemplateMultipleSelect,DataCollectionTemplateStructureDetail,DataCollectionValuesContainer,DataCollectionWorkCycleOperation,DetailAgendaHistory,DetailSchedulingProposal,DockBar,EditConfigurationParameters,EditDailyPlanOrderConfiguration,EditTooltipConfiguration,EditTooltipConfigurationRules,EditWorkOrderType,EventPanelSimpleTable,ExternalFrameContainer,ForecastActivityDetailGantt,ForecastShiftModelDetail,Form,GanttView,ImportForecast,ImportWarehouseMaterial,JFCPie,JFCSerie,LogDetail,ManageTransferRequest,overit.geocall.basic.geos.ui.MapContainer,MassiveWOGeneration,MaterialAccounting,MaterialDetail,MeterReading,MeterReadingsTemplate,MicroclusterAssociation,MobileCardsConfigurationDetail,MobileCardsRuleDetail,ModelTrainingHistory,MultistageGroupAddWOOperation,MultistageGroupDetail,MultistageGroupGantt,MultistageOperationDetail,NewCriticalActivityRule,NewPermitForSingleIntervention,overit.geocallapp.docshare.docsharing.ui.NewResource,OperationBar,OperationPredictionDetail,overit.geocall.basic.mail.OutputEmail,Panel,overit.geocallapp.wfm.ui.container.PanelSimpleTable,PerformanceTest,PPartsManagementDetails,ResourceForecastDetailAvailability,Rule,SearchBundlingRule,SearchCriticalActivityRules,SearchDataCollectionSheet,SearchDataCollectionTemplate,SearchDataCollectionTemplateWOCreationRule,SearchMultistageGroup,SearchMultistageOperation,overit.geocallapp.wfm.clienti.ricerca.SearchTechnicalObject,SearchTimesheet,SearchWorkOrderFilters,SerializedMaterialSelection,StickyContainer,StructureValidityPeriod,TableView,TaskBar,TaskCategoryEventType,TeamSuggestionDetails,overit.geocallapp.wfm.clienti.dettaglio.relatedentitites.TechnicalObjectSectionBase,TemplateDetail,TestDataExtraction,TestEventStreaming,TestSchedulingLock,TestSimpleBundler,TimesheetDetail,TimesheetHistory,TimesheetProfile,TimesheetTaskCategory,TreeEditor,ViewConfigurationParameters,Viewport,ViewportFooter,ViewportPart,VirtualCollaborationAppointment,WarehouseDetail,WarehouseOperationDetail,Window,WOOperationDataCollectionSheetSection,WOOperationDataCollectionTemplateSection,WorkloadDistributionDetail
The class extends
Control and has the purpose of provide an user interface element
that allows to arrange the position, and manages the behaviors, of its child components.- 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 HashGetterprotected ArrayListstatic final charDefines that there isn't a link between a field and the databasestatic final charDefines that there is a link between a field and the databasestatic final DateConstantDefines the maximum value for the dates definitions (seeDateUtils)static final DateConstantDefines the minimum value for the dates definitions (seeDateUtils)static final DateConstantDefines the maximum value for the hours definitions (seeDateUtils)static final DateConstantDefines the minimum value for the hours definition (seeDateUtils)static final charAction typestatic final charBoolean typestatic final charDate typestatic final charDouble typestatic final charDate Time Zones typestatic final charEuro typestatic final charFile typestatic final charMultiple file typestatic final charInteger typestatic final charLong typestatic final charArray of Longs typestatic final charMap typestatic final charMaximum Date typestatic final charMaximum time tipestatic final charMeasure typestatic final charMinimum Date typestatic final charMinimum time typestatic final charNew Action typestatic final charString typestatic final charArray of Strings typestatic final charSubset typestatic final charSubset range typestatic final charSupport typestatic final charTime Range typeFields 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 TypeMethodDescriptionvoidShows anAlertvoidApplies theRulebooleangetBASIC()Checks the basic state of the ContainerbooleangetBLANK()Checks the blank state of the Containerorg.apache.ecs.ElementReturns the html code of the ContainerbooleangetRO()Checks the readonly state of the ContainerbooleangetROField(String field) Checks if a field of the Container is read onlyvoidonClose()Closes the Container and calls the onClose() method of all the Container's childrensvoidMethod called when is executed theWindowManager.push(overit.geocall.basic.ui.Window, java.lang.Object)of theWindowthat contains the Container.voidCalled by theonOpen(java.lang.Object)method and is used to implements some actions on the Contianer's children.voidMethod called when is executed theWindowManager.pop(java.lang.Object)of the aboveWindow.booleanCalled to manage and apply theRulestatic final StringprepareName(char type, boolean dalink, String name) Returns the composed name used for the component, starting from the name set programmatically, the types of data that the component will manages, and a boolean that defines if there is a link between the field and the databasevoidCalled when the collected values changes, to correctly manage theRulemechanismvoidsetROField(String field, boolean value) Sets the readonly state of a field of the ContainervoidsetValues(HashGetter hg) Sets the collected values on theValuesContainerof the ContainervoidsetValues(HashGetter hg, HashGetter hgDa) Sets the collected values on theValuesContainerof the ContainerMethods 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
-
TYPE_STRING
public static final char TYPE_STRINGString type- See Also:
-
TYPE_STRINGARRAY
public static final char TYPE_STRINGARRAYArray of Strings type- See Also:
-
TYPE_BOOLEAN
public static final char TYPE_BOOLEANBoolean type- See Also:
-
TYPE_LONGARRAY
public static final char TYPE_LONGARRAYArray of Longs type- See Also:
-
TYPE_LONG
public static final char TYPE_LONGLong type- See Also:
-
TYPE_INTEGER
public static final char TYPE_INTEGERInteger type- See Also:
-
TYPE_DOUBLE
public static final char TYPE_DOUBLEDouble type- See Also:
-
TYPE_MEASURE
public static final char TYPE_MEASUREMeasure type- See Also:
-
TYPE_DATE
public static final char TYPE_DATEDate type- See Also:
-
TYPE_DTZ
public static final char TYPE_DTZDate Time Zones type- See Also:
-
TYPE_ACTION
public static final char TYPE_ACTIONAction type- See Also:
-
TYPE_NEWACTION
public static final char TYPE_NEWACTIONNew Action type- See Also:
-
TYPE_SUPPORT
public static final char TYPE_SUPPORTSupport type- See Also:
-
TYPE_MAP
public static final char TYPE_MAPMap type- See Also:
-
TYPE_MAXDATE
public static final char TYPE_MAXDATEMaximum Date type- See Also:
-
TYPE_MINDATE
public static final char TYPE_MINDATEMinimum Date type- See Also:
-
TYPE_MINTIME
public static final char TYPE_MINTIMEMinimum time type- See Also:
-
TYPE_MAXTIME
public static final char TYPE_MAXTIMEMaximum time tipe- See Also:
-
TYPE_SUBSET
public static final char TYPE_SUBSETSubset type- See Also:
-
TYPE_SUBSETRANGE
public static final char TYPE_SUBSETRANGESubset range type- See Also:
-
TYPE_EURO
public static final char TYPE_EUROEuro type- See Also:
-
TYPE_TIMERANGE
public static final char TYPE_TIMERANGETime Range type- See Also:
-
TYPE_FILES
public static final char TYPE_FILESMultiple file type- See Also:
-
TYPE_FILE
public static final char TYPE_FILEFile type- See Also:
-
TIME_MIN
Defines the minimum value for the hours definition (seeDateUtils) -
TIME_MAX
Defines the maximum value for the hours definitions (seeDateUtils) -
DATE_MIN
Defines the minimum value for the dates definitions (seeDateUtils) -
DATE_MAX
Defines the maximum value for the dates definitions (seeDateUtils) -
DALINK_YES
public static final char DALINK_YESDefines that there is a link between a field and the database- See Also:
-
DALINK_NO
public static final char DALINK_NODefines that there isn't a link between a field and the database- See Also:
-
_rofields
-
_rules
-
-
Constructor Details
-
Container
public Container()Main constructor
-
-
Method Details
-
prepareName
Returns the composed name used for the component, starting from the name set programmatically, the types of data that the component will manages, and a boolean that defines if there is a link between the field and the database- Parameters:
type- One of the types defined in this classdalink-trueif there is a link between the field and the database,falseotherwisename- The programmatically set name- Returns:
- The composed name
-
onOpenChildContainer
Called by theonOpen(java.lang.Object)method and is used to implements some actions on the Contianer's children. This base implementation does nothing.- Parameters:
c- The Container to implement the operations on the children
-
getRO
public boolean getRO()Checks the readonly state of the Container -
getBLANK
public boolean getBLANK()Checks the blank state of the Container -
setValues
Sets the collected values on theValuesContainerof the Container- Parameters:
hg- TheHashGetterthat contains the values to set
-
setValues
Sets the collected values on theValuesContainerof the Container- Parameters:
hg- TheHashGetterthat contains the values to sethgDa- Not used
-
getBASIC
public boolean getBASIC()Checks the basic state of the Container -
onOpen
Method 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);- Parameters:
o- Object received from the caller
-
onRestore
Method called when is executed theWindowManager.pop(java.lang.Object)of the aboveWindow. It calls the onRestore(o) method of all the Container's childrens- Parameters:
o- Object received from the caller
-
onClose
public void onClose()Closes the Container and calls the onClose() method of all the Container's childrens -
alert
Shows anAlert- Parameters:
iType- The type of the alert, one ofAlert.NONE,Alert.ERROR,Alert.WARNING,Alert.MESSAGE,Alert.QUESTIONsTitle- The string that appears in the header of the alertsMessag- The message that appears in the alert's body
-
getHtml
Returns the html code of the Container -
setROField
Sets the readonly state of a field of the Container- Parameters:
field- The name of the fieldvalue-trueto make the field read only,falseotherwise
-
getROField
Checks if a field of the Container is read only- Parameters:
field- The name of the field- Returns:
trueif the field is read only,falseotherwise
-
onRule
Called to manage and apply theRule- Parameters:
o- TheHashGetterthat contains the name of the rule to apply- Returns:
true
-
applyRule
Applies theRule- Parameters:
rulename- The name of the Rule to apply
-
rulesNewValues
public void rulesNewValues()Called when the collected values changes, to correctly manage theRulemechanism
-