PDA

View Full Version : Confused about the node tag


OLaszloFan
08-23-2007, 01:32 PM
Hi All:

Can someone explain in simple terms the purpose of the node tag. I understand how it relates to the other tags, however, I do not understand how it is used practically in a real programming application.

Please help me see the light.....


Patrick


Declarative Use:


<node name="thenodename"></node>



Dynamic JavaScript Use:

var newnode = new LzNode(canvas, {name ="main"});

jug
08-24-2007, 12:26 AM
Hi,

It's the basic node, used by all nodes doesn't need to be visible. For example stuff like <datapointer/>, <dataset/>, <dragstate/>, <animatorgroup/> extends LzNode but not LzView.

A <node/> it's self can be used as a pure programming object in your application... Example:

<node id="cursor_manager">
<attribute name="waiting_counter" value="0"/>
<method name="apply"/>
...
</node>


Bye.

OLaszloFan
08-24-2007, 07:38 AM
jug:

Thank you for responding to my post. Your answer filled in the gaps to my understanding. I have been reviewing the documentation and books and your explanation was pure and simple. Thanks


Patrick