Class ViewNode
java.lang.Object
com.inductiveautomation.ignition.designer.navtree.model.AbstractNavTreeNode
com.inductiveautomation.ignition.designer.navtree.model.AbstractResourceNavTreeNode
com.inductiveautomation.ignition.designer.tabbedworkspace.ResourceNode
com.inductiveautomation.perspective.designer.workspace.nav.ViewNode
- All Implemented Interfaces:
- Iterable<AbstractNavTreeNode>,- TreeNode
Created by carlg on 6/6/2017.
- 
Nested Class SummaryNested classes/interfaces inherited from class com.inductiveautomation.ignition.designer.navtree.model.AbstractResourceNavTreeNodeAbstractResourceNavTreeNode.OverrideResult, AbstractResourceNavTreeNode.OverrideResultStatusNested classes/interfaces inherited from class com.inductiveautomation.ignition.designer.navtree.model.AbstractNavTreeNodeAbstractNavTreeNode.DeleteReason, AbstractNavTreeNode.PopupAction
- 
Field SummaryFields inherited from class com.inductiveautomation.ignition.designer.tabbedworkspace.ResourceNodeworkspaceFields inherited from class com.inductiveautomation.ignition.designer.navtree.model.AbstractResourceNavTreeNodecontext, editDocumentationAction, editDocumentationMenuItem, exportAction, inheritedIcon, overrideAction, overrideEnabledAction, overrideEnabledMenuItem, protectedAction, protectedMenuItem, resourceId, resourcePath, restricted, revertAction, revertMenuItemFields inherited from class com.inductiveautomation.ignition.designer.navtree.model.AbstractNavTreeNodebold, children, childrenLoaded, copyAction, copyPathAction, cutAction, deleteAction, depth, discardOverridesAction, icon, italic, log, model, name, parent, pasteAction, renameAction, selectionModel, text, thumbnail, tooltip
- 
Constructor SummaryConstructorsConstructorDescriptionViewNode(DesignerContext context, ViewWorkspace workspace, ProjectResource resource) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddBadges(BadgeTreeCellRenderer renderer, boolean selected) Add 'badges' to indicate meta information about this nodebooleancanCopy(List<AbstractNavTreeNode> selectedChildren) Can this edit action handler handle the copy action, given its current selection? Note that if this andAbstractNavTreeNode.canDelete(java.util.List)both return true, the cut action will also be enabled.booleancanDelete(List<AbstractNavTreeNode> selectedChildren) Can this edit action handler handle the delete action, given its current selection? Note that if this andAbstractNavTreeNode.canCopy(java.util.List)both return true, the cut action will also be enabled.booleancanPaste(List<AbstractNavTreeNode> selectedChildren, Transferable data) Can this action handler handle a paste given the data flavors currently available in the clipboard? data may be null.booleanconfirmDelete(List<? extends AbstractNavTreeNode> selectedChildren) Used to confirm the delete.doCopy(List<? extends AbstractNavTreeNode> selectedChildren) Called when the copy action is performed.doCut(List<? extends AbstractNavTreeNode> selectedChildren) Called when the cut action is performed.voiddoDelete(List<? extends AbstractNavTreeNode> selectedChildren, AbstractNavTreeNode.DeleteReason reason) Called when the delete action is performed, if confirmDelete returned truebooleandoPaste(List<? extends AbstractNavTreeNode> selectedChildren, Transferable clipboardContents, boolean isDrop) Called when the paste action is performedprotected voidinitPopupMenu(JPopupMenu menu, TreePath[] paths, List<AbstractNavTreeNode> selection, int modifiers) Default implementation calls setupEditActions(), and then addEditActions()booleanOverride to return true if you want this node to be an edit action handler for its children.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.voidonChildrenSelected(List<TreePath> paths) Called when child nodes (deep) are selected under this node.protected voidonEditorClosed(ResourceEditor editor) protected voidonEditorOpened(ResourceEditor resourceEditor) voidvoidonPipeSelectionChanged(PipeSelectionChangeEvent pipeSelectionChangeEvent) protected voidonResourceModified(ProjectResource resource) AbstractResourceNavTreeNode adds a project listener to listen for changes to this node's resource.voidCalled when this node is selected in the treevoidprotected voidCalled when the node is removed from the tree.Methods inherited from class com.inductiveautomation.ignition.designer.tabbedworkspace.ResourceNodecloseAndCommit, commitIfOpen, getClosedIcon, getOpenIcon, getProjectResource, install, isOpen, onEditorSelected, onEditorUnselected, openMethods inherited from class com.inductiveautomation.ignition.designer.navtree.model.AbstractResourceNavTreeNodeaddActionsForInheritedNodes, addConcurrentUsersBadges, addDeleteOrDiscardOverridesMenuItem, addDocumentationMenuItem, addEditActions, addExportMenuItem, addInheritedBadge, addNotesBadge, addOverriddenBadge, addOverrideEnabledMenuItem, addOverrideOrDiscardOverridesMenuItem, addProtectMenuItem, addRevertMenuItem, alterName, editDocumentation, gatherChildrenIds, getAdditionalExportIds, getDeleteAction, getInheritanceString, getInvalidNameErrorMessage, getPopupActions, getResourceId, getResourcePath, inherited, isChanged, isEditable, isInherited, isLocal, isOverridden, isOverrideEnabled, isProtectedEnabled, isRestricted, isValid, modifyOverrideAction, notInherited, onDoubleClick, onEdit, overridden, override, revert, selectChild, setOverrideEnabled, setProtected, setRevertedResourcePath, setupEditActionsMethods inherited from class com.inductiveautomation.ignition.designer.navtree.model.AbstractNavTreeNodeaddEditActions, canDrag, canDrop, checkChildren, children, createResourceCopy, debug, debug, dispatchSelectionEvent, expand, expandAndSelect, findChild, findCommonEditActionHandler, findDropHandler, findEditActionHandler, forceChildrenReload, getAllowsChildren, getChildAt, getChildCount, getClipboard, getDepth, getExpandedIcon, getIcon, getIndex, getModel, getName, getParent, getSelectionModel, getSortOrder, getText, getThumbnail, getTooltip, getWorkspaceName, isBold, isItalic, isLeaf, isModuleNode, isSelected, isTopLevelNode, isValidName, iterator, newLogger, notifyChildNameChanged, pathToRoot, performOnAllChildren, recreate, recreate, refresh, reload, select, select, setBold, setChildren, setIcon, setItalic, setName, setText, setThumbnail, setTooltip, showPopupMenu, toString, uninstallChildren, useThumbnailTooltip, visitIfLoadedMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.IterableforEach, spliterator
- 
Constructor Details- 
ViewNode
 
