public class ComponentNode extends AbstractNavTreeNode implements java.beans.PropertyChangeListener
AbstractNavTreeNode.DeleteReason, AbstractNavTreeNode.PopupAction, AbstractNavTreeNode.ResourceChangeListener| Modifier and Type | Field and Description |
|---|---|
protected javax.swing.JComponent |
component |
bold, children, childrenLoaded, copyAction, cutAction, deleteAction, depth, icon, italic, log, model, name, NAME_PATTERN, parent, pasteAction, protectedAction, protectedMenuItem, renameAction, selectionModel, text, thumbnail, tooltip| Constructor and Description |
|---|
ComponentNode(javax.swing.JComponent component) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBadges(BadgeTreeCellRenderer renderer) |
javax.swing.JComponent |
getComponent() |
protected VisionDesignerInterface |
getFactoryPMI() |
java.lang.String |
getText()
The text that will be used to render the node
|
static boolean |
isActionRegisteredForComponent(java.awt.Component bean)
Returns true if there are any jython event scripts registered for the given bean.
|
static boolean |
isBindingRegisteredForComponent(java.awt.Component bean)
Returns true if there are any property bindings registered for the given bean.
|
boolean |
isEditable()
Override this and return true if you want your node's text to be editable.
|
protected LoggerEx |
newLogger() |
void |
onEdit(java.lang.String newTextValue)
Called after this node has been edited in the tree.
|
void |
onSelected()
Called when this node is selected in the tree
|
void |
propertyChange(java.beans.PropertyChangeEvent evt) |
void |
showPopupMenu(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.
|
void |
uninstall()
Called when the node is removed from the tree.
|
addEditActions, canCopy, canDelete, canDrag, canDrop, canPaste, checkChildren, children, confirmDelete, createProjectCopy, debug, debug, dispatchSelectionEvent, doCopy, doCut, doDelete, doPaste, expand, findChild, findCommonEditActionHandler, findDropHandler, findEditActionHandler, forceChildrenReload, getAllowsChildren, getChildAt, getChildCount, getClipboard, getCommonEditActionHandler, getDepth, getExpandedIcon, getIcon, getIndex, getModel, getName, getParent, getSelectionModel, getSortOrder, getThumbnail, getTooltip, getWorkspaceName, initPopupMenu, install, isBold, isEditActionHandler, isItalic, isLeaf, isProtected, isProtectedEnabled, isSelected, isValidName, iterator, loadChildren, notifyChildNameChanged, onChildrenSelected, onDoubleClick, pathToRoot, recreate, refresh, reload, select, select, setBold, setChildren, setIcon, setItalic, setName, setProtected, setText, setThumbnail, setTooltip, setupEditActions, showPopup, toString, uninstallChildren, useThumbnailTooltipprotected LoggerEx newLogger()
newLogger in class AbstractNavTreeNodepublic void onSelected()
AbstractNavTreeNodeonSelected in class AbstractNavTreeNodepublic boolean isEditable()
AbstractNavTreeNodeAbstractNavTreeNode.onEdit(String)isEditable in class AbstractNavTreeNodepublic void onEdit(java.lang.String newTextValue)
AbstractNavTreeNodeonEdit in class AbstractNavTreeNodepublic void addBadges(BadgeTreeCellRenderer renderer)
addBadges in class AbstractNavTreeNodeprotected VisionDesignerInterface getFactoryPMI()
public javax.swing.JComponent getComponent()
public void showPopupMenu(java.awt.Component source,
int x,
int y,
int modifiers,
javax.swing.tree.TreePath[] paths,
java.util.List<AbstractNavTreeNode> nodes)
AbstractNavTreeNodeshowPopupMenu in class AbstractNavTreeNodesource - 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 in
InputEvent.getModifiers() )}nodes - The list of currently selected nodes.public void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange in interface java.beans.PropertyChangeListenerpublic java.lang.String getText()
AbstractNavTreeNodegetText in class AbstractNavTreeNodepublic void uninstall()
AbstractNavTreeNodeuninstall in class AbstractNavTreeNodepublic static boolean isActionRegisteredForComponent(java.awt.Component bean)
public static boolean isBindingRegisteredForComponent(java.awt.Component bean)