Class DataCollectionTemplateStructureWorkingCopyDetail

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

public class DataCollectionTemplateStructureWorkingCopyDetail extends DataCollectionTemplateStructureDetail
Data collection template structure working copy detail page.
Since:
12.0
See Also:
GCApi:
controller
  • Field Details

  • Constructor Details

    • DataCollectionTemplateStructureWorkingCopyDetail

      public DataCollectionTemplateStructureWorkingCopyDetail()
  • Method Details

    • initComponents

      protected void initComponents()
      Init the components.
      Overrides:
      initComponents in class DataCollectionTemplateStructureDetail
    • onTableMenu

      public boolean onTableMenu(UIMessage uim)
      UI event handler to show the table menu.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onRowMenu

      public boolean onRowMenu(UIMessage uim)
      UI event handler to show the row menu.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onAddNode

      public boolean onAddNode(UIMessage uim)
      UI event handler to add a node.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onAddNodeFromTemplateMenu

      public boolean onAddNodeFromTemplateMenu(UIMessage uim)
      UI event handler to show the menù voices for add a node from a template.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onAddChildNode

      public boolean onAddChildNode(UIMessage uim)
      UI event handler to add a child node.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onAddSiblingNodeBefore

      public boolean onAddSiblingNodeBefore(UIMessage uim)
      UI event handler to add a sibling node before.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onAddSiblingNodeAfter

      public boolean onAddSiblingNodeAfter(UIMessage uim)
      UI event handler to add a sibling node after.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onAddChildNodeFromTemplate

      public boolean onAddChildNodeFromTemplate(UIMessage uim)
      UI event handler to add a child node from template.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onAddSiblingNodeBeforeFromTemplate

      public boolean onAddSiblingNodeBeforeFromTemplate(UIMessage uim)
      UI event handler to add a sibling node before from template.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onAddSiblingNodeAfterFromTemplate

      public boolean onAddSiblingNodeAfterFromTemplate(UIMessage uim)
      UI event handler to add a sibling node after from template.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • showTemplateReleaseSelectionPanel

      protected void showTemplateReleaseSelectionPanel(UXTreeModel<DataCollectionNode,DataCollectionTreeProperties> currentNode, TemplateMergingMode mergingMode)
      Shows a panel for select the template structure release to use in the merge process
      Parameters:
      currentNode - the reference node for the template nesting
      mergingMode - the TemplateMergingMode merging mode of the template
    • onSelectTemplateRelease

      public boolean onSelectTemplateRelease(UIMessage uim)
      UI event called from the template structure release selection panel. The selected template structure release is attached to the current template after the codes of each node has been checked and replaced if are not unique.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • showMergeMessagesPanel

      protected void showMergeMessagesPanel(List<String> messages)
      Shows a panel with all the code substitutions that will be done if the user accept the changes.
      Parameters:
      messages - the list of code substitutions messages
    • buildMessagesDBView

      protected DBView buildMessagesDBView(List<String> messages)
      Builds the DBView with all the substitution messages generated in the merge process
      Parameters:
      messages - the list of code substitutions messages
      Returns:
      the DBView with all the substitution messages
    • onMergeTemplate

      public boolean onMergeTemplate(UIMessage uim)
      UI event that confirm the template merge.
      Parameters:
      uim - the UIMessage
    • mergeTemplate

      protected void mergeTemplate()
      Adds the template structure to the current DCS template.
    • onDeleteNode

      public boolean onDeleteNode(UIMessage uim)
      UI event handler to delete a node.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onConfirmSaveTemplateModel

      public boolean onConfirmSaveTemplateModel(UIMessage uim)
      UI event handler to confirm the saving of the template model.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onSaveTemplateModel

      public boolean onSaveTemplateModel(UIMessage uim)
      UI event handler to save a template model.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • checkPdfModelFields

      protected boolean checkPdfModelFields() throws DAValidateException
      Checks the pdf model fields.
      Returns:
      true, if successful
      Throws:
      DAValidateException - the DA validate exception
    • onCloseWorkingCopy

      public boolean onCloseWorkingCopy(UIMessage uim)
      UI event handler to close a working copy.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onConfirmCloseWorkingCopy

      public boolean onConfirmCloseWorkingCopy(UIMessage uim)
      UI event handler to confirm the closing of the working copy.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onSelectNode

      public boolean onSelectNode(UIMessage uim)
      UI event handler to select a node.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • callNewNodeContainer

      protected void callNewNodeContainer(Consumer<UXTreeModel<DataCollectionNode,DataCollectionTreeProperties>> addTree)
      Call a new node container.
      Parameters:
      addTree - the add tree
    • onApplyNodeChanges

      public boolean onApplyNodeChanges(UIMessage uim)
      UI event handler to apply the changes to the node.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onCancelNodeChanges

      public boolean onCancelNodeChanges(UIMessage uim)
      UI event handler to cancel the changes to the node.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onPasteNode

      public boolean onPasteNode(UIMessage uim)
      UI event handler to paste a node.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onPasteChildNode

      public boolean onPasteChildNode(UIMessage uim)
      UI event handler to paste a child node.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onPasteSiblingNodeBefore

      public boolean onPasteSiblingNodeBefore(UIMessage uim)
      UI event handler to paste a sibling node before.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onPasteSiblingNodeAfter

      public boolean onPasteSiblingNodeAfter(UIMessage uim)
      UI event handler to paste a sibling node after.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onCutNode

      public boolean onCutNode(UIMessage uim)
      UI event handler to cut a node.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onDuplicateNode

      public boolean onDuplicateNode(UIMessage uim)
      UI event handler to duplicate a node.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • duplicateNode

      Duplicates the node.
      Parameters:
      currentNode - the current node
      Returns:
      the UX tree model
    • updatedDescriptionOnDuplicatedNode

      protected void updatedDescriptionOnDuplicatedNode(DataCollectionNode clonedNode)
      Updated description on duplicated node.
      Parameters:
      clonedNode - the cloned node
    • selectNodeByHtmlTreeNode

      protected boolean selectNodeByHtmlTreeNode(UIMessage uim)
      Method handler to select a node in the tree view and update the data panel
      Overrides:
      selectNodeByHtmlTreeNode in class DataCollectionTemplateStructureDetail
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onNewGlobalExpression

      public boolean onNewGlobalExpression(UIMessage uim)
      UI event handler to create a new global expression.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onSaveGlobalExpression

      public boolean onSaveGlobalExpression(UIMessage uim)
      UI event handler called after a global expression has been saved (created or updated). Refreshes the global expressions table to display the changes.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onRowClickGlobalExpression

      public boolean onRowClickGlobalExpression(UIMessage uim)
      UI event handler when clicking a global expression row.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onRowMenuGlobalExpression

      public boolean onRowMenuGlobalExpression(UIMessage uim)
      UI event handler to show the row menu for global expressions.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onDeleteGlobalExpression

      public boolean onDeleteGlobalExpression(UIMessage uim)
      UI event handler to delete a global expression.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.