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.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.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
ConstructorsConstructorDescriptionResourceNode
(DesignerContext context, TabbedResourceWorkspace workspace, ProjectResource resource) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
Implement this to commit the resource that is open for editing.protected Icon
protected Icon
The ProjectResource that this node representsvoid
install
(AbstractNavTreeNode parent) protected boolean
isOpen()
Override this to indicate whether or not this resource is open for editingprotected void
onEditorClosed
(ResourceEditor editor) protected void
onEditorOpened
(ResourceEditor editor) protected void
onEditorSelected
(ResourceEditor editor) Called whenever the ResourceEditor for this resource has been opened or selected in the tabbed workspace.protected void
void
Called when this node is selected in the treeprotected void
open()
Implement this to open this resource up for editingprotected void
Called 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, setupEditActions
Methods 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, 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
-
workspace
-
-
Constructor Details
-
ResourceNode
public ResourceNode(DesignerContext context, TabbedResourceWorkspace workspace, ProjectResource resource)
-
-
Method Details
-
uninstall
protected void uninstall()Description copied from class:AbstractNavTreeNode
Called when the node is removed from the tree. Override to provide meaningful implementation.- Overrides:
uninstall
in 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:AbstractResourceNavTreeNode
The ProjectResource that this node represents- Overrides:
getProjectResource
in classAbstractResourceNavTreeNode
-
onSelected
public void onSelected()Description copied from class:AbstractNavTreeNode
Called when this node is selected in the tree- Overrides:
onSelected
in classAbstractNavTreeNode
-
open
protected void open()Description copied from class:AbstractResourceNavTreeNode
Implement this to open this resource up for editing- Overrides:
open
in classAbstractResourceNavTreeNode
-
isOpen
protected boolean isOpen()Description copied from class:AbstractResourceNavTreeNode
Override this to indicate whether or not this resource is open for editing- Overrides:
isOpen
in classAbstractResourceNavTreeNode
-
closeAndCommit
public void closeAndCommit() -
commitIfOpen
public void commitIfOpen()Description copied from class:AbstractResourceNavTreeNode
Implement this to commit the resource that is open for editing.- Overrides:
commitIfOpen
in classAbstractResourceNavTreeNode
-