站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

Nodes (Looks) - NetBeans API Javadoc (Current Development Version)

org.netbeans.modules.looks/2 1.12

org.netbeans.api.nodes2looks
Class Nodes

java.lang.Object
  extended by org.netbeans.api.nodes2looks.Nodes

public final class Nodes
extends Object

Interoperability of nodes and looks.


Method Summary
static Node node(Object representedObject)
          Creates a new node representing an object using a look.
static Node node(Object representedObject, Look look)
          Creates new LookNode.
static Node node(Object representedObject, Look look, LookSelector lookSelector)
          Creates new LookNode.
static Node node(Object representedObject, Look look, LookSelector lookSelector, Node.Handle handle)
          Creates new LookNode.
static Look nodeLook()
          Look that works with Node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

node

public static Node node(Object representedObject)
Creates a new node representing an object using a look.

Parameters:
representedObject - the object which the node will represent
See Also:
Selectors.defaultTypes()

node

public static Node node(Object representedObject,
                        Look look)
Creates new LookNode.

Parameters:
representedObject - The object which the node will represent.
look - Explicit look which will be set on the node.
See Also:
Look.attachTo(Object)

node

public static Node node(Object representedObject,
                        Look look,
                        LookSelector lookSelector)
Creates new LookNode.

Parameters:
representedObject - The object which the node will represent.
look - Explicit look which will be set on the node. If null first look from the lookSelector which accepts the represented object will be used for this node.
lookSelector - LookSelector for this node.
See Also:
Look.attachTo(Object)

node

public static Node node(Object representedObject,
                        Look look,
                        LookSelector lookSelector,
                        Node.Handle handle)
Creates new LookNode.

Parameters:
representedObject - The object which the node will represent.
look - Explicit look which will be set on the node. If null first look from the lookSelector which accepts the represented object will be used for this node.
lookSelector - LookSelector for this node.
handle - Node.Handle which will take care of the persistence.
See Also:
Look.attachTo(Object)

nodeLook

public static final Look nodeLook()
Look that works with Node. If the represented object is Node the look takes its name, actions, properties, etc. Very useful for bridging to already written nodes.

To create this look from an XML layer type:

 <file name="NameOfYourLook.instance" >
   <attr name="instanceClass" stringvalue="org.netbeans.spi.looks.Look" />
   <attr name="instanceCreate" methodvalue="org.netbeans.api.nodes2looks.Nodes.nodeLook" />
 </file>
 

Returns:
Look for bridging functionality of existing nodes

org.netbeans.modules.looks/2 1.12

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.