Class WindowFolderNode
- java.lang.Object
- 
- com.inductiveautomation.ignition.designer.navtree.model.AbstractNavTreeNode
- 
- com.inductiveautomation.ignition.designer.navtree.model.AbstractResourceNavTreeNode
- 
- com.inductiveautomation.ignition.designer.navtree.model.FolderNode
- 
- com.inductiveautomation.factorypmi.designer.model.navtree.WindowFolderNode
 
 
 
 
- 
- All Implemented Interfaces:
- java.lang.Iterable<AbstractNavTreeNode>,- javax.swing.tree.TreeNode
 
 public class WindowFolderNode extends FolderNode 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class com.inductiveautomation.ignition.designer.navtree.model.FolderNodeFolderNode.FindReplaceAction, FolderNode.NewFolderAction
 - 
Nested classes/interfaces inherited from class com.inductiveautomation.ignition.designer.navtree.model.AbstractNavTreeNodeAbstractNavTreeNode.DeleteReason, AbstractNavTreeNode.PopupAction
 
- 
 - 
Field SummaryFields Modifier and Type Field Description static intSORT_ORDER- 
Fields inherited from class com.inductiveautomation.ignition.designer.navtree.model.FolderNodeexpandedIcon, newFolderAction, RESOURCE_COMPARATOR, resourceScope
 - 
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 Constructor Description WindowFolderNode(VisionDesignerImpl fpmi, ProjectResource folder)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanDrag(java.util.List<AbstractNavTreeNode> draggedChildren)Can the nodes controlled by this action handling node be dragged?booleancanDrop(AbstractNavTreeNode dropTarget, java.util.List<java.awt.datatransfer.DataFlavor> flavors)booleancanPaste(java.util.List<AbstractNavTreeNode> selectedChildren, java.awt.datatransfer.Transferable clipboard)Can this action handler handle a paste given the data flavors currently available in the clipboard? data may be null.protected AbstractNavTreeNodecreateChildNode(ProjectResource r)static WindowFolderNodecreateRootNode(VisionDesignerImpl fpmi)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 performedjavax.swing.IcongetExpandedIcon()Returns an alternate icon for when this node is expanded, if applicable.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.intgetSortOrder()Returns the relative sort order for peers.java.lang.StringgetWorkspaceName()Returns the name of the desired workspace for this node.protected voidinitPopupMenu(javax.swing.JPopupMenu menu, javax.swing.tree.TreePath[] paths, java.util.List<AbstractNavTreeNode> selection, int modifiers)Default implementation calls setupEditActions(), and then addEditActions()booleanisEditable()Override this and return true if you want your node's text to be editable.protected LoggerExnewLogger()voidonSelected()Called when this node is selected in the treeprotected voiduninstall()Called when the node is removed from the tree.- 
Methods inherited from class com.inductiveautomation.ignition.designer.navtree.model.FolderNodeaddOverrideEnabledMenuItem, addRevertMenuItem, canPaste, getPath, getResourceType, install, isEditActionHandler, isProtectedEnabled, isTopLevelNode, loadChildren, pastingOnSelf, project, setName, setupEditActions
 - 
Methods inherited from class com.inductiveautomation.ignition.designer.navtree.model.AbstractResourceNavTreeNodeaddBadges, addConcurrentUsersBadges, addDocumentationMenuItem, addEditActions, addExportMenuItem, addNotesBadge, addProtectMenuItem, alterName, canCopy, canDelete, commitIfOpen, editDocumentation, gatherChildrenIds, getIcon, getInvalidNameErrorMessage, getProjectResource, getResourceId, getResourcePath, isChanged, isInherited, isLocal, isOpen, isOverridden, isOverrideEnabled, isRestricted, isValid, onDoubleClick, onEdit, onResourceModified, open, revert, selectChild, setOverrideEnabled, setProtected, setRevertedResourcePath
 - 
