Class ViewFolderNode
- 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.ignition.designer.tabbedworkspace.ResourceFolderNode
-
- com.inductiveautomation.perspective.designer.workspace.nav.ViewFolderNode
-
- All Implemented Interfaces:
java.lang.Iterable<AbstractNavTreeNode>
,javax.swing.tree.TreeNode
public class ViewFolderNode extends ResourceFolderNode
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.inductiveautomation.ignition.designer.navtree.model.FolderNode
FolderNode.FindReplaceAction, FolderNode.NewFolderAction
-
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.tabbedworkspace.ResourceFolderNode
workspace
-
Fields inherited from class com.inductiveautomation.ignition.designer.navtree.model.FolderNode
expandedIcon, newFolderAction, RESOURCE_COMPARATOR, resourceScope
-
Fields inherited from class com.inductiveautomation.ignition.designer.navtree.model.AbstractResourceNavTreeNode
context, editDocumentationAction, editDocumentationMenuItem, exportAction, inheritedIcon, overrideAction, overrideEnabledAction, overrideEnabledMenuItem, protectedAction, protectedMenuItem, resourceId, resourcePath, restricted, revertAction, revertMenuItem
-
Fields inherited from class com.inductiveautomation.ignition.designer.navtree.model.AbstractNavTreeNode
bold, children, childrenLoaded, copyAction, copyPathAction, cutAction, deleteAction, depth, icon, italic, log, model, name, parent, pasteAction, renameAction, selectionModel, text, thumbnail, tooltip
-
-
Constructor Summary
Constructors Constructor Description ViewFolderNode(DesignerContext context, ViewWorkspace workspace)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canCopy(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.protected AbstractNavTreeNode
createChildNode(ProjectResource resource)
java.awt.datatransfer.Transferable
doCopy(java.util.List<? extends AbstractNavTreeNode> selectedChildren)
Called when the copy action is performed.javax.swing.Icon
getExpandedIcon()
Returns an alternate icon for when this node is expanded, if applicable.protected java.lang.Iterable<AbstractNavTreeNode.PopupAction>
getPopupActions()
Provide a list ofPopupAction
s 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.selection
andAbstractNavTreeNode.PopupAction.actionHandler
set.protected void
initPopupMenu(javax.swing.JPopupMenu menu, javax.swing.tree.TreePath[] paths, java.util.List<AbstractNavTreeNode> selection, int modifiers)
Default implementation calls setupEditActions(), and then addEditActions()-
Methods inherited from class com.inductiveautomation.ignition.designer.tabbedworkspace.ResourceFolderNode
canDrag, canDrop, canPaste, doCut, doDelete, doPaste, getSortOrder, getWorkspaceName, onSelected
-
Methods inherited from class com.inductiveautomation.ignition.designer.navtree.model.FolderNode
addOverrideEnabledMenuItem, addRevertMenuItem, canPaste, getPath, getResourceType, install, isEditActionHandler, isProtectedEnabled, isTopLevelNode, loadChildren, pastingOnSelf, project, requiresRecreate, setName, setupEditActions, uninstall
-
Methods inherited from class com.inductiveautomation.ignition.designer.navtree.model.AbstractResourceNavTreeNode
addBadges, addConcurrentUsersBadges, addDocumentationMenuItem, addEditActions, addExportMenuItem, addNotesBadge, addProtectMenuItem, alterName, canDelete, commitIfOpen, editDocumentation, gatherChildrenIds, getAdditionalExportIds, getIcon, getInvalidNameErrorMessage, getProjectResource, getResourceId, getResourcePath, isChanged, isEditable, 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.AbstractNavTreeNode
checkChildren, 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, newLogger, notifyChildNameChanged, onChildrenSelected, pathToRoot, recreate, recreate, refresh, reload, select, select, setBold, setChildren, setIcon, setItalic, setText, setThumbnail, setTooltip, showPopupMenu, toString, uninstallChildren, useThumbnailTooltip, visitIfLoaded
-
-
-
-
Constructor Detail
-
ViewFolderNode
public ViewFolderNode(DesignerContext context, ViewWorkspace workspace)
-
-
Method Detail
-
getExpandedIcon
public javax.swing.Icon getExpandedIcon()
Description copied from class:AbstractNavTreeNode
Returns an alternate icon for when this node is expanded, if applicable. Default implementation simply returns getIcon()- Overrides:
getExpandedIcon
in classResourceFolderNode
-
canCopy
public boolean canCopy(java.util.List<AbstractNavTreeNode> selectedChildren)
Description copied from class:AbstractNavTreeNode
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.- Overrides:
canCopy
in classAbstractResourceNavTreeNode
-
doCopy
public java.awt.datatransfer.Transferable doCopy(java.util.List<? extends AbstractNavTreeNode> selectedChildren)
Description copied from class:AbstractNavTreeNode
Called when the copy action is performed.- Overrides:
doCopy
in classResourceFolderNode
- Returns:
- the current selection as a
Transferable
, or null if the copy failed. Will be added to the system clipboard.
-
createChildNode
protected AbstractNavTreeNode createChildNode(ProjectResource resource)
- Overrides:
createChildNode
in classResourceFolderNode
-
getPopupActions
protected java.lang.Iterable<AbstractNavTreeNode.PopupAction> getPopupActions()
Description copied from class:AbstractNavTreeNode
Provide a list ofPopupAction
s 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.selection
andAbstractNavTreeNode.PopupAction.actionHandler
set.- Overrides:
getPopupActions
in classAbstractResourceNavTreeNode
-
initPopupMenu
protected void initPopupMenu(javax.swing.JPopupMenu menu, javax.swing.tree.TreePath[] paths, java.util.List<AbstractNavTreeNode> selection, int modifiers)
Description copied from class:AbstractNavTreeNode
Default implementation calls setupEditActions(), and then addEditActions()- Overrides:
initPopupMenu
in classResourceFolderNode
-
-