Interface Proxy.Node

All Superinterfaces:
Node, NodeRO, Proxy.NodeRO
Enclosing interface:
Proxy

public static interface Proxy.Node extends Proxy.NodeRO, Node
  • Method Details

    • sortChildrenBy

      void sortChildrenBy(groovy.lang.Closure<Comparable<Object>> closure)
      A sort method that uses the result of the Groovy closure ("block") for comparison. As this closure will be called with a node as an argument (to be referenced by it) the search can evaluate every node property, like attributes, icons, node text or notes.

      Examples:

         // sort by details text
         node.sortChildrenBy{ it.details.to.plain }
         // sort numerically
         node.sortChildrenBy{ it.to.num0 }
      
      Parameters:
      closure - a Groovy closure that returns a Comparable value like a String. The closure will receive a NodeModel as an argument.
      Since:
      1.4.1