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 Modifier and Type Field Description static javax.swing.IconDISABLED_ICON-
Fields inherited from class com.inductiveautomation.ignition.designer.tabbedworkspace.ResourceNode
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 NamedQueryNode(DesignerContext context, TabbedResourceWorkspace workspace, ProjectResource resource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.swing.IcongetIcon()java.lang.StringgetTooltip()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()voidsetToolTip(java.lang.String description)-
Methods inherited from class com.inductiveautomation.ignition.designer.tabbedworkspace.ResourceNode
closeAndCommit, commitIfOpen, getProjectResource, install, onSelected, open, setIcon, uninstall
-
Methods inherited from class com.inductiveautomation.ignition.designer.navtree.model.AbstractResourceNavTreeNode
addBadges, addConcurrentUsersBadges, addEditActions, addExportMenuItem, addOverrideEnabledMenuItem, addProtectMenuItem, addRevertMenuItem, alterName, canCopy, canDelete, gatherChildrenIds, 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, 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
-
-
-
-
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
-
getTooltip
public java.lang.String getTooltip()
- Overrides:
getTooltipin classAbstractNavTreeNode
-
setToolTip
public void setToolTip(java.lang.String description)
-
isOpen
public boolean isOpen()
Description copied from class:AbstractResourceNavTreeNodeOverride this to indicate whether or not this resource is open for editing- Overrides:
isOpenin classResourceNode
-
-