Class NamedQueryNode
- java.lang.Object
-
- com.inductiveautomation.ignition.designer.navtree.model.AbstractNavTreeNode
-
- com.inductiveautomation.ignition.designer.navtree.model.AbstractResourceNavTreeNode
-
- com.inductiveautomation.ignition.designer.tabbedworkspace.ResourceNode
-
- com.inductiveautomation.ignition.designer.db.namedquery.workspace.nav.NamedQueryNode
-
- All Implemented Interfaces:
java.lang.Iterable<AbstractNavTreeNode>,javax.swing.tree.TreeNode
public class NamedQueryNode extends ResourceNode
Project resource node specific to Named Queries. Sets the resource node's tooltip to the Named Query's description, and returns a distinct icon when the Named Query is disabled.
-
-
Nested Class Summary
-
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.tabbedworkspace.ResourceNode
workspace
-
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, icon, italic, log, model, name, parent, pasteAction, renameAction, selectionModel, text, thumbnail, tooltip
-
-
Constructor Summary
Constructors Constructor Description NamedQueryNode(DesignerContext context, TabbedResourceWorkspace workspace, ProjectResource resource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.swing.IcongetIcon()protected voidinitPopupMenu(javax.swing.JPopupMenu menu, javax.swing.tree.TreePath[] paths, java.util.List<AbstractNavTreeNode> selection, int modifiers)Default implementation calls setupEditActions(), and then addEditActions()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 voidonEditorUnselected()-
Methods inherited from class com.inductiveautomation.ignition.designer.tabbedworkspace.ResourceNode
closeAndCommit, commitIfOpen, getClosedIcon, getOpenIcon, getProjectResource, install, onSelected, open, setIcon, uninstall
-
Methods inherited from class com.inductiveautomation.ignition.designer.navtree.model.AbstractResourceNavTreeNode
addBadges, addConcurrentUsersBadges, addDocumentationMenuItem, addEditActions, addExportMenuItem, addNotesBadge, addOverrideEnabledMenuItem, addProtectMenuItem, addRevertMenuItem, alterName, canCopy, canDelete, editDocumentation, gatherChildrenIds, getAdditionalExportIds, getInvalidNameErrorMessage, getPopupActions, getResourceId, getResourcePath, isChanged, isEditable, isInherited, isLocal, isOverridden, isOverrideEnabled, isProtectedEnabled, isRestricted, isValid, onDoubleClick, onEdit, onResourceModified, revert, selectChild, setOverrideEnabled, setProtected, setRevertedResourcePath, 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, 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
-
-
-
-
Constructor Detail
-
NamedQueryNode
public NamedQueryNode(DesignerContext context, TabbedResourceWorkspace workspace, ProjectResource resource)
-
-
Method Detail
-
getIcon
public javax.swing.Icon getIcon()
- Overrides:
getIconin classAbstractResourceNavTreeNode
-
onEditorSelected
protected void onEditorSelected(ResourceEditor editor)
Description copied from class:ResourceNodeCalled whenever the ResourceEditor for this resource has been opened or selected in the tabbed workspace.- Overrides:
onEditorSelectedin classResourceNode
-
onEditorUnselected
protected void onEditorUnselected()
- Overrides:
onEditorUnselectedin classResourceNode
-
onEditorOpened
protected void onEditorOpened(ResourceEditor editor)
- Overrides:
onEditorOpenedin classResourceNode
-
onEditorClosed
protected void onEditorClosed(ResourceEditor editor)
- Overrides:
onEditorClosedin classResourceNode
-
initPopupMenu
protected void initPopupMenu(javax.swing.JPopupMenu menu, javax.swing.tree.TreePath[] paths, java.util.List<AbstractNavTreeNode> selection, int modifiers)Description copied from class:AbstractNavTreeNodeDefault implementation calls setupEditActions(), and then addEditActions()- Overrides:
initPopupMenuin classAbstractNavTreeNode
-
isOpen
public boolean isOpen()
Description copied from class:AbstractResourceNavTreeNodeOverride this to indicate whether or not this resource is open for editing- Overrides:
isOpenin classResourceNode
-
-