java.lang.Object
overit.geocall.platform.ui.UINode
overit.geocall.ui.Component
overit.geocall.ui.Control
overit.geocall.basic.ui.Container
overit.geocallapp.wfm.clienti.dettaglio.CEditImpianto
overit.geocallapp.wfm.core.ux.workorderobject.technicalobject.edit.EditTechnicalObject
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:
EditTechnicalObjectTreeNode

public class EditTechnicalObject extends overit.geocallapp.wfm.clienti.dettaglio.CEditImpianto
Main container for the editing and visualization of the technical object
Since:
9.2
See Also:
GCApi:
controller
  • Field Details

  • Constructor Details

    • EditTechnicalObject

      public EditTechnicalObject()
  • Method Details

    • onOpen

      public void onOpen(Object o)
      Description copied from class: Container
      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);
      Overrides:
      onOpen in class overit.geocallapp.wfm.clienti.dettaglio.CEditImpianto
      Parameters:
      o - Object received from the caller
    • onRestore

      public void onRestore(Object o)
      Description copied from class: Container
      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
      Overrides:
      onRestore in class overit.geocallapp.wfm.clienti.dettaglio.CEditImpianto
      Parameters:
      o - Object received from the caller
    • getTechnicalObject

      protected TechnicalObject getTechnicalObject()
      Gets the target technical object
      Returns:
      the target technical object
    • onSave

      public boolean onSave(UIMessage uim)
      UI event handler to start the save technical object process
      If the address normalization is required, but the given address is not normalized, the system will show a dialog window to let the user choose if continue anyway, or abort the action.
      Parameters:
      uim - the UI event data such as the form content and control keys
      Returns:
      true to break the responsibility chain
      See Also:
    • onContinueSaveWithoutNormalization

      public boolean onContinueSaveWithoutNormalization(UIMessage uim)
      UI event handler to continue the save process when the user confirm to proceed without a normalized address
      Parameters:
      uim - the UI event data such as the form content and control keys
      Returns:
      true to break the responsibility chain
      See Also:
    • doSave

      protected void doSave() throws DAValidateException
      Do the actual persistence actions
      Here the system will recognize if the technical object should be created or updated and call the right event to do the action
      Throws:
      DAValidateException - if something went wrong
      See Also:
    • onSelectTechnicalObjectType

      public boolean onSelectTechnicalObjectType(UIMessage uim)
      UI event handler to manage the user selection of a new technical object type
      Parameters:
      uim - the UI event data such as the form content and control keys
      Returns:
      true to break the responsibility chain
    • onSwitch

      public boolean onSwitch(UIMessage uim)
      UI event handler to manage the tab switch. Used to notify the new focused tab.
      Parameters:
      uim - the UI event data such as the form content and control keys
      Returns:
      true to break the responsibility chain
    • notifyTabSwitch

      protected void notifyTabSwitch()
      Notify to the focused TechnicalObjectSection that now is on focus
    • onSelectTechnicalObjectStatus

      public boolean onSelectTechnicalObjectStatus(UIMessage uim)
      UI event handler to manage the new status selection
      If the user is updating an existing technical object, this action will delete all the change made on the feature values. So, an alert is shown to the user to ask for confirmation, if some change is detected on the technical object features
      Parameters:
      uim - the UI event data such as the form content and control keys
      Returns:
      true to break the responsibility chain
      See Also:
    • onSelectTechnicalObjectStatusConfirm

      public boolean onSelectTechnicalObjectStatusConfirm(UIMessage uim)
      UI event handler to manage the new status selection confirmation
      The 'param' key of UIMessage.getParam() will store the user selected state.
      Parameters:
      uim - the UI event data such as the form content and control keys
      Returns:
      true to break the responsibility chain
      See Also:
    • fillTechnicalObject

      protected void fillTechnicalObject()
    • fillFeatureValues

      protected void fillFeatureValues(List<BOTechnicalObjectFeatureValue> featureValues)