Class StyleClassFolderNode
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.perspective.designer.styles.StyleClassFolderNode
- All Implemented Interfaces:
Iterable<AbstractNavTreeNode>
,TreeNode
-
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
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, discardOverridesAction, icon, italic, log, model, name, parent, pasteAction, renameAction, selectionModel, text, thumbnail, tooltip
-
Constructor Summary
ConstructorsConstructorDescriptionStyleClassFolderNode
(DesignerContext context, ProjectResource resource) Child nodeStyleClassFolderNode
(DesignerContext context, ViewWorkspace workspace) Root node -
Method Summary
Modifier and TypeMethodDescriptionboolean
canDelete
(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.boolean
canDrag
(List<AbstractNavTreeNode> draggedChildren) Can the nodes controlled by this action handling node be dragged?boolean
canDrop
(AbstractNavTreeNode dropTarget, List<DataFlavor> flavors) boolean
canPaste
(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.protected AbstractNavTreeNode
createChildNode
(ProjectResource resource) doCopy
(List<? extends AbstractNavTreeNode> selectedChildren) Called when the copy action is performed.doCut
(List<? extends AbstractNavTreeNode> selectedChildren) Called when the cut action is performed.void
doDelete
(List<? extends AbstractNavTreeNode> children, AbstractNavTreeNode.DeleteReason reason) Called when the delete action is performed, if confirmDelete returned trueboolean
doPaste
(List<? extends AbstractNavTreeNode> selectedChildren, Transferable data, boolean isDrop) Called when the paste action is performedprotected List<ResourcePath>
Returns an alternate icon for when this node is expanded, if applicable.protected String
getInvalidNameErrorMessage
(String attemptedName) Returns the name of the desired workspace for this node.protected void
initPopupMenu
(JPopupMenu menu, TreePath[] paths, List<AbstractNavTreeNode> selection, int modifiers) Default implementation calls setupEditActions(), and then addEditActions()boolean
Override to return true if you want this node to be an edit action handler for its children.boolean
isValidName
(String aName) 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.void
Called when this node is selected in the treeprotected boolean
Returns true if the project resource is a child of mine.Methods inherited from class com.inductiveautomation.ignition.designer.navtree.model.FolderNode
addOverrideEnabledMenuItem, addRevertMenuItem, canPaste, getPath, getResourceType, install, isOverridden, isProtectedEnabled, isTopLevelNode, modifyOverrideAction, override, pastingOnSelf, project, 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, commitIfOpen, editDocumentation, gatherChildrenIds, getDeleteAction, getInheritanceString, 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, checkChildren, children, confirmDelete, createResourceCopy, debug, debug, dispatchSelectionEvent, expand, expandAndSelect, findChild, findCommonEditActionHandler, findDropHandler, findEditActionHandler, forceChildrenReload, getAllowsChildren, getChildAt, getChildCount, getClipboard, getDepth, getIcon, getIndex, getModel, getName, getParent, getSelectionModel, getSortOrder, getText, getThumbnail, getTooltip, isBold, isItalic, isLeaf, isModuleNode, isSelected, 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
-
Constructor Details
-
StyleClassFolderNode
Root node -
StyleClassFolderNode
Child node
-
-
Method Details
-
getWorkspaceName
Description copied from class:AbstractNavTreeNode
Returns 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:
getWorkspaceName
in classAbstractNavTreeNode
-
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 classFolderNode
-
createChildNode
- Specified by:
createChildNode
in classFolderNode
-
requiresRecreate
Description copied from class:FolderNode
Returns true if the project resource is a child of mine.- Overrides:
requiresRecreate
in classFolderNode
-
loadChildren
Description copied from class:AbstractNavTreeNode
Called 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:
loadChildren
in classFolderNode
-
onSelected
public void onSelected()Description copied from class:AbstractNavTreeNode
Called when this node is selected in the tree- Overrides:
onSelected
in classAbstractNavTreeNode
-
doCopy
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.
-
doCut
Description copied from class:AbstractNavTreeNode
Called when the cut action is performed.- Overrides:
doCut
in classAbstractNavTreeNode
- Returns:
- the current selection as a
Transferable
, or null if the cut failed. Will be added to the system clipboard.
-
canDelete
Description copied from class:AbstractNavTreeNode
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.- Overrides:
canDelete
in classAbstractResourceNavTreeNode
-
canPaste
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
-
canDrag
Description copied from class:AbstractNavTreeNode
Can the nodes controlled by this action handling node be dragged?- Overrides:
canDrag
in classAbstractNavTreeNode
-
doPaste
public boolean doPaste(List<? extends AbstractNavTreeNode> selectedChildren, Transferable data, boolean isDrop) Description copied from class:AbstractNavTreeNode
Called when the paste action is performed- Overrides:
doPaste
in classAbstractNavTreeNode
data
- 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.
-
isEditActionHandler
public boolean isEditActionHandler()Description copied from class:AbstractNavTreeNode
Override to return true if you want this node to be an edit action handler for its children.- Overrides:
isEditActionHandler
in classFolderNode
-
isValidName
- Overrides:
isValidName
in classAbstractNavTreeNode
-
getInvalidNameErrorMessage
- Overrides:
getInvalidNameErrorMessage
in classAbstractResourceNavTreeNode
-
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
-
getAdditionalExportIds
- Overrides:
getAdditionalExportIds
in classAbstractResourceNavTreeNode
-