- 
- 
Method Details
- 
onResourceModifiedDescription copied from class:AbstractResourceNavTreeNodeAbstractResourceNavTreeNode adds a project listener to listen for changes to this node's resource. When it is modified, this will be invoked. If you override, you should invoke super() because it controls the node's italic state for modified resources- Overrides:
- onResourceModifiedin class- AbstractResourceNavTreeNode
 
- 
onPipeModeChange
- 
onPipeSelectionChanged
- 
onSelectionChanged
- 
onSelectedpublic void onSelected()Description copied from class:AbstractNavTreeNodeCalled when this node is selected in the tree- Overrides:
- onSelectedin class- ResourceNode
 
- 
onChildrenSelectedDescription copied from class:AbstractNavTreeNodeCalled when child nodes (deep) are selected under this node.- Overrides:
- onChildrenSelectedin class- AbstractNavTreeNode
- Parameters:
- paths- the children selected when the parent node is selected
 
- 
loadChildrenDescription 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
 
- 
onEditorOpened- Overrides:
- onEditorOpenedin class- ResourceNode
 
- 
onEditorClosed- Overrides:
- onEditorClosedin class- ResourceNode
 
- 
uninstallprotected void uninstall()Description copied from class:AbstractNavTreeNodeCalled when the node is removed from the tree. Override to provide meaningful implementation.- Overrides:
- uninstallin class- ResourceNode
 
- 
initPopupMenuprotected void initPopupMenu(JPopupMenu menu, TreePath[] paths, List<AbstractNavTreeNode> selection, int modifiers) Description copied from class:AbstractNavTreeNodeDefault implementation calls setupEditActions(), and then addEditActions()- Overrides:
- initPopupMenuin class- AbstractNavTreeNode
 
- 
isEditActionHandlerpublic boolean isEditActionHandler()Description copied from class:AbstractNavTreeNodeOverride to return true if you want this node to be an edit action handler for its children.- Overrides:
- isEditActionHandlerin class- AbstractResourceNavTreeNode
 
- 
canDeleteDescription copied from class:AbstractNavTreeNodeCan this edit action handler handle the delete action, given its current selection? Note that if this andAbstractNavTreeNode.canCopy(java.util.List)both return true, the cut action will also be enabled.- Overrides:
- canDeletein class- AbstractResourceNavTreeNode
 
- 
canCopyDescription copied from class:AbstractNavTreeNodeCan this edit action handler handle the copy action, given its current selection? Note that if this andAbstractNavTreeNode.canDelete(java.util.List)both return true, the cut action will also be enabled.- Overrides:
- canCopyin class- AbstractResourceNavTreeNode
 
- 
canPasteDescription copied from class:AbstractNavTreeNodeCan this action handler handle a paste given the data flavors currently available in the clipboard? data may be null.- Overrides:
- canPastein class- AbstractNavTreeNode
 
- 
doCopyDescription copied from class:AbstractNavTreeNodeCalled when the copy action is performed.- Overrides:
- doCopyin class- AbstractNavTreeNode
- Returns:
- the current selection as a Transferable, or null if the copy failed. Will be added to the system clipboard.
 
- 
doCutDescription copied from class:AbstractNavTreeNodeCalled when the cut action is performed.- Overrides:
- doCutin class- AbstractNavTreeNode
- Returns:
- the current selection as a Transferable, or null if the cut failed. Will be added to the system clipboard.
 
- 
doPastepublic boolean doPaste(List<? extends AbstractNavTreeNode> selectedChildren, Transferable clipboardContents, boolean isDrop) Description copied from class:AbstractNavTreeNodeCalled when the paste action is performed- Overrides:
- doPastein class- AbstractNavTreeNode
- clipboardContents- The current contents of the clipboard to paste.
- isDrop- Indicates whether this paste originated from a drop action. If false, originated from a keyboard or menu paste shortcut.
- Returns:
- whether or not the paste successfully completed.
 
- 
confirmDeleteDescription copied from class:AbstractNavTreeNodeUsed to confirm the delete. If true is returned, doDelete will be called.- Overrides:
- confirmDeletein class- AbstractNavTreeNode