Class ClientScriptFolderNode
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.workspace.nav.ClientScriptFolderNode
- All Implemented Interfaces:
Iterable<AbstractNavTreeNode>
,TreeNode
Folder node for managing multi-event client scripts of the specified resource type.
-
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.AbstractResourceNavTreeNode
AbstractResourceNavTreeNode.OverrideResult, AbstractResourceNavTreeNode.OverrideResultStatus
Nested classes/interfaces inherited from class com.inductiveautomation.ignition.designer.navtree.model.AbstractNavTreeNode
AbstractNavTreeNode.DeleteReason, AbstractNavTreeNode.PopupAction
-
Field Summary
FieldsFields 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, discardOverridesAction, icon, italic, log, model, name, parent, pasteAction, renameAction, selectionModel, text, thumbnail, tooltip
-
Constructor Summary
ConstructorsConstructorDescriptionClientScriptFolderNode
(WindowWorkspace workspace, ResourceType resourceType, String titleKey, Supplier<Consumer<ResourceBuilder>> defaultResourceBuilder) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canPaste
(List<AbstractNavTreeNode> selectedChildren, @Nullable Transferable data) Can this action handler handle a paste given the data flavors currently available in the clipboard? data may be null.protected AbstractNavTreeNode
createChildNode
(Resource resource) @Nullable Transferable
doCopy
(List<? extends AbstractNavTreeNode> selectedChildren) Called when the copy action is performed.void
doDelete
(List<? extends AbstractNavTreeNode> selectedChildren, AbstractNavTreeNode.DeleteReason reason) Called when the delete action is performed, if confirmDelete returned trueboolean
doPaste
(List<? extends AbstractNavTreeNode> selectedChildren, Transferable clipboardContents, boolean isDrop) Called when the paste action is performedprotected void
initPopupMenu
(JPopupMenu menu, TreePath[] paths, List<AbstractNavTreeNode> selection, int modifiers) Default implementation calls setupEditActions(), and then addEditActions()void
Called when this node is selected in the treeMethods inherited from class com.inductiveautomation.ignition.designer.navtree.model.FolderNode
addOverrideEnabledMenuItem, addRevertMenuItem, canPaste, getExpandedIcon, getPath, getResourceType, install, isEditActionHandler, isOverridden, isProtectedEnabled, isTopLevelNode, loadChildren, modifyOverrideAction, override, pastingOnSelf, project, requiresRecreate, setName, setupEditActions, uninstall
Methods inherited from class com.inductiveautomation.ignition.designer.navtree.model.AbstractResourceNavTreeNode
addActionsForInheritedNodes, addBadges, addConcurrentUsersBadges, addDeleteOrDiscardOverridesMenuItem, addDocumentationMenuItem, addEditActions, addExportMenuItem, addInheritedBadge, addNotesBadge, addOverriddenBadge, addOverrideOrDiscardOverridesMenuItem, addProtectMenuItem, alterName, canCopy, canDelete, commitIfOpen, editDocumentation, gatherChildrenIds, getAdditionalExportIds, getDeleteAction, getInheritanceString, getInvalidNameErrorMessage, getPopupActions, getProjectResource, getResourceId, getResourcePath, inherited, isChanged, isEditable, isInherited, isLocal, isOpen, isOverrideEnabled, isRestricted, isValid, notInherited, onDoubleClick, onEdit, onResourceModified, open, overridden, revert, selectChild, setOverrideEnabled, setProtected, setRevertedResourcePath
Methods inherited from class com.inductiveautomation.ignition.designer.navtree.model.AbstractNavTreeNode
addEditActions, canDrag, canDrop, checkChildren, children, confirmDelete, createResourceCopy, debug, debug, dispatchSelectionEvent, doCut, expand, expandAndSelect, findChild, findCommonEditActionHandler, findDropHandler, findEditActionHandler, forceChildrenReload, getAllowsChildren, getChildAt, getChildCount, getClipboard, getDepth, getIcon, getIndex, getModel, getName, getParent, getSelectionModel, getSortOrder, getText, getThumbnail, getTooltip, getWorkspaceName, isBold, isItalic, isLeaf, isModuleNode, isSelected, isValidName, iterator, newLogger, notifyChildNameChanged, onChildrenSelected, pathToRoot, performOnAllChildren, recreate, recreate, refresh, reload, select, select, setBold, setChildren, setIcon, setItalic, setText, setThumbnail, setTooltip, showPopupMenu, toString, uninstallChildren, useThumbnailTooltip, visitIfLoaded
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
newResourceIcon
-
-
Constructor Details
-
ClientScriptFolderNode
public ClientScriptFolderNode(WindowWorkspace workspace, ResourceType resourceType, String titleKey, Supplier<Consumer<ResourceBuilder>> defaultResourceBuilder)
-
-
Method Details
-
doCopy
@Nullable public @Nullable Transferable doCopy(List<? extends AbstractNavTreeNode> selectedChildren) Description copied from class:AbstractNavTreeNode
Called when the copy action is performed.- Overrides:
doCopy
in classAbstractNavTreeNode
- Returns:
- the current selection as a
Transferable
, or null if the copy failed. Will be added to the system clipboard.
-
canPaste
public boolean canPaste(List<AbstractNavTreeNode> selectedChildren, @Nullable @Nullable Transferable data) Description copied from class:AbstractNavTreeNode
Can this action handler handle a paste given the data flavors currently available in the clipboard? data may be null.- Overrides:
canPaste
in classAbstractNavTreeNode
-
doPaste
public boolean doPaste(List<? extends AbstractNavTreeNode> selectedChildren, Transferable clipboardContents, boolean isDrop) Description copied from class:AbstractNavTreeNode
Called when the paste action is performed- Overrides:
doPaste
in classAbstractNavTreeNode
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.
-
createChildNode
- Specified by:
createChildNode
in classFolderNode
-
initPopupMenu
protected void initPopupMenu(JPopupMenu menu, TreePath[] paths, List<AbstractNavTreeNode> selection, int modifiers) Description copied from class:AbstractNavTreeNode
Default implementation calls setupEditActions(), and then addEditActions()- Overrides:
initPopupMenu
in classAbstractNavTreeNode
-
onSelected
public void onSelected()Description copied from class:AbstractNavTreeNode
Called when this node is selected in the tree- Overrides:
onSelected
in classAbstractNavTreeNode
-