Class ComponentNode
- java.lang.Object
- 
- com.inductiveautomation.ignition.designer.navtree.model.AbstractNavTreeNode
- 
- com.inductiveautomation.factorypmi.designer.model.navtree.ComponentNode
 
 
- 
- All Implemented Interfaces:
- java.beans.PropertyChangeListener,- java.lang.Iterable<AbstractNavTreeNode>,- java.util.EventListener,- javax.swing.tree.TreeNode
 - Direct Known Subclasses:
- ContainerNode
 
 public class ComponentNode extends AbstractNavTreeNode implements java.beans.PropertyChangeListener 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class com.inductiveautomation.ignition.designer.navtree.model.AbstractNavTreeNodeAbstractNavTreeNode.DeleteReason, AbstractNavTreeNode.PopupAction
 
- 
 - 
Field SummaryFields Modifier and Type Field Description protected javax.swing.JComponentcomponent- 
Fields inherited from class com.inductiveautomation.ignition.designer.navtree.model.AbstractNavTreeNodebold, children, childrenLoaded, copyAction, copyPathAction, cutAction, deleteAction, depth, icon, italic, log, model, name, parent, pasteAction, renameAction, selectionModel, text, thumbnail, tooltip
 
- 
 - 
Constructor SummaryConstructors Constructor Description ComponentNode(javax.swing.JComponent component)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddBadges(BadgeTreeCellRenderer renderer, boolean selected)Add 'badges' to indicate meta information about this nodejavax.swing.JComponentgetComponent()protected VisionDesignerInterfacegetFactoryPMI()java.lang.StringgetText()The text that will be used to render the nodestatic booleanisActionRegisteredForComponent(java.awt.Component bean)Returns true if there are any jython event scripts registered for the given bean.static booleanisBindingRegisteredForComponent(java.awt.Component bean)Returns true if there are any property bindings registered for the given bean.booleanisEditable()Override this and return true if you want your node's text to be editable.protected LoggerExnewLogger()voidonEdit(java.lang.String newTextValue)Called after this node has been edited in the tree.voidonSelected()Called when this node is selected in the treevoidpropertyChange(java.beans.PropertyChangeEvent evt)voidshowPopupMenu(java.awt.Component source, int x, int y, int modifiers, javax.swing.tree.TreePath[] paths, java.util.List<AbstractNavTreeNode> nodes)Called when a popup triggering event (right click) occurs over this node.voiduninstall()Called when the node is removed from the tree.- 
Methods inherited from class com.inductiveautomation.ignition.designer.navtree.model.AbstractNavTreeNodeaddEditActions, 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, isRestricted, isSelected, isTopLevelNode, isValidName, iterator, loadChildren, notifyChildNameChanged, onChildrenSelected, onDoubleClick, pathToRoot, recreate, recreate, refresh, reload, select, select, setBold, setChildren, setIcon, setItalic, setName, setText, setThumbnail, setTooltip, setupEditActions, toString, uninstallChildren, useThumbnailTooltip, visitIfLoaded
 
- 
 
- 
- 
- 
Method Detail- 
newLoggerprotected LoggerEx newLogger() - Overrides:
- newLoggerin class- AbstractNavTreeNode
 
 - 
onSelectedpublic void onSelected() Description copied from class:AbstractNavTreeNodeCalled when this node is selected in the tree- Overrides:
- onSelectedin class- AbstractNavTreeNode
 
 - 
isEditablepublic boolean isEditable() Description copied from class:AbstractNavTreeNodeOverride this and return true if you want your node's text to be editable. SeeAbstractNavTreeNode.onEdit(String)- Overrides:
- isEditablein class- AbstractNavTreeNode
 
 - 
onEditpublic void onEdit(java.lang.String newTextValue) Description copied from class:AbstractNavTreeNodeCalled after this node has been edited in the tree.- Overrides:
- onEditin class- AbstractNavTreeNode
 
 - 
addBadgespublic void addBadges(BadgeTreeCellRenderer renderer, boolean selected) Description copied from class:AbstractNavTreeNodeAdd 'badges' to indicate meta information about this node- Overrides:
- addBadgesin class- AbstractNavTreeNode
- Parameters:
- renderer- the renderer; call- BadgeTreeCellRenderer.addBadge(Badge)to add your badge(s)
- selected- the state of this node
 
 - 
getFactoryPMIprotected VisionDesignerInterface getFactoryPMI() 
 - 
getComponentpublic javax.swing.JComponent getComponent() 
 - 
showPopupMenupublic void showPopupMenu(java.awt.Component source, int x, int y, int modifiers, javax.swing.tree.TreePath[] paths, java.util.List<AbstractNavTreeNode> nodes)Description copied from class:AbstractNavTreeNodeCalled when a popup triggering event (right click) occurs over this node.- Overrides:
- showPopupMenuin class- AbstractNavTreeNode
- Parameters:
- source- The component to use as the invoker for the popup menu.
- x- popup location x value
- y- popup location y value
- modifiers- 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 in- InputEvent.getModifiers())}
- nodes- The list of currently selected nodes.
 
 - 
propertyChangepublic void propertyChange(java.beans.PropertyChangeEvent evt) - Specified by:
- propertyChangein interface- java.beans.PropertyChangeListener
 
 - 
getTextpublic java.lang.String getText() Description copied from class:AbstractNavTreeNodeThe text that will be used to render the node- Overrides:
- getTextin class- AbstractNavTreeNode
 
 - 
uninstallpublic void uninstall() Description copied from class:AbstractNavTreeNodeCalled when the node is removed from the tree. Override to provide meaningful implementation.- Overrides:
- uninstallin class- AbstractNavTreeNode
 
 - 
isActionRegisteredForComponentpublic static boolean isActionRegisteredForComponent(java.awt.Component bean) Returns true if there are any jython event scripts registered for the given bean.
 - 
isBindingRegisteredForComponentpublic static boolean isBindingRegisteredForComponent(java.awt.Component bean) Returns true if there are any property bindings registered for the given bean.
 
- 
 
-