Class RootTagManagerNode
- java.lang.Object
-
- com.inductiveautomation.ignition.client.tags.tree.node.AbstractBrowseNode
-
- com.inductiveautomation.ignition.client.tags.tree.node.RootTagManagerNode
-
- All Implemented Interfaces:
BrowseTreeNode
,FilterableRootNode
,InfoNode
,AsynchronousTreeNode
,javax.swing.tree.TreeNode
- Direct Known Subclasses:
DesignerRootTagManagerNode
,TagBrowseRootNode
public class RootTagManagerNode extends AbstractBrowseNode implements FilterableRootNode
-
-
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 java.util.Set<java.lang.String>
blockedNames
protected ClientContext
context
protected static java.lang.String
DEFAULT_PROV
protected java.util.Comparator<BrowseTreeNode>
providerSort
-
Fields inherited from class com.inductiveautomation.ignition.client.tags.tree.node.AbstractBrowseNode
childStatus, errorNode, executor, folderTypes, 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 RootTagManagerNode(ClientContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
allow(java.lang.String name)
void
block(java.lang.String name)
TagProviderNode
createProviderNode(TagProviderProps props, BrowseTreeNode parent)
java.util.List<BrowseTreeNode>
executeChildrenBrowse()
protected boolean
filter(TagProviderProps prop)
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 getParentTagPath
getTagPath()
Returns the tag path for this tree nodejava.lang.String
getTooltipText()
Returns the tooltip text for the tree nodevoid
install(TagTreeModel model, int index)
Called then the node is created.java.lang.String
toString()
-
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, isLeaf, isMetaNode, isVisible, loadChildrenAsync, loadChildrenWithStatus, loadDone, loadError, logLoaded, maybeBrowseAsync, notifyVisibilityChange, reload, reloadSynchronous, setVisible, uninstall
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.inductiveautomation.ignition.client.tags.tree.node.InfoNode
getTagType
-
-
-
-
Field Detail
-
DEFAULT_PROV
protected static final java.lang.String DEFAULT_PROV
-
blockedNames
protected java.util.Set<java.lang.String> blockedNames
-
context
protected ClientContext context
-
providerSort
protected java.util.Comparator<BrowseTreeNode> providerSort
-
-
Constructor Detail
-
RootTagManagerNode
public RootTagManagerNode(ClientContext context)
-
-
Method Detail
-
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
-
getEditRights
public EditRights getEditRights()
- Specified by:
getEditRights
in interfaceBrowseTreeNode
-
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
-
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
-
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
-
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
-
toString
public java.lang.String toString()
- Overrides:
toString
in classAbstractBrowseNode
-
allow
public void allow(java.lang.String name)
- Specified by:
allow
in interfaceFilterableRootNode
- Parameters:
name
- the name of the provider to unblock when browsing
-
block
public void block(java.lang.String name)
- Specified by:
block
in interfaceFilterableRootNode
- Parameters:
name
- the name of a provider to block while browsing; no node will be created for the provider.
-
createProviderNode
public TagProviderNode createProviderNode(TagProviderProps props, BrowseTreeNode parent)
-
filter
protected boolean filter(TagProviderProps prop)
-
executeChildrenBrowse
public java.util.List<BrowseTreeNode> executeChildrenBrowse() throws java.lang.Exception
- Specified by:
executeChildrenBrowse
in classAbstractBrowseNode
- Throws:
java.lang.Exception
-
-