Class ComponentNode
java.lang.Object
com.inductiveautomation.ignition.designer.navtree.model.AbstractNavTreeNode
com.inductiveautomation.factorypmi.designer.model.navtree.ComponentNode
- All Implemented Interfaces:
PropertyChangeListener
,Iterable<AbstractNavTreeNode>
,EventListener
,TreeNode
- Direct Known Subclasses:
ContainerNode
-
Nested Class Summary
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.AbstractNavTreeNode
bold, children, childrenLoaded, copyAction, copyPathAction, cutAction, deleteAction, depth, discardOverridesAction, icon, italic, log, model, name, parent, pasteAction, renameAction, selectionModel, text, thumbnail, tooltip
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addBadges
(BadgeTreeCellRenderer renderer, boolean selected) Add 'badges' to indicate meta information about this nodeprotected VisionDesignerInterface
getText()
The text that will be used to render the nodestatic boolean
Returns true if there are any jython event scripts registered for the given bean.static boolean
Returns true if there are any property bindings registered for the given bean.boolean
Override this and return true if you want your node's text to be editable.protected LoggerEx
void
Called after this node has been edited in the tree.void
Called when this node is selected in the treevoid
void
showPopupMenu
(Component source, int x, int y, int modifiers, TreePath[] paths, List<AbstractNavTreeNode> nodes) Called when a popup triggering event (right click) occurs over this node.void
Called when the node is removed from the tree.Methods inherited from class com.inductiveautomation.ignition.designer.navtree.model.AbstractNavTreeNode
addEditActions, addEditActions, canCopy, canDelete, 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, getIcon, getIndex, getModel, getName, getParent, getPopupActions, getSelectionModel, getSortOrder, getThumbnail, getTooltip, getWorkspaceName, initPopupMenu, install, isBold, isEditActionHandler, isItalic, isLeaf, isModuleNode, isRestricted, isSelected, isTopLevelNode, isValidName, iterator, loadChildren, notifyChildNameChanged, onChildrenSelected, onDoubleClick, pathToRoot, performOnAllChildren, recreate, recreate, refresh, reload, select, select, setBold, setChildren, setIcon, setItalic, setName, setText, setThumbnail, setTooltip, setupEditActions, 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
-
component
-
-
Constructor Details
-
ComponentNode
-
-
Method Details
-
newLogger
- Overrides:
newLogger
in classAbstractNavTreeNode
-
onSelected
public void onSelected()Description copied from class:AbstractNavTreeNode
Called when this node is selected in the tree- Overrides:
onSelected
in classAbstractNavTreeNode
-
isEditable
public boolean isEditable()Description copied from class:AbstractNavTreeNode
Override this and return true if you want your node's text to be editable. SeeAbstractNavTreeNode.onEdit(String)
- Overrides:
isEditable
in classAbstractNavTreeNode
-
onEdit
Description copied from class:AbstractNavTreeNode
Called after this node has been edited in the tree.- Overrides:
onEdit
in classAbstractNavTreeNode
-
getFactoryPMI
-
getComponent
-
showPopupMenu
public void showPopupMenu(Component source, int x, int y, int modifiers, TreePath[] paths, List<AbstractNavTreeNode> nodes) Description copied from class:AbstractNavTreeNode
Called when a popup triggering event (right click) occurs over this node.- Overrides:
showPopupMenu
in classAbstractNavTreeNode
- Parameters:
source
- The component to use as the invoker for the popup menu.x
- popup location x valuey
- popup location y valuemodifiers
- extended modifier mask for this event, e.g. this which end with the _DOWN_MASK suffix, such as ALT_DOWN_MASK, BUTTON1_DOWN_MASK, and others, as defined inInputEvent.getModifiers()
)}nodes
- The list of currently selected nodes.
-
propertyChange
- Specified by:
propertyChange
in interfacePropertyChangeListener
-
getText
Description copied from class:AbstractNavTreeNode
The text that will be used to render the node- Overrides:
getText
in classAbstractNavTreeNode
-
uninstall
public void uninstall()Description copied from class:AbstractNavTreeNode
Called when the node is removed from the tree. Override to provide meaningful implementation.- Overrides:
uninstall
in classAbstractNavTreeNode
-
isActionRegisteredForComponent
Returns true if there are any jython event scripts registered for the given bean. -
isBindingRegisteredForComponent
Returns true if there are any property bindings registered for the given bean.
-