Class 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
    • Field Detail

      • component

        protected javax.swing.JComponent component
    • Constructor Detail

      • ComponentNode

        public ComponentNode​(javax.swing.JComponent component)
    • Method Detail

      • getComponent

        public javax.swing.JComponent getComponent()
      • showPopupMenu

        public 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: AbstractNavTreeNode
        Called when a popup triggering event (right click) occurs over this node.
        Overrides:
        showPopupMenu in 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.
      • propertyChange

        public void propertyChange​(java.beans.PropertyChangeEvent evt)
        Specified by:
        propertyChange in interface java.beans.PropertyChangeListener
      • 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 class AbstractNavTreeNode
      • isActionRegisteredForComponent

        public static boolean isActionRegisteredForComponent​(java.awt.Component bean)
        Returns true if there are any jython event scripts registered for the given bean.
      • isBindingRegisteredForComponent

        public static boolean isBindingRegisteredForComponent​(java.awt.Component bean)
        Returns true if there are any property bindings registered for the given bean.