Class ContainerNode
- java.lang.Object
-
- com.inductiveautomation.ignition.designer.navtree.model.AbstractNavTreeNode
-
- com.inductiveautomation.factorypmi.designer.model.navtree.ComponentNode
-
- com.inductiveautomation.factorypmi.designer.model.navtree.ContainerNode
-
- All Implemented Interfaces:
java.awt.event.ContainerListener,java.beans.PropertyChangeListener,java.lang.Iterable<AbstractNavTreeNode>,java.util.EventListener,javax.swing.tree.TreeNode
public class ContainerNode extends ComponentNode implements java.awt.event.ContainerListener
-
-
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 java.util.Comparator<AbstractNavTreeNode>SORT_ALPHABETICAL-
Fields inherited from class com.inductiveautomation.factorypmi.designer.model.navtree.ComponentNode
component
-
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 ContainerNode(javax.swing.JComponent container)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddBadges(BadgeTreeCellRenderer renderer, boolean selected)Add 'badges' to indicate meta information about this nodevoidcomponentAdded(java.awt.event.ContainerEvent e)voidcomponentRemoved(java.awt.event.ContainerEvent e)protected java.util.List<AbstractNavTreeNode>loadChildren()Called before this node responds from any of the children-related TreeNode functions, if a list of children wasn't already set.protected LoggerExnewLogger()voiduninstall()Called when the node is removed from the tree.-
Methods inherited from class com.inductiveautomation.factorypmi.designer.model.navtree.ComponentNode
getComponent, getFactoryPMI, getText, isActionRegisteredForComponent, isBindingRegisteredForComponent, isEditable, onEdit, onSelected, propertyChange, showPopupMenu
-
Methods inherited from class com.inductiveautomation.ignition.designer.navtree.model.AbstractNavTreeNode
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, isRestricted, isSelected, isTopLevelNode, isValidName, iterator, notifyChildNameChanged, onChildrenSelected, onDoubleClick, pathToRoot, recreate, recreate, refresh, reload, select, select, setBold, setChildren, setIcon, setItalic, setName, setText, setThumbnail, setTooltip, setupEditActions, toString, uninstallChildren, useThumbnailTooltip, visitIfLoaded
-
-
-
-
Field Detail
-
SORT_ALPHABETICAL
public static final java.util.Comparator<AbstractNavTreeNode> SORT_ALPHABETICAL
-
-
Method Detail
-
newLogger
protected LoggerEx newLogger()
- Overrides:
newLoggerin classComponentNode
-
uninstall
public void uninstall()
Description copied from class:AbstractNavTreeNodeCalled when the node is removed from the tree. Override to provide meaningful implementation.- Overrides:
uninstallin classComponentNode
-
addBadges
public void addBadges(BadgeTreeCellRenderer renderer, boolean selected)
Description copied from class:AbstractNavTreeNodeAdd 'badges' to indicate meta information about this node- Overrides:
addBadgesin classComponentNode- Parameters:
renderer- the renderer; callBadgeTreeCellRenderer.addBadge(Badge)to add your badge(s)selected- the state of this node
-
loadChildren
protected java.util.List<AbstractNavTreeNode> loadChildren()
Description copied from class:AbstractNavTreeNodeCalled before this node responds from any of the children-related TreeNode functions, if a list of children wasn't already set. Override to use lazy child loading.- Overrides:
loadChildrenin classAbstractNavTreeNode
-
componentAdded
public void componentAdded(java.awt.event.ContainerEvent e)
- Specified by:
componentAddedin interfacejava.awt.event.ContainerListener
-
componentRemoved
public void componentRemoved(java.awt.event.ContainerEvent e)
- Specified by:
componentRemovedin interfacejava.awt.event.ContainerListener
-
-