Class ComponentNode
- java.lang.Object
- 
- com.inductiveautomation.ignition.designer.navtree.model.AbstractNavTreeNode
- 
- com.inductiveautomation.perspective.designer.workspace.nav.ComponentNode
 
 
- 
- All Implemented Interfaces:
- java.lang.Iterable<AbstractNavTreeNode>,- javax.swing.tree.TreeNode
 
 public class ComponentNode extends AbstractNavTreeNode Created by carlg on 6/13/2017.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class com.inductiveautomation.ignition.designer.navtree.model.AbstractNavTreeNodeAbstractNavTreeNode.DeleteReason, AbstractNavTreeNode.PopupAction
 
- 
 - 
Field Summary- 
Fields inherited from class com.inductiveautomation.ignition.designer.navtree.model.AbstractNavTreeNodebold, children, childrenLoaded, copyAction, copyPathAction, cutAction, depth, icon, italic, log, model, name, parent, pasteAction, renameAction, selectionModel, text, thumbnail, tooltip
 
- 
 - 
Constructor SummaryConstructors Constructor Description ComponentNode(ViewResourceEditor editor, ComponentStructure component)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddBadges(BadgeTreeCellRenderer renderer, boolean selected)Add 'badges' to indicate meta information about this nodeprotected voidaddEditActions(javax.swing.JPopupMenu menu)java.util.Optional<ComponentNode>findChild(java.util.List<java.lang.Integer> path)protected AbstractNavTreeNode.PopupActiongetDeleteAction()java.lang.StringgetPath()PipesFolderNodegetPipesFolderNode()protected java.lang.Iterable<AbstractNavTreeNode.PopupAction>getPopupActions()Provide a list ofPopupActions that will be set up byAbstractNavTreeNode.setupEditActions(javax.swing.tree.TreePath[], java.util.List<com.inductiveautomation.ignition.designer.navtree.model.AbstractNavTreeNode>); that is, will have theirAbstractNavTreeNode.PopupAction.selectionandAbstractNavTreeNode.PopupAction.actionHandlerset.voidinstall(AbstractNavTreeNode parent)booleanisEditable()Override this and return true if you want your node's text to be editable.protected java.util.List<AbstractNavTreeNode>loadChildren()Called before this node responds from any of the children-related TreeNode functions, if a list of children wasn't already set.voidonDeepSelectionChanged(DeepSelectionChangeEvent event)voidonEdit(java.lang.String newTextValue)Called after this node has been edited in the tree.protected voiduninstall()Called when the node is removed from the tree.- 
Methods inherited from class com.inductiveautomation.ignition.designer.navtree.model.AbstractNavTreeNodecanCopy, canDelete, canDrag, canDrop, canPaste, checkChildren, children, confirmDelete, createResourceCopy, debug, debug, dispatchSelectionEvent, doCopy, doCut, doDelete, doPaste, expand, expandAndSelect, findChild, findCommonEditActionHandler, findDropHandler, findEditActionHandler, forceChildrenReload, getAllowsChildren, getChildAt, getChildCount, getClipboard, getDepth, getExpandedIcon, getIcon, getIndex, getModel, getName, getParent, getSelectionModel, getSortOrder, getText, getThumbnail, getTooltip, getWorkspaceName, initPopupMenu, isBold, isEditActionHandler, isItalic, isLeaf, isRestricted, isSelected, isTopLevelNode, isValidName, iterator, newLogger, notifyChildNameChanged, onChildrenSelected, onDoubleClick, onSelected, pathToRoot, recreate, recreate, refresh, reload, select, select, setBold, setChildren, setIcon, setItalic, setName, setText, setThumbnail, setTooltip, setupEditActions, showPopupMenu, toString, uninstallChildren, useThumbnailTooltip, visitIfLoaded
 
- 
 
- 
- 
- 
Constructor Detail- 
ComponentNodepublic ComponentNode(@Nullable ViewResourceEditor editor, ComponentStructure component)
 
- 
 - 
Method Detail- 
getPipesFolderNodepublic PipesFolderNode getPipesFolderNode() 
 - 
installpublic void install(AbstractNavTreeNode parent) - Overrides:
- installin class- AbstractNavTreeNode
 
 - 
uninstallprotected void uninstall() Description copied from class:AbstractNavTreeNodeCalled when the node is removed from the tree. Override to provide meaningful implementation.- Overrides:
- uninstallin class- AbstractNavTreeNode
 
 - 
addEditActionsprotected void addEditActions(javax.swing.JPopupMenu menu) - Overrides:
- addEditActionsin class- AbstractNavTreeNode
 
 - 
getPopupActionsprotected java.lang.Iterable<AbstractNavTreeNode.PopupAction> getPopupActions() Description copied from class:AbstractNavTreeNodeProvide a list ofPopupActions that will be set up byAbstractNavTreeNode.setupEditActions(javax.swing.tree.TreePath[], java.util.List<com.inductiveautomation.ignition.designer.navtree.model.AbstractNavTreeNode>); that is, will have theirAbstractNavTreeNode.PopupAction.selectionandAbstractNavTreeNode.PopupAction.actionHandlerset.- Overrides:
- getPopupActionsin class- AbstractNavTreeNode
 
 - 
getDeleteAction@Nonnull protected AbstractNavTreeNode.PopupAction getDeleteAction() - Overrides:
- getDeleteActionin class- AbstractNavTreeNode
 
 - 
isEditablepublic boolean isEditable() Description copied from class:AbstractNavTreeNodeOverride this and return true if you want your node's text to be editable. SeeAbstractNavTreeNode.onEdit(String)- Overrides:
- isEditablein class- AbstractNavTreeNode
 
 - 
onEditpublic void onEdit(java.lang.String newTextValue) Description copied from class:AbstractNavTreeNodeCalled after this node has been edited in the tree.- Overrides:
- onEditin class- AbstractNavTreeNode
 
 - 
onDeepSelectionChangedpublic void onDeepSelectionChanged(DeepSelectionChangeEvent event) 
 - 
getPathpublic java.lang.String getPath() 
 - 
addBadgespublic void addBadges(BadgeTreeCellRenderer renderer, boolean selected) Description copied from class:AbstractNavTreeNodeAdd 'badges' to indicate meta information about this node- Overrides:
- addBadgesin class- AbstractNavTreeNode
- Parameters:
- renderer- the renderer; call- BadgeTreeCellRenderer.addBadge(Badge)to add your badge(s)
- selected- the state of this node
 
 - 
findChildpublic java.util.Optional<ComponentNode> findChild(java.util.List<java.lang.Integer> path) 
 - 
loadChildrenprotected java.util.List<AbstractNavTreeNode> loadChildren() Description copied from class:AbstractNavTreeNodeCalled before this node responds from any of the children-related TreeNode functions, if a list of children wasn't already set. Override to use lazy child loading.- Overrides:
- loadChildrenin class- AbstractNavTreeNode
 
 
- 
 
-