Class ComponentNode
java.lang.Object
com.inductiveautomation.ignition.designer.navtree.model.AbstractNavTreeNode
com.inductiveautomation.perspective.designer.workspace.nav.ComponentNode
- All Implemented Interfaces:
Iterable<AbstractNavTreeNode>,TreeNode
Created by carlg on 6/13/2017.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.inductiveautomation.ignition.designer.navtree.model.AbstractNavTreeNode
AbstractNavTreeNode.DeleteReason, AbstractNavTreeNode.PopupAction -
Field Summary
Fields inherited from class com.inductiveautomation.ignition.designer.navtree.model.AbstractNavTreeNode
bold, children, childrenLoaded, copyAction, copyPathAction, cutAction, depth, discardOverridesAction, icon, italic, log, model, name, parent, pasteAction, renameAction, selectionModel, text, thumbnail, tooltip -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBadges(BadgeTreeCellRenderer renderer, boolean selected) Add 'badges' to indicate meta information about this nodeprotected voidaddEditActions(JPopupMenu menu) protected AbstractNavTreeNode.PopupActiongetPath()protected Iterable<AbstractNavTreeNode.PopupAction>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) booleanOverride this and return true if you want your node's text to be editable.protected List<AbstractNavTreeNode>Called before this node responds from any of the children-related TreeNode functions, if a list of children wasn't already set.protected voidCalled back by {AbstractNavTreeNode.setName(String)so the parent can re-sort its children if necessary.voidvoidCalled after this node has been edited in the tree.protected voidCalled when the node is removed from the tree.Methods inherited from class com.inductiveautomation.ignition.designer.navtree.model.AbstractNavTreeNode
addEditActions, canCopy, 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, isModuleNode, isRestricted, isSelected, isTopLevelNode, isValidName, iterator, newLogger, onChildrenSelected, onDoubleClick, onSelected, pathToRoot, performOnAllChildren, recreate, recreate, refresh, reload, select, select, setBold, setChildren, setIcon, setItalic, setName, setText, setThumbnail, setTooltip, setupEditActions, showPopupMenu, toString, uninstallChildren, useThumbnailTooltip, visitIfLoadedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ComponentNode
-
-
Method Details
-
getPipesFolderNode
-
getEditor
-
uninstall
protected void uninstall()Description copied from class:AbstractNavTreeNodeCalled when the node is removed from the tree. Override to provide meaningful implementation.- Overrides:
uninstallin classAbstractNavTreeNode
-
addEditActions
- Overrides:
addEditActionsin classAbstractNavTreeNode
-
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 classAbstractNavTreeNode
-
getDeleteAction
- Overrides:
getDeleteActionin classAbstractNavTreeNode
-
isEditable
public 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 classAbstractNavTreeNode
-
onEdit
Description copied from class:AbstractNavTreeNodeCalled after this node has been edited in the tree.- Overrides:
onEditin classAbstractNavTreeNode
-
onDeepSelectionChanged
-
getPath
-
findChild
-
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 classAbstractNavTreeNode
-