Class ResourceNode
java.lang.Object
com.inductiveautomation.ignition.designer.navtree.model.AbstractNavTreeNode
com.inductiveautomation.ignition.designer.navtree.model.AbstractResourceNavTreeNode
com.inductiveautomation.ignition.designer.tabbedworkspace.ResourceNode
- All Implemented Interfaces:
Iterable<AbstractNavTreeNode>,TreeNode
- Direct Known Subclasses:
NamedQueryNode,ReportNode,StylesheetNode,ViewNode
-
Nested Class Summary
Nested classes/interfaces inherited from class com.inductiveautomation.ignition.designer.navtree.model.AbstractResourceNavTreeNode
AbstractResourceNavTreeNode.OverrideResult, AbstractResourceNavTreeNode.OverrideResultStatusNested 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.AbstractResourceNavTreeNode
context, editDocumentationAction, editDocumentationMenuItem, exportAction, inheritedIcon, overrideAction, overrideEnabledAction, overrideEnabledMenuItem, protectedAction, protectedMenuItem, resourceId, resourcePath, restricted, revertAction, revertMenuItemFields 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
ConstructorsConstructorDescriptionResourceNode(DesignerContext context, TabbedResourceWorkspace workspace, ProjectResource resource) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidImplement this to commit the resource that is open for editing.protected Iconprotected IconThe ProjectResource that this node representsvoidinstall(AbstractNavTreeNode parent) protected booleanisOpen()Override this to indicate whether or not this resource is open for editingprotected voidonEditorClosed(ResourceEditor editor) protected voidonEditorOpened(ResourceEditor editor) protected voidonEditorSelected(ResourceEditor editor) Called whenever the ResourceEditor for this resource has been opened or selected in the tabbed workspace.protected voidvoidCalled when this node is selected in the treeprotected voidopen()Implement this to open this resource up for editingprotected voidCalled when the node is removed from the tree.Methods inherited from class com.inductiveautomation.ignition.designer.navtree.model.AbstractResourceNavTreeNode
addActionsForInheritedNodes, addBadges, addConcurrentUsersBadges, addDeleteOrDiscardOverridesMenuItem, addDocumentationMenuItem, addEditActions, addExportMenuItem, addInheritedBadge, addNotesBadge, addOverriddenBadge, addOverrideEnabledMenuItem, addOverrideOrDiscardOverridesMenuItem, addProtectMenuItem, addRevertMenuItem, alterName, canCopy, canDelete, editDocumentation, gatherChildrenIds, getAdditionalExportIds, getDeleteAction, getInheritanceString, getInvalidNameErrorMessage, getPopupActions, getResourceId, getResourcePath, inherited, isChanged, isEditable, isEditActionHandler, isInherited, isLocal, isOverridden, isOverrideEnabled, isProtectedEnabled, isRestricted, isValid, modifyOverrideAction, notInherited, onDoubleClick, onEdit, onResourceModified, overridden, override, revert, selectChild, setOverrideEnabled, setProtected, setRevertedResourcePath, setupEditActionsMethods inherited from class com.inductiveautomation.ignition.designer.navtree.model.AbstractNavTreeNode
addEditActions, canDrag, canDrop, canPaste, checkChildren, children, confirmDelete, createResourceCopy, debug, debug, dispatchSelectionEvent, doCopy, doCut, doDelete, doPaste, expand, expandAndSelect, findChild, findCommonEditActionHandler, findDropHandler, findEditActionHandler, forceChildrenReload, getAllowsChildren, getChildAt, getChildCount, getClipboard, getDepth, getExpandedIcon, getIcon, getIndex, getModel, getName, getParent, getSelectionModel, getSortOrder, getText, getThumbnail, getTooltip, getWorkspaceName, initPopupMenu, isBold, isItalic, isLeaf, isModuleNode, isSelected, isTopLevelNode, isValidName, iterator, loadChildren, newLogger, notifyChildNameChanged, onChildrenSelected, pathToRoot, performOnAllChildren, recreate, recreate, refresh, reload, select, select, setBold, setChildren, setIcon, setItalic, setName, setText, setThumbnail, setTooltip, showPopupMenu, toString, uninstallChildren, useThumbnailTooltip, visitIfLoadedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
workspace
-
-
Constructor Details
-
ResourceNode
public ResourceNode(DesignerContext context, TabbedResourceWorkspace workspace, ProjectResource resource)
-
-
Method Details
-
uninstall
protected void uninstall()Description copied from class:AbstractNavTreeNodeCalled when the node is removed from the tree. Override to provide meaningful implementation.- Overrides:
uninstallin classAbstractResourceNavTreeNode
-
getOpenIcon
- Returns:
- The node icon to use when the resource is open for editing
-
getClosedIcon
- Returns:
- The node icon to use when the resource is not being edited
-
onEditorSelected
Called whenever the ResourceEditor for this resource has been opened or selected in the tabbed workspace. -
onEditorUnselected
protected void onEditorUnselected() -
onEditorOpened
-
onEditorClosed
-
getProjectResource
Description copied from class:AbstractResourceNavTreeNodeThe ProjectResource that this node represents- Overrides:
getProjectResourcein classAbstractResourceNavTreeNode
-
onSelected
public void onSelected()Description copied from class:AbstractNavTreeNodeCalled when this node is selected in the tree- Overrides:
onSelectedin classAbstractNavTreeNode
-
open
protected void open()Description copied from class:AbstractResourceNavTreeNodeImplement this to open this resource up for editing- Overrides:
openin classAbstractResourceNavTreeNode
-
isOpen
protected boolean isOpen()Description copied from class:AbstractResourceNavTreeNodeOverride this to indicate whether or not this resource is open for editing- Overrides:
isOpenin classAbstractResourceNavTreeNode
-
closeAndCommit
public void closeAndCommit() -
commitIfOpen
public void commitIfOpen()Description copied from class:AbstractResourceNavTreeNodeImplement this to commit the resource that is open for editing.- Overrides:
commitIfOpenin classAbstractResourceNavTreeNode
-