Class TagStructurePanel.StructureNode
java.lang.Object
com.inductiveautomation.ignition.designer.tags.editing.dialog.TagStructurePanel.StructureNode
- Enclosing class:
- TagStructurePanel
-
Constructor Summary
ConstructorsConstructorDescriptionStructureNode
(TagStructurePanel.StructureNode parent, NodeBrowseInfo info, boolean isNew, boolean isValid) StructureNode
(TagStructurePanel.StructureNode parent, TagConfiguration newTag, boolean isValid) -
Method Summary
Modifier and TypeMethodDescriptionvoid
children()
void
void
delete()
void
delete
(boolean isMove) void
Sets the cached model even if already present.boolean
The config model is null until loaded from the gateway, which will happen when we go to edit.Returns the child for the given name.getChildAt
(int childIndex) int
Returns all of the complex tags (udt def or instance) from the root to this point.protected TagPath
protected TagPath
getEdit()
Returns the edit that can be sent to the gateway.protected TagPath
int
getInfo()
getName()
boolean
For rendering, use isModified to track changes to this objectboolean
boolean
isLeaf()
boolean
boolean
isNew()
For rendering, use isModified to track changes to this objectvoid
void
void
markNew()
Happens when we copy overrides- the node was loaded, but didn't know that we were going to make a "new" inherited prop set.void
void
Sets the cached model, if not already present.void
setCachedLocalConfig
(TagConfiguration localConfig) protected void
void
setValid
(boolean valid) toString()
void
updateInfo
(NodeBrowseInfo info) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.inductiveautomation.ignition.client.tags.tree.node.InfoNode
getTagType
-
Constructor Details
-
StructureNode
public StructureNode(TagStructurePanel.StructureNode parent, NodeBrowseInfo info, boolean isNew, boolean isValid) -
StructureNode
public StructureNode(TagStructurePanel.StructureNode parent, TagConfiguration newTag, boolean isValid)
-
-
Method Details
-
setValid
public void setValid(boolean valid) -
getComplexNodesInHierarchy
Returns all of the complex tags (udt def or instance) from the root to this point. Used for getting parameter values. -
clearChildren
public void clearChildren() -
getCachedConfigModel
The config model is null until loaded from the gateway, which will happen when we go to edit. After that, we'll hold it and won't load again until we commit or refresh. -
setCachedConfigModel
Sets the cached model, if not already present. -
setCachedLocalConfig
-
forceSetCachedConfigModel
Sets the cached model even if already present. -
loadModelDeep
public void loadModelDeep() -
setModelDeep
-
markModified
public void markModified() -
isModified
public boolean isModified() -
isNew
public boolean isNew()For rendering, use isModified to track changes to this object -
markNew
public void markNew()Happens when we copy overrides- the node was loaded, but didn't know that we were going to make a "new" inherited prop set. -
isInherited
public boolean isInherited() -
isDeleted
public boolean isDeleted()For rendering, use isModified to track changes to this object -
delete
public void delete() -
delete
public void delete(boolean isMove) -
getCurrentParentPath
-
getCurrentPath
-
getEditPath
-
getEdit
Returns the edit that can be sent to the gateway. The only real trick to this is that we have to be careful of renamed parent nodes. Edits will be applied IN ORDER from shallow to deep along a tree, which means that if a parent is renamed, that will be applied first- then a child edit, even a delete, needs to have a path that matches to the _new path_ of the _original node_.In other words, when building the path for the edit, we want the _updated_ parent path with the _original_ name of this node. A rename to this node will be reflected in the new name property on the config.
-
getInfo
-
getName
-
updateInfo
-
getChildAt
- Specified by:
getChildAt
in interfaceTreeNode
-
getChildCount
public int getChildCount()- Specified by:
getChildCount
in interfaceTreeNode
-
getParent
-
getIndex
-
getChild
Returns the child for the given name. If multiple have the same name (due to deletion), we return the non deleted one. -
addChild
-
removeChild
-
getAllowsChildren
public boolean getAllowsChildren()- Specified by:
getAllowsChildren
in interfaceTreeNode
-
isLeaf
public boolean isLeaf() -
children
-
toString
-