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.Icon
DISABLED_ICON
-
Fields inherited from class com.inductiveautomation.ignition.designer.tabbedworkspace.ResourceNode
workspace
-
Fields inherited from class com.inductiveautomation.ignition.designer.navtree.model.AbstractResourceNavTreeNode
context, inheritedIcon, overrideAction, overrideEnabledAction, overrideEnabledMenuItem, protectedAction, protectedMenuItem, resourceId, resourcePath, restricted
-
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.Icon
getIcon()
java.lang.String
getTooltip()
protected 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
setToolTip(java.lang.String description)
-
Methods inherited from class com.inductiveautomation.ignition.designer.tabbedworkspace.ResourceNode
closeAndCommit, commitIfOpen, getProjectResource, install, isOpen, onSelected, open, setIcon, uninstall
-
Methods inherited from class com.inductiveautomation.ignition.designer.navtree.model.AbstractResourceNavTreeNode
addEditActions, addOverrideEnabledMenuItem, addProtectMenuItem, alterName, canCopy, canDelete, gatherChildrenIds, getInvalidNameErrorMessage, getPopupActions, getResourceId, getResourcePath, isChanged, isEditable, isInherited, isLocal, isOverrideEnabled, isProtectedEnabled, isRestricted, isValid, onDoubleClick, onEdit, onResourceModified, selectChild, setOverrideEnabled, setProtected, setupEditActions
-
Methods inherited from class com.inductiveautomation.ignition.designer.navtree.model.AbstractNavTreeNode
addBadges, 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
-
-
-
-
Constructor Detail
-
NamedQueryNode
public NamedQueryNode(DesignerContext context, TabbedResourceWorkspace workspace, ProjectResource resource)
-
-
Method Detail
-
getIcon
public javax.swing.Icon getIcon()
- Overrides:
getIcon
in classAbstractResourceNavTreeNode
-
onEditorSelected
protected void onEditorSelected(ResourceEditor editor)
Description copied from class:ResourceNode
Called whenever the ResourceEditor for this resource has been opened or selected in the tabbed workspace.- Overrides:
onEditorSelected
in classResourceNode
-
onEditorUnselected
protected void onEditorUnselected()
- Overrides:
onEditorUnselected
in classResourceNode
-
onEditorOpened
protected void onEditorOpened(ResourceEditor editor)
- Overrides:
onEditorOpened
in classResourceNode
-
onEditorClosed
protected void onEditorClosed(ResourceEditor editor)
- Overrides:
onEditorClosed
in classResourceNode
-
getTooltip
public java.lang.String getTooltip()
- Overrides:
getTooltip
in classAbstractNavTreeNode
-
setToolTip
public void setToolTip(java.lang.String description)
-
-