Class AbstractTopLevelContainerNode
- java.lang.Object
- 
- com.inductiveautomation.ignition.designer.navtree.model.AbstractNavTreeNode
- 
- com.inductiveautomation.ignition.designer.navtree.model.AbstractResourceNavTreeNode
- 
- com.inductiveautomation.factorypmi.designer.model.navtree.AbstractTopLevelContainerNode
 
 
 
- 
- All Implemented Interfaces:
- DesignableWorkspaceListener,- java.lang.Iterable<AbstractNavTreeNode>,- javax.swing.tree.TreeNode
 - Direct Known Subclasses:
- TemplateNode,- WindowNode
 
 public abstract class AbstractTopLevelContainerNode extends AbstractResourceNavTreeNode implements DesignableWorkspaceListener 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class com.inductiveautomation.ignition.designer.navtree.model.AbstractNavTreeNodeAbstractNavTreeNode.DeleteReason, AbstractNavTreeNode.PopupAction
 
- 
 - 
Field SummaryFields Modifier and Type Field Description protected TopLevelContainercontainerprotected VisionDesignerImplvisionprotected WindowWorkspaceworkspace- 
Fields inherited from class com.inductiveautomation.ignition.designer.navtree.model.AbstractResourceNavTreeNodecontext, editDocumentationAction, editDocumentationMenuItem, exportAction, inheritedIcon, overrideAction, overrideEnabledAction, overrideEnabledMenuItem, protectedAction, protectedMenuItem, resourceId, resourcePath, restricted, revertAction, revertMenuItem
 - 