Methods inherited from class com.inductiveautomation.ignition.designer.navtree.model.AbstractNavTreeNodecheckChildren, children, confirmDelete, createResourceCopy, debug, debug, dispatchSelectionEvent, expand, expandAndSelect, findChild, findCommonEditActionHandler, findDropHandler, findEditActionHandler, forceChildrenReload, getAllowsChildren, getChildAt, getChildCount, getClipboard, getDeleteAction, getDepth, getIndex, getModel, getName, getParent, getSelectionModel, getText, getThumbnail, getTooltip, isBold, isItalic, isLeaf, isSelected, isValidName, iterator, notifyChildNameChanged, onChildrenSelected, pathToRoot, recreate, recreate, refresh, reload, select, select, setBold, setChildren, setIcon, setItalic, setText, setThumbnail, setTooltip, showPopupMenu, toString, uninstallChildren, useThumbnailTooltip, visitIfLoaded
 
- 
 
- 
- 
- 
Field Detail- 
SORT_ORDERpublic static final int SORT_ORDER - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
WindowFolderNodepublic WindowFolderNode(VisionDesignerImpl fpmi, ProjectResource folder) 
 
- 
 - 
Method Detail- 
newLoggerprotected LoggerEx newLogger() - Overrides:
- newLoggerin class- AbstractNavTreeNode
 
 - 
getWorkspaceNamepublic java.lang.String getWorkspaceName() Description copied from class:AbstractNavTreeNodeReturns the name of the desired workspace for this node. Default behavior is to delegate to the parent. null mean's don't affect workspace selection.- Overrides:
- getWorkspaceNamein class- AbstractNavTreeNode
 
 - 
createRootNodepublic static WindowFolderNode createRootNode(VisionDesignerImpl fpmi) 
 - 
getSortOrderpublic int getSortOrder() Description copied from class:AbstractNavTreeNodeReturns the relative sort order for peers. Not all nav tree node parents will use this sort order, but the root node does. Nodes with equal sort orders will then be sorted by their titles. The default return value here is 0. The config menu node returns Integer.MIN_VALUE.- Overrides:
- getSortOrderin class- AbstractNavTreeNode
- Returns:
- relative sort order for peers
 
 - 
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.
 
 - 
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.
 
 - 
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
 
 - 
canPastepublic boolean canPaste(java.util.List<AbstractNavTreeNode> selectedChildren, java.awt.datatransfer.Transferable clipboard) 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
 
 - 
canDragpublic boolean canDrag(java.util.List<AbstractNavTreeNode> draggedChildren) Description copied from class:AbstractNavTreeNodeCan the nodes controlled by this action handling node be dragged?- Overrides:
- canDragin class- AbstractNavTreeNode
 
 - 
canDroppublic boolean canDrop(AbstractNavTreeNode dropTarget, java.util.List<java.awt.datatransfer.DataFlavor> flavors) - Overrides:
- canDropin class- AbstractNavTreeNode
 
 - 
onSelectedpublic void onSelected() Description copied from class:AbstractNavTreeNodeCalled when this node is selected in the tree- Overrides:
- onSelectedin 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- AbstractResourceNavTreeNode
 
 - 
uninstallprotected void uninstall() Description copied from class:AbstractNavTreeNodeCalled when the node is removed from the tree. Override to provide meaningful implementation.- Overrides:
- uninstallin class- FolderNode
 
 - 
getExpandedIconpublic javax.swing.Icon getExpandedIcon() Description copied from class:AbstractNavTreeNodeReturns an alternate icon for when this node is expanded, if applicable. Default implementation simply returns getIcon()- Overrides:
- getExpandedIconin class- FolderNode
 
 - 
createChildNodeprotected AbstractNavTreeNode createChildNode(ProjectResource r) - Specified by:
- createChildNodein class- FolderNode
 
 - 
initPopupMenuprotected void initPopupMenu(javax.swing.JPopupMenu menu, javax.swing.tree.TreePath[] paths, java.util.List<AbstractNavTreeNode> selection, int modifiers)Description copied from class:AbstractNavTreeNodeDefault implementation calls setupEditActions(), and then addEditActions()- Overrides:
- initPopupMenuin 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- AbstractResourceNavTreeNode
 
 
- 
 
-