Class TagTreeNode
- java.lang.Object
-
- com.inductiveautomation.ignition.client.tags.tree.node.AbstractBrowseNode
-
- com.inductiveautomation.ignition.client.tags.tree.node.TagTreeNode
-
- All Implemented Interfaces:
BrowseTreeNode
,InfoNode
,ValueNode
,AsynchronousTreeNode
,TagChangeListener
,java.util.EventListener
,javax.swing.tree.TreeNode
- Direct Known Subclasses:
FolderNode
,PropertyNode
,TagProviderNode
public class TagTreeNode extends AbstractBrowseNode implements InfoNode, TagChangeListener, ValueNode
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.inductiveautomation.ignition.client.tags.tree.node.AbstractBrowseNode
AbstractBrowseNode.BrowseTreeComparator, AbstractBrowseNode.InfoComparator, AbstractBrowseNode.Loader, AbstractBrowseNode.LoadingStatus, AbstractBrowseNode.NodeWrapper
-
-
Field Summary
Fields Modifier and Type Field Description protected TagPath
browseValuePath
protected QualifiedValue
currentvalue
protected static java.util.Set<TagObjectType>
folderTypes
protected BrowseTreeNode
parent
protected boolean
subscribed
protected static java.util.Set<TagObjectType>
VALID_PARENTS
-
Fields inherited from class com.inductiveautomation.ignition.client.tags.tree.node.AbstractBrowseNode
childStatus, errorNode, executor, info, loadingNode, loadRunner, log, nodeList, nodeMap, parentIndex, TAG_COMP, treeModel, visible
-
Fields inherited from interface com.inductiveautomation.ignition.client.tags.tree.node.BrowseTreeNode
NO_TYPES
-
-
Constructor Summary
Constructors Constructor Description TagTreeNode(NodeBrowseInfo info, BrowseTreeNode parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BrowseTreeNode
createChildNode(NodeBrowseInfo childInfo)
protected java.util.List<BrowseTreeNode>
executeChildrenBrowse()
java.util.Set<TagTypeDescriptor>
getAllowedNewObjectTypes()
Returns the type of objects that can be added at this level.EditRights
getEditRights()
java.lang.String
getName()
Returns the name, as it would be represented in a TagPath, of this nodeBrowseTreeNode
getParent()
Narrowing return for getParentTagProviderNode
getProviderNode()
protected TagPath
getSubscriptionPath()
TagPath
getTagPath()
Returns the tag path for this tree nodeTagObjectType
getTagType()
java.lang.String
getTooltipText()
Returns the tooltip text for the tree nodeQualifiedValue
getValue()
void
install(TagTreeModel model, int index)
Called then the node is created.boolean
isLeaf()
protected void
notifyVisibilityChange()
protected void
setCurrentValue(QualifiedValue v)
void
tagChanged(TagChangeEvent e)
Invoked when the tag has changedvoid
uninstall()
-
Methods inherited from class com.inductiveautomation.ignition.client.tags.tree.node.AbstractBrowseNode
blockLoad, children, createLoader, createNodeMap, equals, findChildNodeByName, fireLightweightChange, fireNodeChanged, getAllowsChildren, getChildAt, getChildCount, getClientContext, getIndex, getInfo, getManager, hasChild, hashCode, isMetaNode, isVisible, loadChildrenAsync, loadChildrenWithStatus, loadDone, loadError, logLoaded, maybeBrowseAsync, reload, reloadSynchronous, setVisible, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.inductiveautomation.ignition.common.tags.model.event.TagChangeListener
isLightweight
-
-
-
-
Field Detail
-
VALID_PARENTS
protected static final java.util.Set<TagObjectType> VALID_PARENTS
-
folderTypes
protected static final java.util.Set<TagObjectType> folderTypes
-
currentvalue
protected QualifiedValue currentvalue
-
parent
protected BrowseTreeNode parent
-
subscribed
protected boolean subscribed
-
browseValuePath
protected TagPath browseValuePath
-
-
Constructor Detail
-
TagTreeNode
public TagTreeNode(NodeBrowseInfo info, BrowseTreeNode parent)
-
-
Method Detail
-
getValue
public QualifiedValue getValue()
-
setCurrentValue
protected void setCurrentValue(QualifiedValue v)
-
getProviderNode
public TagProviderNode getProviderNode()
-
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
-
getSubscriptionPath
protected TagPath getSubscriptionPath()
-
install
public void install(TagTreeModel model, int index)
Description copied from interface:BrowseTreeNode
Called then the node is created.- Specified by:
install
in interfaceBrowseTreeNode
- Overrides:
install
in classAbstractBrowseNode
index
- The index at which this node occurs in its parent
-
uninstall
public void uninstall()
- Specified by:
uninstall
in interfaceBrowseTreeNode
- Overrides:
uninstall
in classAbstractBrowseNode
-
executeChildrenBrowse
protected java.util.List<BrowseTreeNode> executeChildrenBrowse() throws java.lang.Exception
- Specified by:
executeChildrenBrowse
in classAbstractBrowseNode
- Throws:
java.lang.Exception
-
createChildNode
protected BrowseTreeNode createChildNode(NodeBrowseInfo childInfo)
-
notifyVisibilityChange
protected void notifyVisibilityChange()
- Overrides:
notifyVisibilityChange
in classAbstractBrowseNode
-
isLeaf
public boolean isLeaf()
- Specified by:
isLeaf
in interfacejavax.swing.tree.TreeNode
- Overrides:
isLeaf
in classAbstractBrowseNode
-
tagChanged
public void tagChanged(TagChangeEvent e) throws InvalidListenerException
Description copied from interface:TagChangeListener
Invoked when the tag has changed- Specified by:
tagChanged
in interfaceTagChangeListener
- Parameters:
e
- a ChangeEvent object- Throws:
InvalidListenerException
-
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
-
getTagPath
public TagPath getTagPath()
Description copied from interface:BrowseTreeNode
Returns the tag path for this tree node- Specified by:
getTagPath
in interfaceBrowseTreeNode
- Overrides:
getTagPath
in classAbstractBrowseNode
-
getTagType
public TagObjectType getTagType()
- Specified by:
getTagType
in interfaceInfoNode
-
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
-
-