1 19 20 package org.netbeans.api.nodes2looks; 21 22 import org.netbeans.spi.looks.Look; 23 import org.netbeans.spi.looks.LookSelector; 24 import org.openide.nodes.Node; 25 26 29 public final class Nodes { 30 private static final Look NODE_LOOK = new NodeProxyLook( "NodeProxyLook" ); 31 32 private Nodes() {} 33 34 38 public static Node node( Object representedObject ) { 39 return node (representedObject, null, null ); 40 } 41 42 47 public static Node node (Object representedObject, Look look ) { 48 return node ( representedObject, look, null ); 49 } 50 51 59 public static Node node (Object representedObject, Look look, LookSelector lookSelector ) { 60 return node ( representedObject, look, lookSelector, null ); 61 } 62 63 72 public static Node node(Object representedObject, Look look, LookSelector lookSelector, Node.Handle handle ) { 73 return new LookNode( 74 representedObject, 75 look, 76 lookSelector, 77 handle 78 ); 79 } 80 81 94 public static final Look nodeLook() { 95 return NODE_LOOK; 96 } 97 98 99 } 100 | Popular Tags |