Class TemplateJsonTreeEditor
java.lang.Object
overit.geocall.platform.ui.UINode
overit.geocall.ui.Component
overit.geocall.ui.Control
overit.geocall.basic.ui.Container
overit.geocall.basic.ui.container.TreeEditor
overit.geocallapp.wfm.core.ux.datacollection.template.treejson.TemplateJsonTreeEditor
- All Implemented Interfaces:
Serializable,overit.geocall.clipboard.XClip,overit.geocall.marks.MethodExposer,overit.geocall.marks.NameExposer,AjaxableComponent,Badgeable,Hideable,Identified,Tool,overit.geocall.ux.configurability.UIConfigurable,overit.geocall.ux.edm.ModelConfigurable
Builder responsible for design the html tree view of the data collection node
- Since:
- 19.0
- See Also:
- GCApi:
- component
-
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
Fields inherited from class overit.geocall.basic.ui.container.TreeEditor
_border, _canpaste, _changedFrom, _changedTo, _cutting, _mode, _mousebutton, _msgCopyTitle, _msgCutTitle, _msgDeleteMessage, _msgDeleteTitle, _msgEditTitle, _msgInsertAfterTitle, _msgInsertBeforeTitle, _msgInsertChildTitle, _msgInsertParentTitle, _msgNodeCollapse, _msgNodeExpand, _msgPasteMessage, _msgPasteTitle, _param, _short, _t, _tInedit, _tmShort, _visible, _xclass, breakCharsFields 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, safeInlineServiceFields inherited from interface overit.geocall.ui.AjaxableComponent
FRAME_ID_PREFIX, NOTRANSITION, TRANSITION_BODY_MORPH, TRANSITION_BODY_RESIZE, TRANSITION_BORDER_RESIZE, TRANSITION_DOWN, TRANSITION_UP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddCustomNodeInfo(TemplateJsonTree tree, org.apache.ecs.html.Div div) Method to add custom info in each nodeprotected voidMethod to add a new node by a code stringprotected voidbuildDescription(Tree tree, org.apache.ecs.html.Div div) Method to add the description to the nodeprotected StringbuildTextWithBr(String label, String value) Method to add aprotected voidMethod to add the icon a text by the node typeprotected voidMethod handler to design html tree view using TemplateHtmlJsonTree.protected org.apache.ecs.html.DivgetColorWrapper(Tree tree, org.apache.ecs.html.Div div) Method to create a new Dib with the color set in the color properties of the nodeMethod to get a new template json treeprotected StringgetOriginalDescription(String originalDescription) Method to create a new Div with the color set in the color properties of the nodevoidMethod init tree without anythingbooleanUI event handler to select a node in the tree viewprotected voidsetBorder(boolean isSelected, org.apache.ecs.html.Div div) Method to set the border according the node is selected or not * @param isSelected the* @param div theinvalid reference
booleanDivprotected voidsetOnClickNodeAction(Tree t, org.apache.ecs.html.Div d) Method that add the event SelectHtmlTreeNode (onClick) in each nodeprotected voidMethod that clean all selections in the tree modelMethods inherited from class overit.geocall.basic.ui.container.TreeEditor
applyFilterToChildren, bold, calcFrameId, calcTitle, changed, changedSubTree, changedSubTree, configureShortMenu, createMenu, doCopy, doCut, doDelete, doPaste, evidence2, evidence21, fillArcDescription, fillArcDescription, freeClip, getAlert, getArcDescription, getChunks, getCountInfo, getCutting, getDefaultChange, getDropDownItem, getDropDownMenu, getDropDownT, getFrameHtml, getHtml, getMenu, getMenuItem, getMinusPlusButton, getNewTree, getTDAlert, getTDNodeType, getTree, getTreeAlert, getUpDownButton, isVisible, onAccept, onBorder, onCancel, onClose, onCopy, onCopy, onCut, onCut, onDelete, onDelete, onDown, onInsertAfter, onInsertBefore, onInsertChild, onInsertParent, onMinus, onOpenMenu, onPaste, onPaste, onPlus, onShort, onUp, pasteContent, resolveTree, setMODE, setMOUSEBUTTON, setOnClickAction, setPARAM, setTree, setup, setVISIBLE, setXCLASS, span2OnTitle, spanOnTitle, subTreeMethods inherited from class overit.geocall.basic.ui.Container
alert, applyRule, getBASIC, getBLANK, 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, 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, makeBadgedIconMethods inherited from interface overit.geocall.ui.Hideable
getVISIBLEMethods inherited from interface overit.geocall.clipboard.XClip
getWM
-
Constructor Details
-
TemplateJsonTreeEditor
public TemplateJsonTreeEditor()
-
-
Method Details
-
onOpen
Method init tree without anything- Overrides:
onOpenin classTreeEditor- Parameters:
o- theObject
-
getNewNode
Method to get a new template json tree- Overrides:
getNewNodein classTreeEditor- Returns:
- return a tree , a new template json treee
-
fillNode
Method handler to design html tree view using TemplateHtmlJsonTree.- Overrides:
fillNodein classTreeEditor- Parameters:
tree- theTemplateJsonTree
-
setBorder
protected void setBorder(boolean isSelected, org.apache.ecs.html.Div div) Method to set the border according the node is selected or not * @param isSelected the* @param div theinvalid reference
booleanDiv -
buildDescription
Method to add the description to the node- Parameters:
tree- theTreediv- theDiv
-
getOriginalDescription
Method to create a new Div with the color set in the color properties of the node- Parameters:
originalDescription- theString- Returns:
- the string with br according to the length of the text
-
getColorWrapper
Method to create a new Dib with the color set in the color properties of the node- Parameters:
tree- theTreediv- theDiv- Returns:
- the div with the style and color by node type
-
buildType
Method to add the icon a text by the node type- Parameters:
tree- theTreediv- theDiv
-
buildCode
Method to add a new node by a code string- Parameters:
tree- theTreediv- theDiv
-
buildTextWithBr
Method to add a -
addCustomNodeInfo
Method to add custom info in each node- Parameters:
tree- theTemplateJsonTreediv- theDiv
-
onSelectHtmlTreeNode
UI event handler to select a node in the tree view- Parameters:
uim- theUIMessage- Returns:
- false to propagate the responsibility chain.
-
unSelectAllTree
Method that clean all selections in the tree model- Parameters:
tree- theTemplateJsonTree
-
setOnClickNodeAction
Method that add the event SelectHtmlTreeNode (onClick) in each node- Parameters:
t- theTemplateJsonTreed- theDiv
-