Class DataCollectionTemplateStructureWorkingCopyDetail
java.lang.Object
overit.geocall.platform.ui.UINode
overit.geocall.ui.Component
overit.geocall.ui.Control
overit.geocall.basic.ui.Container
overit.geocallapp.wfm.core.ux.datacollection.template.structure.DataCollectionTemplateStructureDetail
overit.geocallapp.wfm.core.ux.datacollection.template.structure.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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classThe Class that defines the cut and paste data.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 overit.geocallapp.wfm.ui.control.DataCollectionColumnTreeModelprotected DataCollectionNodeContainerprotected PanelCheckResultHelperprotected PanelDataCollectionGlobalExpressionprotected DataCollectionTemplateStructureMergerFields inherited from class overit.geocallapp.wfm.core.ux.datacollection.template.structure.DataCollectionTemplateStructureDetail
LOG, template, templateStructureRecap, tvDataCollectionTemplateGlobalExpressions, tvDataCollectionTemplateStructureModel, uxRootNodeFields 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, safeInlineService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DBViewbuildMessagesDBView(List<String> messages) Builds theDBViewwith all the substitution messages generated in the merge processprotected voidcallNewNodeContainer(Consumer<UXTreeModel<DataCollectionNode, DataCollectionTreeProperties>> addTree) Call a new node container.protected booleanChecks the pdf model fields.Duplicates the node.protected voidInit the components.protected voidAdds the template structure to the current DCS template.booleanonAddChildNode(UIMessage uim) UI event handler to add a child node.booleanUI event handler to add a child node from template.booleanUI event handler to add a node.booleanUI event handler to show the menù voices for add a node from a template.booleanUI event handler to add a sibling node after.booleanUI event handler to add a sibling node after from template.booleanUI event handler to add a sibling node before.booleanUI event handler to add a sibling node before from template.booleanUI event handler to apply the changes to the node.booleanUI event handler to cancel the changes to the node.booleanUI event handler to close a working copy.booleanUI event handler to confirm the closing of the working copy.booleanUI event handler to confirm the saving of the template model.booleanUI event handler to cut a node.booleanUI event handler to delete a global expression.booleanonDeleteNode(UIMessage uim) UI event handler to delete a node.booleanonDuplicateNode(UIMessage uim) UI event handler to duplicate a node.booleanonMergeTemplate(UIMessage uim) UI event that confirm the template merge.booleanUI event handler to create a new global expression.booleanUI event handler to paste a child node.booleanonPasteNode(UIMessage uim) UI event handler to paste a node.booleanUI event handler to paste a sibling node after.booleanUI event handler to paste a sibling node before.booleanUI event handler when clicking a global expression row.booleanUI event handler to show the row menu.booleanUI event handler to show the row menu for global expressions.booleanUI event handler called after a global expression has been saved (created or updated).booleanUI event handler to save a template model.booleanonSelectNode(UIMessage uim) UI event handler to select a node.booleanUI event called from the template structure release selection panel.booleanonTableMenu(UIMessage uim) UI event handler to show the table menu.protected booleanMethod handler to select a node in the tree view and update the data panelprotected voidshowMergeMessagesPanel(List<String> messages) Shows a panel with all the code substitutions that will be done if the user accept the changes.protected voidshowTemplateReleaseSelectionPanel(UXTreeModel<DataCollectionNode, DataCollectionTreeProperties> currentNode, TemplateMergingMode mergingMode) Shows a panel for select the template structure release to use in the merge processprotected voidupdatedDescriptionOnDuplicatedNode(DataCollectionNode clonedNode) Updated description on duplicated node.Methods inherited from class overit.geocallapp.wfm.core.ux.datacollection.template.structure.DataCollectionTemplateStructureDetail
alignTreePropertiesToNode, downloadTemplateModel, getEventUXTreeModel, getRowByNodeId, initGlobalExpressions, initPage, initRecap, initTemplateStructureTableView, onOpen, onSelectHtmlTreeNode, onViewRawModel, onViewTreeModel, refreshGlobalExpressionsMethods inherited from class overit.geocall.basic.ui.Container
alert, applyRule, getBASIC, getBLANK, getHtml, 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, 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
-
dataCollectionNodeContainer
-
cutAndPasteData
-
columnTreeModel
protected overit.geocallapp.wfm.ui.control.DataCollectionColumnTreeModel columnTreeModel -
panelCheckResultHelper
-
panelGlobalExpression
-
templateMerger
-
-
Constructor Details
-
DataCollectionTemplateStructureWorkingCopyDetail
public DataCollectionTemplateStructureWorkingCopyDetail()
-
-
Method Details
-
initComponents
protected void initComponents()Init the components.- Overrides:
initComponentsin classDataCollectionTemplateStructureDetail
-
onTableMenu
UI event handler to show the table menu.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onRowMenu
UI event handler to show the row menu.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onAddNode
UI event handler to add a node.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onAddNodeFromTemplateMenu
UI event handler to show the menù voices for add a node from a template.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onAddChildNode
UI event handler to add a child node.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onAddSiblingNodeBefore
UI event handler to add a sibling node before.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onAddSiblingNodeAfter
UI event handler to add a sibling node after.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onAddChildNodeFromTemplate
UI event handler to add a child node from template.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onAddSiblingNodeBeforeFromTemplate
UI event handler to add a sibling node before from template.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onAddSiblingNodeAfterFromTemplate
UI event handler to add a sibling node after from template.- Parameters:
uim- theUIMessage- 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 nestingmergingMode- theTemplateMergingModemerging mode of the template
-
onSelectTemplateRelease
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- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
showMergeMessagesPanel
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
Builds theDBViewwith all the substitution messages generated in the merge process- Parameters:
messages- the list of code substitutions messages- Returns:
- the
DBViewwith all the substitution messages
-
onMergeTemplate
UI event that confirm the template merge.- Parameters:
uim- theUIMessage
-
mergeTemplate
protected void mergeTemplate()Adds the template structure to the current DCS template. -
onDeleteNode
UI event handler to delete a node.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onConfirmSaveTemplateModel
UI event handler to confirm the saving of the template model.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onSaveTemplateModel
UI event handler to save a template model.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
checkPdfModelFields
Checks the pdf model fields.- Returns:
- true, if successful
- Throws:
DAValidateException- the DA validate exception
-
onCloseWorkingCopy
UI event handler to close a working copy.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onConfirmCloseWorkingCopy
UI event handler to confirm the closing of the working copy.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onSelectNode
UI event handler to select a node.- Parameters:
uim- theUIMessage- 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
UI event handler to apply the changes to the node.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onCancelNodeChanges
UI event handler to cancel the changes to the node.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onPasteNode
UI event handler to paste a node.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onPasteChildNode
UI event handler to paste a child node.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onPasteSiblingNodeBefore
UI event handler to paste a sibling node before.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onPasteSiblingNodeAfter
UI event handler to paste a sibling node after.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onCutNode
UI event handler to cut a node.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onDuplicateNode
UI event handler to duplicate a node.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
duplicateNode
protected UXTreeModel<DataCollectionNode,DataCollectionTreeProperties> duplicateNode(UXTreeModel<DataCollectionNode, DataCollectionTreeProperties> currentNode) Duplicates the node.- Parameters:
currentNode- the current node- Returns:
- the UX tree model
-
updatedDescriptionOnDuplicatedNode
Updated description on duplicated node.- Parameters:
clonedNode- the cloned node
-
selectNodeByHtmlTreeNode
Method handler to select a node in the tree view and update the data panel- Overrides:
selectNodeByHtmlTreeNodein classDataCollectionTemplateStructureDetail- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onNewGlobalExpression
UI event handler to create a new global expression.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onSaveGlobalExpression
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- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onRowClickGlobalExpression
UI event handler when clicking a global expression row.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onRowMenuGlobalExpression
UI event handler to show the row menu for global expressions.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onDeleteGlobalExpression
UI event handler to delete a global expression.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-