Class AbstractOPCTreeNode
- java.lang.Object
-
- com.inductiveautomation.ignition.client.util.gui.tree.AbstractAsynchronousTreeNode<OPCTreeNode>
-
- com.inductiveautomation.ignition.designer.sqltags.opcbrowser.AbstractOPCTreeNode
-
- All Implemented Interfaces:
AsynchronousTreeNode
,RenderableTreeNode
,OPCTreeNode
,javax.swing.tree.TreeNode
- Direct Known Subclasses:
OPCFolderNode
public abstract class AbstractOPCTreeNode extends AbstractAsynchronousTreeNode<OPCTreeNode> implements OPCTreeNode
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.inductiveautomation.ignition.client.util.gui.tree.AbstractAsynchronousTreeNode
AbstractAsynchronousTreeNode.LoadingStatus
-
-
Field Summary
Fields Modifier and Type Field Description protected OpcBrowseExecutor
browser
protected java.lang.String
tooltip
-
Fields inherited from class com.inductiveautomation.ignition.client.util.gui.tree.AbstractAsynchronousTreeNode
errorNode, loadingNode, nodeList, parent, treeModel
-
-
Constructor Summary
Constructors Constructor Description AbstractOPCTreeNode(OpcBrowseExecutor browser, javax.swing.tree.DefaultTreeModel treeModel, OPCTreeNode parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Collection<BrowseElement>
browse(BrowseElement root)
BrowseElement
getBrowseElement()
java.lang.String
getDriverName()
int
getFontStyle()
A bitmask of Font.BOLD, Font.NORMAL, Font.ITALIC to specify the font style of the nodeOPCItemType
getItemType()
Returns the OPC item type of this node.java.lang.String
getTooltipText()
A tooltip (may be null) for the nodeboolean
isMetaNode()
Return true if this node doesn't actually represent an OPC item, but is rather a meta node, like LOADING or ERRORprotected OPCTreeNode
newErrorNode(java.lang.Throwable ex)
protected OPCTreeNode
newLoadingNode()
protected void
showLoadingError(java.lang.Exception ex)
Optional override to display a loading error-
Methods inherited from class com.inductiveautomation.ignition.client.util.gui.tree.AbstractAsynchronousTreeNode
blockLoad, checkChildren, children, getAllowsChildren, getChildAt, getChildCount, getIndex, getParent, isLeaf, loadChildren, loadDone, loadError, reload, sortChildren
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.inductiveautomation.ignition.designer.sqltags.opcbrowser.OPCTreeNode
blockLoad, getChildAt, getParent, reload
-
Methods inherited from interface com.inductiveautomation.ignition.client.util.gui.tree.RenderableTreeNode
getIconKey
-
-
-
-
Field Detail
-
browser
protected OpcBrowseExecutor browser
-
tooltip
protected java.lang.String tooltip
-
-
Constructor Detail
-
AbstractOPCTreeNode
public AbstractOPCTreeNode(OpcBrowseExecutor browser, javax.swing.tree.DefaultTreeModel treeModel, OPCTreeNode parent)
-
-
Method Detail
-
browse
protected java.util.Collection<BrowseElement> browse(BrowseElement root)
-
newLoadingNode
protected OPCTreeNode newLoadingNode()
- Specified by:
newLoadingNode
in classAbstractAsynchronousTreeNode<OPCTreeNode>
-
newErrorNode
protected OPCTreeNode newErrorNode(java.lang.Throwable ex)
- Specified by:
newErrorNode
in classAbstractAsynchronousTreeNode<OPCTreeNode>
-
showLoadingError
protected void showLoadingError(java.lang.Exception ex)
Description copied from class:AbstractAsynchronousTreeNode
Optional override to display a loading error- Overrides:
showLoadingError
in classAbstractAsynchronousTreeNode<OPCTreeNode>
-
getFontStyle
public int getFontStyle()
Description copied from interface:RenderableTreeNode
A bitmask of Font.BOLD, Font.NORMAL, Font.ITALIC to specify the font style of the node- Specified by:
getFontStyle
in interfaceRenderableTreeNode
-
isMetaNode
public boolean isMetaNode()
Description copied from interface:OPCTreeNode
Return true if this node doesn't actually represent an OPC item, but is rather a meta node, like LOADING or ERROR- Specified by:
isMetaNode
in interfaceOPCTreeNode
-
getTooltipText
public java.lang.String getTooltipText()
Description copied from interface:RenderableTreeNode
A tooltip (may be null) for the node- Specified by:
getTooltipText
in interfaceRenderableTreeNode
-
getBrowseElement
public BrowseElement getBrowseElement()
- Specified by:
getBrowseElement
in interfaceOPCTreeNode
-
getDriverName
public java.lang.String getDriverName()
-
getItemType
public OPCItemType getItemType()
Description copied from interface:OPCTreeNode
Returns the OPC item type of this node. May be null for META nodes or ROOT, or FSQL nodes- Specified by:
getItemType
in interfaceOPCTreeNode
-
-