Class ShapeNode
- java.lang.Object
-
- com.inductiveautomation.ignition.designer.navtree.model.AbstractNavTreeNode
-
- com.inductiveautomation.reporting.designer.workspace.nav.ShapeNode
-
- All Implemented Interfaces:
java.lang.Iterable<AbstractNavTreeNode>
,javax.swing.tree.TreeNode
public class ShapeNode extends AbstractNavTreeNode
Created by carl.gould on 4/17/2015.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.inductiveautomation.ignition.designer.navtree.model.AbstractNavTreeNode
AbstractNavTreeNode.DeleteReason, AbstractNavTreeNode.PopupAction
-
-
Field Summary
-
Fields inherited from class com.inductiveautomation.ignition.designer.navtree.model.AbstractNavTreeNode
bold, children, childrenLoaded, copyAction, cutAction, deleteAction, depth, icon, italic, log, model, name, parent, pasteAction, renameAction, selectionModel, text, thumbnail, tooltip
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RMShape
getShape()
protected void
initPopupMenu(javax.swing.JPopupMenu menu, javax.swing.tree.TreePath[] paths, java.util.List<AbstractNavTreeNode> selection, int modifiers)
Default implementation calls setupEditActions(), and then addEditActions()void
install(AbstractNavTreeNode parent)
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.void
onSelected()
Called when this node is selected in the treevoid
select(boolean append)
Causes this tree node to become selected.protected java.lang.String
toString(RMShape shape)
protected void
uninstall()
Called when the node is removed from the tree.-
Methods inherited from class com.inductiveautomation.ignition.designer.navtree.model.AbstractNavTreeNode
addBadges, addBadges, 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, getCommonEditActionHandler, getDeleteAction, getDepth, getExpandedIcon, getIcon, getIndex, getModel, getName, getParent, getPopupActions, getSelectionModel, getSortOrder, getText, getThumbnail, getTooltip, getWorkspaceName, isBold, isEditable, isEditActionHandler, isItalic, isLeaf, isRestricted, isSelected, isValidName, isValidNameDefault, iterator, newLogger, notifyChildNameChanged, onChildrenSelected, onDoubleClick, onEdit, pathToRoot, recreate, recreate, refresh, reload, select, setBold, setChildren, setIcon, setItalic, setName, setText, setThumbnail, setTooltip, setupEditActions, showPopup, showPopupMenu, toString, uninstallChildren, useThumbnailTooltip
-
-
-
-
Constructor Detail
-
ShapeNode
public ShapeNode(RMShape shape)
-
-
Method Detail
-
select
public void select(boolean append)
Description copied from class:AbstractNavTreeNode
Causes this tree node to become selected.- Overrides:
select
in classAbstractNavTreeNode
- Parameters:
append
- Should this node be appended to the current selection, or be selected by itself?
-
onSelected
public void onSelected()
Description copied from class:AbstractNavTreeNode
Called when this node is selected in the tree- Overrides:
onSelected
in classAbstractNavTreeNode
-
initPopupMenu
protected void initPopupMenu(javax.swing.JPopupMenu menu, javax.swing.tree.TreePath[] paths, java.util.List<AbstractNavTreeNode> selection, int modifiers)
Description copied from class:AbstractNavTreeNode
Default implementation calls setupEditActions(), and then addEditActions()- Overrides:
initPopupMenu
in classAbstractNavTreeNode
-
getShape
public RMShape getShape()
-
install
public void install(AbstractNavTreeNode parent)
- Overrides:
install
in classAbstractNavTreeNode
-
uninstall
protected 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
-
toString
protected java.lang.String toString(RMShape shape)
-
loadChildren
protected java.util.List<AbstractNavTreeNode> loadChildren()
Description copied from class:AbstractNavTreeNode
Called 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:
loadChildren
in classAbstractNavTreeNode
-
-