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:
java.lang.Iterable<AbstractNavTreeNode>
,javax.swing.tree.TreeNode
- Direct Known Subclasses:
NamedQueryNode
,ReportNode
,ViewNode
public class ResourceNode extends AbstractResourceNavTreeNode
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.inductiveautomation.ignition.designer.navtree.model.AbstractNavTreeNode
AbstractNavTreeNode.DeleteReason, AbstractNavTreeNode.PopupAction
-
-
Field Summary
Fields Modifier and Type Field Description protected TabbedResourceWorkspace
workspace
-
Fields inherited from class com.inductiveautomation.ignition.designer.navtree.model.AbstractResourceNavTreeNode
context, 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 ResourceNode(DesignerContext context, TabbedResourceWorkspace workspace, ProjectResource resource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
closeAndCommit()
void
commitIfOpen()
Implement this to commit the resource that is open for editing.java.util.Optional<ProjectResource>
getProjectResource()
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
onEditorUnselected()
void
onSelected()
Called when this node is selected in the treeprotected void
open()
Implement this to open this resource up for editingprotected void
setIcon(javax.swing.Icon icon)
protected void
uninstall()
Called when the node is removed from the tree.-
Methods inherited from class com.inductiveautomation.ignition.designer.navtree.model.AbstractResourceNavTreeNode
addBadges, addConcurrentUsersBadges, addEditActions, addExportMenuItem, addOverrideEnabledMenuItem, addProtectMenuItem, addRevertMenuItem, alterName, canCopy, canDelete, gatherChildrenIds, getIcon, getInvalidNameErrorMessage, getPopupActions, getResourceId, getResourcePath, isChanged, isEditable, isInherited, isLocal, isOverrideEnabled, isProtectedEnabled, isRestricted, isValid, onDoubleClick, onEdit, onResourceModified, revert, selectChild, setOverrideEnabled, setProtected, setupEditActions
-
Methods inherited from class com.inductiveautomation.ignition.designer.navtree.model.AbstractNavTreeNode
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, getDeleteAction, getDepth, getExpandedIcon, getIndex, getModel, getName, getParent, getSelectionModel, getSortOrder, getText, getThumbnail, getTooltip, getWorkspaceName, initPopupMenu, isBold, isEditActionHandler, isItalic, isLeaf, isSelected, isTopLevelNode, isValidName, iterator, loadChildren, newLogger, notifyChildNameChanged, onChildrenSelected, pathToRoot, recreate, recreate, refresh, reload, select, select, setBold, setChildren, setItalic, setName, setText, setThumbnail, setTooltip, showPopupMenu, toString, uninstallChildren, useThumbnailTooltip, visitIfLoaded
-
-
-
-
Field Detail
-
workspace
protected final TabbedResourceWorkspace workspace
-
-
Constructor Detail
-
ResourceNode
public ResourceNode(DesignerContext context, TabbedResourceWorkspace workspace, ProjectResource resource)
-
-
Method Detail
-
setIcon
protected void setIcon(javax.swing.Icon icon)
- Overrides:
setIcon
in classAbstractNavTreeNode
-
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
-
install
public void install(AbstractNavTreeNode parent)
- Overrides:
install
in classAbstractResourceNavTreeNode
-
onEditorSelected
protected void onEditorSelected(ResourceEditor editor)
Called whenever the ResourceEditor for this resource has been opened or selected in the tabbed workspace.
-
onEditorUnselected
protected void onEditorUnselected()
-
onEditorOpened
protected void onEditorOpened(ResourceEditor editor)
-
onEditorClosed
protected void onEditorClosed(ResourceEditor editor)
-
getProjectResource
public java.util.Optional<ProjectResource> 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
-
-