Class AbstractBrowseNode
java.lang.Object
com.inductiveautomation.ignition.client.tags.tree.node.AbstractBrowseNode
- All Implemented Interfaces:
BrowseTreeNode
,InfoNode
,AsynchronousTreeNode
,TreeNode
- Direct Known Subclasses:
AllProvidersNode
,DatasetColumnTreeNode
,RootTagManagerNode
,TagTreeNode
,UdtDefBrowseNode
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
protected class
protected static enum
protected static class
Simple wrapper containing a BrowseTreeNode and the index at which the node occurs in this node. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AbstractBrowseNode.LoadingStatus
protected ErrorNode
protected static ExecutorService
Static single-thread executor that will service all child load reqsstatic final Set<TagObjectType>
protected NodeBrowseInfo
protected LoadingNode
protected AbstractBrowseNode.Loader
protected static LoggerEx
protected List<? extends BrowseTreeNode>
protected Map<String,
AbstractBrowseNode.NodeWrapper> Map of named nodes used for name-based lookup and quick index lookupprotected int[]
protected TagTreeModel
protected boolean
Fields inherited from interface com.inductiveautomation.ignition.client.tags.tree.node.BrowseTreeNode
NO_TYPES
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Force this tree node to load it's children (if not already loaded) synchronously.children()
protected AbstractBrowseNode.Loader
createLoader
(boolean synchronous) protected Map<String,
AbstractBrowseNode.NodeWrapper> createNodeMap
(List<? extends BrowseTreeNode> nodeList) boolean
protected abstract List<BrowseTreeNode>
findChildNodeByName
(String name) protected void
Fires a lightweight change through treeModel.nodesChanged()protected void
Fires a heavyweight changethrough treeModel.reload()boolean
getChildAt
(int idx) int
int
getInfo()
static int
getRank
(TagObjectType type) Returns the tag path for this tree nodeboolean
int
hashCode()
void
install
(TagTreeModel model, int index) Called then the node is created.boolean
isLeaf()
boolean
Returns true if this node is a meta node.boolean
protected void
loadCancelled
(List<? extends BrowseTreeNode> nodeList, Map<String, AbstractBrowseNode.NodeWrapper> nodeMap) protected void
loadChildrenAsync
(boolean force) protected void
loadChildrenWithStatus
(boolean force, boolean synchronous) protected void
loadDone
(List<? extends BrowseTreeNode> nodeList, Map<String, AbstractBrowseNode.NodeWrapper> nodeMap) protected void
protected void
void
Will perform an async browse and load for the children of this node if they have not already been loaded.protected void
void
reload()
Will perform a full browse a reload for the children of this nodevoid
void
setInfo
(NodeBrowseInfo info) void
setVisible
(boolean visible) Notifies this node if it is currently displayed or not.toString()
void
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.BrowseTreeNode
getAllowedNewObjectTypes, getEditRights, getName, getParent, getTooltipText
Methods inherited from interface com.inductiveautomation.ignition.client.tags.tree.node.InfoNode
getTagType
-
Field Details
-
folderTypes
-
log
-
TAG_COMP
-
treeModel
-
parentIndex
protected int[] parentIndex -
visible
protected boolean visible -
childStatus
-
loadingNode
-
errorNode
-
info
-
nodeList
-
nodeMap
Map of named nodes used for name-based lookup and quick index lookup -
executor
Static single-thread executor that will service all child load reqs -
loadRunner
-
-
Constructor Details
-
AbstractBrowseNode
-
-
Method Details
-
getClientContext
-
getInfo
- Specified by:
getInfo
in interfaceBrowseTreeNode
- Specified by:
getInfo
in interfaceInfoNode
-
setInfo
-
getTagPath
Description copied from interface:BrowseTreeNode
Returns the tag path for this tree node- Specified by:
getTagPath
in interfaceBrowseTreeNode
-
createNodeMap
protected Map<String,AbstractBrowseNode.NodeWrapper> createNodeMap(List<? extends BrowseTreeNode> nodeList) -
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
-
executeChildrenBrowse
- Throws:
Exception
-
loadDone
protected void loadDone(List<? extends BrowseTreeNode> nodeList, Map<String, AbstractBrowseNode.NodeWrapper> nodeMap) -
loadCancelled
protected void loadCancelled(List<? extends BrowseTreeNode> nodeList, Map<String, AbstractBrowseNode.NodeWrapper> nodeMap) -
logLoaded
protected void logLoaded() -
loadError
-
loadChildrenAsync
protected void loadChildrenAsync(boolean force) -
loadChildrenWithStatus
protected void loadChildrenWithStatus(boolean force, boolean synchronous) -
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
-
createLoader
-
children
-
getChildCount
public int getChildCount()- Specified by:
getChildCount
in interfaceTreeNode
-
getIndex
-
hasChild
- Specified by:
hasChild
in interfaceBrowseTreeNode
-
findChildNodeByName
- Specified by:
findChildNodeByName
in interfaceBrowseTreeNode
-
getChildAt
- Specified by:
getChildAt
in interfaceTreeNode
-
isLeaf
public boolean isLeaf() -
getAllowsChildren
public boolean getAllowsChildren()- Specified by:
getAllowsChildren
in interfaceTreeNode
-
install
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
-
uninstall
public void uninstall()- Specified by:
uninstall
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
-
reloadSynchronous
public void reloadSynchronous() -
fireNodeChanged
protected void fireNodeChanged()Fires a heavyweight changethrough treeModel.reload() -
fireLightweightChange
protected void fireLightweightChange()Fires a lightweight change through treeModel.nodesChanged() -
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
-
isVisible
public boolean isVisible()- Specified by:
isVisible
in interfaceBrowseTreeNode
-
notifyVisibilityChange
protected void notifyVisibilityChange() -
equals
-
hashCode
public int hashCode() -
toString
-
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
-
getRank
-