Fields inherited from class com.inductiveautomation.ignition.designer.navtree.model.AbstractNavTreeNodebold, children, childrenLoaded, copyAction, copyPathAction, cutAction, deleteAction, depth, icon, italic, log, model, name, parent, pasteAction, renameAction, selectionModel, text, thumbnail, tooltip
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedAbstractTopLevelContainerNode(VisionDesignerImpl vision, ProjectResource resource, ResourceDescriptor descriptor)
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidaddListeners(TopLevelContainer container)booleancanCopy(java.util.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(java.util.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(java.util.List<AbstractNavTreeNode> selectedChildren, java.awt.datatransfer.Transferable data)Can this action handler handle a paste given the data flavors currently available in the clipboard? data may be null.voidcommitIfOpen()Implement this to commit the resource that is open for editing.booleanconfirmDelete(java.util.List<? extends AbstractNavTreeNode> selectedChildren)Used to confirm the delete.voidcontainerClosed(DesignableContainer container)voidcontainerOpened(DesignableContainer container)voidcontainerSelected(DesignableContainer container)java.awt.datatransfer.TransferabledoCopy(java.util.List<? extends AbstractNavTreeNode> selectedChildren)Called when the copy action is performed.java.awt.datatransfer.TransferabledoCut(java.util.List<? extends AbstractNavTreeNode> selectedChildren)Called when the cut action is performed.voiddoDelete(java.util.List<? extends AbstractNavTreeNode> selectedChildren, AbstractNavTreeNode.DeleteReason reason)Called when the delete action is performed, if confirmDelete returned truebooleandoPaste(java.util.List<? extends AbstractNavTreeNode> selectedChildren, java.awt.datatransfer.Transferable clipboardContents, boolean isDrop)Called when the paste action is performedprotected abstract AbstractNavTreeNodefindChild(java.awt.Component c)booleangetAllowsChildren()VisionDesignerInterfacegetVision()voidinstall(AbstractNavTreeNode parent)booleanisContainerOpen()booleanisEditActionHandler()Override to return true if you want this node to be an edit action handler for its children.protected booleanisOpen()Override this to indicate whether or not this resource is open for editingvoiditemSelectionChanged(java.util.List<javax.swing.JComponent> newSelection)protected booleanmatches(DesignableContainer container)voidonChildrenSelected(java.util.List<javax.swing.tree.TreePath> paths)Called when child nodes (deep) are selected under this node.voidonSelected()Called when this node is selected in the treeprotected abstract voidremoveListeners(TopLevelContainer container)protected voidsetContainer(TopLevelContainer container, boolean notify)voiduninstall()Called when the node is removed from the tree.- 
Methods inherited from class com.inductiveautomation.ignition.designer.navtree.model.AbstractResourceNavTreeNodeaddBadges, addConcurrentUsersBadges, addDocumentationMenuItem, addEditActions, addExportMenuItem, addNotesBadge, addOverrideEnabledMenuItem, addProtectMenuItem, addRevertMenuItem, alterName, editDocumentation, gatherChildrenIds, getIcon, getInvalidNameErrorMessage, getPopupActions, getProjectResource, getResourceId, getResourcePath, isChanged, isEditable, isInherited, isLocal, isOverridden, isOverrideEnabled, isProtectedEnabled, isRestricted, isValid, onDoubleClick, onEdit, onResourceModified, open, revert, selectChild, setOverrideEnabled, setProtected, setRevertedResourcePath, setupEditActions
 - 
Methods inherited from class com.inductiveautomation.ignition.designer.navtree.model.AbstractNavTreeNodecanDrag, canDrop, checkChildren, children, createResourceCopy, debug, debug, dispatchSelectionEvent, expand, expandAndSelect, findChild, findCommonEditActionHandler, findDropHandler, findEditActionHandler, forceChildrenReload, getChildAt, getChildCount, getClipboard, getDeleteAction, getDepth, getExpandedIcon, getIndex, getModel, getName, getParent, getSelectionModel, getSortOrder, getText, getThumbnail, getTooltip, getWorkspaceName, initPopupMenu, isBold, isItalic, isLeaf, isSelected, isTopLevelNode, isValidName, iterator, loadChildren, newLogger, notifyChildNameChanged, pathToRoot, recreate, recreate, refresh, reload, select, select, setBold, setChildren, setIcon, setItalic, setName, setText, setThumbnail, setTooltip, showPopupMenu, toString, uninstallChildren, useThumbnailTooltip, visitIfLoaded
 
- 
 
- 
- 
- 
Field Detail- 
visionprotected VisionDesignerImpl vision 
 - 
workspaceprotected WindowWorkspace workspace 
 - 
containerprotected TopLevelContainer container 
 
- 
 - 
Constructor Detail- 
AbstractTopLevelContainerNodeprotected AbstractTopLevelContainerNode(VisionDesignerImpl vision, ProjectResource resource, ResourceDescriptor descriptor) 
 
- 
 - 
Method Detail- 
getVisionpublic VisionDesignerInterface getVision() 
 - 
installpublic void install(AbstractNavTreeNode parent) - Overrides:
- installin class- AbstractResourceNavTreeNode
 
 - 
uninstallpublic void uninstall() Description copied from class:AbstractNavTreeNodeCalled when the node is removed from the tree. Override to provide meaningful implementation.- Overrides:
- uninstallin class- AbstractResourceNavTreeNode
 
 - 
removeListenersprotected abstract void removeListeners(TopLevelContainer container) 
 - 
addListenersprotected abstract void addListeners(TopLevelContainer container) 
 - 
matchesprotected boolean matches(DesignableContainer container) 
 - 
containerClosedpublic void containerClosed(DesignableContainer container) - Specified by:
- containerClosedin interface- DesignableWorkspaceListener
 
 - 
containerOpenedpublic void containerOpened(DesignableContainer container) - Specified by:
- containerOpenedin interface- DesignableWorkspaceListener
 
 - 
containerSelectedpublic void containerSelected(DesignableContainer container) - Specified by:
- containerSelectedin interface- DesignableWorkspaceListener
 
 - 
itemSelectionChangedpublic void itemSelectionChanged(java.util.List<javax.swing.JComponent> newSelection) - Specified by:
- itemSelectionChangedin interface- DesignableWorkspaceListener
 
 - 
onSelectedpublic void onSelected() Description copied from class:AbstractNavTreeNodeCalled when this node is selected in the tree- Overrides:
- onSelectedin class- AbstractNavTreeNode
 
 - 
onChildrenSelectedpublic void onChildrenSelected(java.util.List<javax.swing.tree.TreePath> paths) Description 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
 
 - 
findChildprotected abstract AbstractNavTreeNode findChild(java.awt.Component c) 
 - 
setContainerprotected void setContainer(TopLevelContainer container, boolean notify) 
 - 
getAllowsChildrenpublic boolean getAllowsChildren() - Specified by:
- getAllowsChildrenin interface- javax.swing.tree.TreeNode
- Overrides:
- getAllowsChildrenin class- AbstractNavTreeNode
 
 - 
isContainerOpenpublic boolean isContainerOpen() 
 - 
isOpenprotected boolean isOpen() Description copied from class:AbstractResourceNavTreeNodeOverride this to indicate whether or not this resource is open for editing- Overrides:
- isOpenin class- AbstractResourceNavTreeNode
 
 - 
commitIfOpenpublic void commitIfOpen() Description copied from class:AbstractResourceNavTreeNodeImplement this to commit the resource that is open for editing.- Overrides:
- commitIfOpenin class- AbstractResourceNavTreeNode
 
 - 
canCopypublic boolean canCopy(java.util.List<AbstractNavTreeNode> selectedChildren) Description 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
 
 - 
canDeletepublic boolean canDelete(java.util.List<AbstractNavTreeNode> selectedChildren) Description 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
 
 - 
canPastepublic boolean canPaste(java.util.List<AbstractNavTreeNode> selectedChildren, java.awt.datatransfer.Transferable data) Description 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
 
 - 
doCopypublic java.awt.datatransfer.Transferable doCopy(java.util.List<? extends AbstractNavTreeNode> selectedChildren) Description 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.
 
 - 
doCutpublic java.awt.datatransfer.Transferable doCut(java.util.List<? extends AbstractNavTreeNode> selectedChildren) Description 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.
 
 - 
doDeletepublic void doDelete(java.util.List<? extends AbstractNavTreeNode> selectedChildren, AbstractNavTreeNode.DeleteReason reason) Description copied from class:AbstractNavTreeNodeCalled when the delete action is performed, if confirmDelete returned true- Overrides:
- doDeletein class- AbstractNavTreeNode
 
 - 
confirmDeletepublic boolean confirmDelete(java.util.List<? extends AbstractNavTreeNode> selectedChildren) Description copied from class:AbstractNavTreeNodeUsed to confirm the delete. If true is returned, doDelete will be called.- Overrides:
- confirmDeletein class- AbstractNavTreeNode
 
 - 
doPastepublic boolean doPaste(java.util.List<? extends AbstractNavTreeNode> selectedChildren, java.awt.datatransfer.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.
 
 - 
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- AbstractNavTreeNode
 
 
- 
 
-