Class MethodDescriptorNode

  • All Implemented Interfaces:
    ComponentScriptEditor.ComponentScriptNode, java.io.Serializable, java.lang.Cloneable, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode

    public class MethodDescriptorNode
    extends javax.swing.tree.DefaultMutableTreeNode
    implements ComponentScriptEditor.ComponentScriptNode
    A wrapper around a MethodDescriptor with a link to the containing EventSetDescriptorNode. May also contain information about a specific component's registered actions for this method.
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class javax.swing.tree.DefaultMutableTreeNode

        allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.util.Map<java.lang.String,​java.lang.Object> getBuilderInfo()  
      int getBuilderMode()  
      java.lang.String getJythonCode()  
      java.beans.MethodDescriptor getMethodDescriptor()  
      EventSetDescriptorNode getParent()  
      ScriptScopeStyle getScopeStyle()  
      boolean hasScript()
      Deprecated.
      boolean isChanged()  
      boolean isInUse()  
      boolean isInvokeLater()  
      static boolean methodsEqual​(java.beans.MethodDescriptor m1, java.beans.MethodDescriptor m2)
      Delegates to the descriptor's underlying Method to test for equality, since MethodDescriptor doesn't implement .equals()
      void setBuilderInfo​(java.util.Map<java.lang.String,​java.lang.Object> builderInfo)  
      void setBuilderMode​(int mode)  
      void setInvokeLater​(boolean invokeLater)  
      void setJythonCode​(java.lang.String jythonCode)  
      void setScopeStyle​(ScriptScopeStyle scopeStyle)  
      java.lang.String toString()  
      void updated​(ActionAdapter newAdapter)  
      • Methods inherited from class javax.swing.tree.DefaultMutableTreeNode

        add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject
      • Methods inherited from class java.lang.Object

        finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • MethodDescriptorNode

        public MethodDescriptorNode​(java.beans.MethodDescriptor method,
                                    ActionAdapter adapter)
    • Method Detail

      • methodsEqual

        public static boolean methodsEqual​(java.beans.MethodDescriptor m1,
                                           java.beans.MethodDescriptor m2)
        Delegates to the descriptor's underlying Method to test for equality, since MethodDescriptor doesn't implement .equals()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • getMethodDescriptor

        public java.beans.MethodDescriptor getMethodDescriptor()
      • getParent

        public EventSetDescriptorNode getParent()
        Specified by:
        getParent in interface javax.swing.tree.TreeNode
        Overrides:
        getParent in class javax.swing.tree.DefaultMutableTreeNode
      • getJythonCode

        public java.lang.String getJythonCode()
      • setJythonCode

        public void setJythonCode​(java.lang.String jythonCode)
      • isInvokeLater

        public boolean isInvokeLater()
      • setInvokeLater

        public void setInvokeLater​(boolean invokeLater)
      • getBuilderMode

        public int getBuilderMode()
      • setBuilderMode

        public void setBuilderMode​(int mode)
      • hasScript

        @Deprecated
        public boolean hasScript()
        Deprecated.
      • getBuilderInfo

        public java.util.Map<java.lang.String,​java.lang.Object> getBuilderInfo()
      • setBuilderInfo

        public void setBuilderInfo​(java.util.Map<java.lang.String,​java.lang.Object> builderInfo)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class javax.swing.tree.DefaultMutableTreeNode