Class ErrorNode
- java.lang.Object
-
- com.inductiveautomation.ignition.client.tags.tree.node.ErrorNode
-
- All Implemented Interfaces:
BrowseTreeNode
,InfoNode
,AsynchronousTreeNode
,javax.swing.tree.TreeNode
public class ErrorNode extends java.lang.Object implements BrowseTreeNode
-
-
Field Summary
-
Fields inherited from interface com.inductiveautomation.ignition.client.tags.tree.node.BrowseTreeNode
NO_TYPES
-
-
Constructor Summary
Constructors Constructor Description ErrorNode(BrowseTreeNode parent)
ErrorNode(BrowseTreeNode parent, java.lang.String tooltip)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
blockLoad()
Noop - no childrenjava.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()
BrowseTreeNode
getChildAt(int idx)
int
getChildCount()
EditRights
getEditRights()
int
getIndex(javax.swing.tree.TreeNode node)
NodeBrowseInfo
getInfo()
ClientTagManager
getManager()
java.lang.String
getName()
Returns the name, as it would be represented in a TagPath, of this nodeBrowseTreeNode
getParent()
Narrowing return for getParentTagPath
getTagPath()
Returns the tag path for this tree nodejava.lang.String
getTooltipText()
Returns the tooltip text for the tree nodeboolean
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
-
-
-
-
Constructor Detail
-
ErrorNode
public ErrorNode(BrowseTreeNode parent)
-
ErrorNode
public ErrorNode(BrowseTreeNode parent, java.lang.String tooltip)
-
-
Method Detail
-
getEditRights
public EditRights getEditRights()
- Specified by:
getEditRights
in interfaceBrowseTreeNode
-
getInfo
public NodeBrowseInfo getInfo()
- Specified by:
getInfo
in interfaceBrowseTreeNode
- Specified by:
getInfo
in interfaceInfoNode
-
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
-
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
-
getChildAt
public BrowseTreeNode getChildAt(int idx)
- Specified by:
getChildAt
in interfacejavax.swing.tree.TreeNode
-
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
-
getTooltipText
public java.lang.String getTooltipText()
Description copied from interface:BrowseTreeNode
Returns the tooltip text for the tree node- Specified by:
getTooltipText
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
-
getManager
public ClientTagManager getManager()
-
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
-
isVisible
public boolean isVisible()
- Specified by:
isVisible
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
-
getTagPath
public TagPath getTagPath()
Description copied from interface:BrowseTreeNode
Returns the tag path for this tree node- Specified by:
getTagPath
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
-
uninstall
public void uninstall()
- Specified by:
uninstall
in interfaceBrowseTreeNode
-
children
public java.util.Enumeration children()
- Specified by:
children
in interfacejavax.swing.tree.TreeNode
-
getAllowsChildren
public boolean getAllowsChildren()
- Specified by:
getAllowsChildren
in interfacejavax.swing.tree.TreeNode
-
getChildCount
public int getChildCount()
- Specified by:
getChildCount
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
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
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
-
blockLoad
public void blockLoad()
Noop - no children- Specified by:
blockLoad
in interfaceAsynchronousTreeNode
-
-