Class ArrayValueTreeNode
- java.lang.Object
-
- com.inductiveautomation.ignition.client.tags.tree.node.values.ArrayValueTreeNode
-
- All Implemented Interfaces:
BrowseTreeNode
,InfoNode
,ValueNode
,AsynchronousTreeNode
,javax.swing.tree.TreeNode
public class ArrayValueTreeNode extends java.lang.Object implements BrowseTreeNode, ValueNode
Created by colby.clegg on 7/17/2015.
-
-
Field Summary
-
Fields inherited from interface com.inductiveautomation.ignition.client.tags.tree.node.BrowseTreeNode
NO_TYPES
-
Fields inherited from interface com.inductiveautomation.ignition.client.tags.tree.node.ValueNode
VALUE_RELEVANT_TYPES
-
-
Constructor Summary
Constructors Constructor Description ArrayValueTreeNode(ValueNode valueSource, BrowseTreeNode parent, int index)
ArrayValueTreeNode(ValueNode valueSource, BrowseTreeNode parent, int row, int col)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
blockLoad()
Force this tree node to load it's children (if not already loaded) synchronously.java.util.Enumeration
children()
BrowseTreeNode
findChildNodeByName(java.lang.String name)
java.util.Set<TagTypeDescriptor>
getAllowedNewObjectTypes()
Returns the type of objects that can be added at this level.boolean
getAllowsChildren()
int
getArrayIndex()
javax.swing.tree.TreeNode
getChildAt(int childIndex)
int
getChildCount()
int
getColumn()
EditRights
getEditRights()
int
getIndex(javax.swing.tree.TreeNode node)
NodeBrowseInfo
getInfo()
java.lang.String
getName()
Returns the name, as it would be represented in a TagPath, of this nodeBrowseTreeNode
getParent()
Narrowing return for getParentint
getRow()
TagPath
getTagPath()
Returns the tag path for this tree nodejava.lang.String
getTooltipText()
Returns the tooltip text for the tree nodeQualifiedValue
getValue()
boolean
hasChild(java.lang.String name)
void
install(TagTreeModel model, int index)
Called then the node is created.boolean
isLeaf()
boolean
isMetaNode()
Returns true if this node is a meta node.boolean
isVisible()
void
maybeBrowseAsync()
Will perform an async browse and load for the children of this node if they have not already been loaded.void
reload()
Will perform a full browse a reload for the children of this nodevoid
setVisible(boolean visible)
Notifies this node if it is currently displayed or not.java.lang.String
toString()
void
uninstall()
-
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
-
Methods inherited from interface com.inductiveautomation.ignition.client.tags.tree.node.ValueNode
isValueRelevant
-
-
-
-
Constructor Detail
-
ArrayValueTreeNode
public ArrayValueTreeNode(ValueNode valueSource, BrowseTreeNode parent, int index)
-
ArrayValueTreeNode
public ArrayValueTreeNode(ValueNode valueSource, BrowseTreeNode parent, int row, int col)
-
-
Method Detail
-
getParent
public BrowseTreeNode getParent()
Description copied from interface:BrowseTreeNode
Narrowing return for getParent- Specified by:
getParent
in interfaceBrowseTreeNode
- Specified by:
getParent
in interfacejavax.swing.tree.TreeNode
-
getInfo
public NodeBrowseInfo getInfo()
- Specified by:
getInfo
in interfaceBrowseTreeNode
- Specified by:
getInfo
in interfaceInfoNode
-
getAllowsChildren
public boolean getAllowsChildren()
- Specified by:
getAllowsChildren
in interfacejavax.swing.tree.TreeNode
-
getChildCount
public int getChildCount()
- Specified by:
getChildCount
in interfacejavax.swing.tree.TreeNode
-
getTagPath
public TagPath getTagPath()
Description copied from interface:BrowseTreeNode
Returns the tag path for this tree node- Specified by:
getTagPath
in interfaceBrowseTreeNode
-
getName
public java.lang.String getName()
Description copied from interface:BrowseTreeNode
Returns the name, as it would be represented in a TagPath, of this node- Specified by:
getName
in interfaceBrowseTreeNode
-
getTooltipText
public java.lang.String getTooltipText()
Description copied from interface:BrowseTreeNode
Returns the tooltip text for the tree node- Specified by:
getTooltipText
in interfaceBrowseTreeNode
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getArrayIndex
public int getArrayIndex()
-
getRow
public int getRow()
-
getColumn
public int getColumn()
-
getValue
public QualifiedValue getValue()
-
getChildAt
public javax.swing.tree.TreeNode getChildAt(int childIndex)
- Specified by:
getChildAt
in interfacejavax.swing.tree.TreeNode
-
getIndex
public int getIndex(javax.swing.tree.TreeNode node)
- Specified by:
getIndex
in interfacejavax.swing.tree.TreeNode
-
isLeaf
public boolean isLeaf()
- Specified by:
isLeaf
in interfacejavax.swing.tree.TreeNode
-
children
public java.util.Enumeration children()
- Specified by:
children
in interfacejavax.swing.tree.TreeNode
-
getAllowedNewObjectTypes
@Nullable public java.util.Set<TagTypeDescriptor> getAllowedNewObjectTypes()
Description copied from interface:BrowseTreeNode
Returns the type of objects that can be added at this level.- Specified by:
getAllowedNewObjectTypes
in interfaceBrowseTreeNode
-
getEditRights
public EditRights getEditRights()
- Specified by:
getEditRights
in interfaceBrowseTreeNode
-
isMetaNode
public boolean isMetaNode()
Description copied from interface:BrowseTreeNode
Returns true if this node is a meta node. (Like a loading node). Don't try to use the tag path of a Meta node- Specified by:
isMetaNode
in interfaceBrowseTreeNode
-
hasChild
public boolean hasChild(java.lang.String name)
- Specified by:
hasChild
in interfaceBrowseTreeNode
-
findChildNodeByName
public BrowseTreeNode findChildNodeByName(java.lang.String name)
- Specified by:
findChildNodeByName
in interfaceBrowseTreeNode
-
reload
public void reload()
Description copied from interface:BrowseTreeNode
Will perform a full browse a reload for the children of this node- Specified by:
reload
in interfaceBrowseTreeNode
-
maybeBrowseAsync
public void maybeBrowseAsync()
Description copied from interface:BrowseTreeNode
Will perform an async browse and load for the children of this node if they have not already been loaded.- Specified by:
maybeBrowseAsync
in interfaceBrowseTreeNode
-
install
public void install(TagTreeModel model, int index)
Description copied from interface:BrowseTreeNode
Called then the node is created.- Specified by:
install
in interfaceBrowseTreeNode
index
- The index at which this node occurs in its parent
-
uninstall
public void uninstall()
- Specified by:
uninstall
in interfaceBrowseTreeNode
-
isVisible
public boolean isVisible()
- Specified by:
isVisible
in interfaceBrowseTreeNode
-
setVisible
public void setVisible(boolean visible)
Description copied from interface:BrowseTreeNode
Notifies this node if it is currently displayed or not.- Specified by:
setVisible
in interfaceBrowseTreeNode
-
blockLoad
public void blockLoad()
Description copied from interface:AsynchronousTreeNode
Force this tree node to load it's children (if not already loaded) synchronously.- Specified by:
blockLoad
in interfaceAsynchronousTreeNode
-
-