Class 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

public class Container extends Control
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
  • Field Details

  • Constructor Details

    • Container

      public Container()
      Main constructor
  • Method Details

    • prepareName

      public static final String prepareName(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 database
      Parameters:
      type - One of the types defined in this class
      dalink - true if there is a link between the field and the database, false otherwise
      name - The programmatically set name
      Returns:
      The composed name
    • onOpenChildContainer

      public void onOpenChildContainer(Container c)
      Called by the onOpen(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
      Overrides:
      getRO in class Control
      Returns:
      true if the Container is in readonly state, false otherwise
    • getBLANK

      public boolean getBLANK()
      Checks the blank state of the Container
      Overrides:
      getBLANK in class Control
      Returns:
      true if the Container is in blank state, false otherwise
    • setValues

      public void setValues(HashGetter hg)
      Sets the collected values on the ValuesContainer of the Container
      Parameters:
      hg - The HashGetter that contains the values to set
    • setValues

      public void setValues(HashGetter hg, HashGetter hgDa)
      Sets the collected values on the ValuesContainer of the Container
      Parameters:
      hg - The HashGetter that contains the values to set
      hgDa - Not used
    • getBASIC

      public boolean getBASIC()
      Checks the basic state of the Container
      Overrides:
      getBASIC in class Component
      Returns:
      true if the Container is in basic state, false otherwise
    • onOpen

      public void onOpen(Object o)
      Method called when is executed the WindowManager.push(overit.geocall.basic.ui.Window, java.lang.Object) of the Window that 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: "&params=KEY1,VAL1,KEY2,VAL2" or "&params=KEY1=VAL1,KEY2=VAL2"
      In that case it is possible to retrieve those params via the WindowManager.getRouteParams() method that returns an HashGetter with 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

      public void onRestore(Object o)
      Method called when is executed the WindowManager.pop(java.lang.Object) of the above Window. 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

      public void alert(int iType, String sTitle, String sMessag)
      Shows an Alert
      Parameters:
      iType - The type of the alert, one of Alert.NONE, Alert.ERROR, Alert.WARNING, Alert.MESSAGE, Alert.QUESTION
      sTitle - The string that appears in the header of the alert
      sMessag - The message that appears in the alert's body
    • getHtml

      public org.apache.ecs.Element getHtml(EntitySet es)
      Returns the html code of the Container
      Specified by:
      getHtml in class Component
      Parameters:
      es - The EntitySet to which the element belong
      Returns:
      The html code of the Container
    • setROField

      public void setROField(String field, boolean value)
      Sets the readonly state of a field of the Container
      Parameters:
      field - The name of the field
      value - true to make the field read only, false otherwise
    • getROField

      public boolean getROField(String field)
      Checks if a field of the Container is read only
      Parameters:
      field - The name of the field
      Returns:
      true if the field is read only, false otherwise
    • onRule

      public boolean onRule(Object o)
      Called to manage and apply the Rule
      Parameters:
      o - The HashGetter that contains the name of the rule to apply
      Returns:
      true
    • applyRule

      public void applyRule(String rulename)
      Applies the Rule
      Parameters:
      rulename - The name of the Rule to apply
    • rulesNewValues

      public void rulesNewValues()
      Called when the collected values changes, to correctly manage the Rule mechanism