|
org.netbeans.modules.looks/2 1.12 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.api.nodes2looks.Nodes
public final class Nodes
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 |
---|
public static Node node(Object representedObject)
representedObject
- the object which the node will representSelectors.defaultTypes()
public static Node node(Object representedObject, Look look)
representedObject
- The object which the node will represent.look
- Explicit look which will be set on the node.Look.attachTo(Object)
public static Node node(Object representedObject, Look look, LookSelector lookSelector)
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.Look.attachTo(Object)
public static Node node(Object representedObject, Look look, LookSelector lookSelector, Node.Handle handle)
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.Look.attachTo(Object)
public static final Look nodeLook()
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>
|
org.netbeans.modules.looks/2 1.12 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |