var mynode= new LzNode( parent , args );
where parent is the parent for the new node, and args is an
Object whose name/value pairs are attributes to be set on the new node.
Known Direct Subclasses: animatorgroup (LzAnimatorGroup), command (LzCommand), LzContextMenu (as2), LzContextMenu (dhtml), LzContextMenuItem (as2), LzContextMenuItem (dhtml), datapointer (LzDatapointer), dataset (LzDataset), datasource (LzDatasource), layout (LzLayout), import (LzLibrary) (as2), import (LzLibrary) (dhtml), LzLibraryCleanup, params (LzParam), script (LzScript), selectionmanager (LzSelectionManager), state (LzState), class (LzUserClass), view (LzView)
Static Properties (2)
Static Methods (1)
Initial Attributes (1)
Initial Attributes are given as attributes in LZX but are not generally available as properties in JavaScript.
Properties (32)
<class> where this node is defined.
Members of state subclasses do not define classroot.
This is convenient to use when you want to access an attribute of the
class in a method or event handler that is nested deep in the node
hierarchy. For example, to set the bgcolor of the class object,
instead of
parent.parent.parent.setAttribute(bgcolor, 0xFFFFFF)
you can simply use classroot.setAttribute(bgcolor, 0xFFFFFF).
node's init method and
sending of the oninit event is under the control
of its initstage attribute, as follows:
immediate
init method is called immediately as the
last stage of instantiation.
early
init method is called immediately after the
view and its children have been instantiated.
normal
init method is called when the parent
is initialized.
late
init method is called during idle time.
To check whether init has been called, check the isinited
property. Force calling init using the completeInstantiation method.
defer
init method will not be called unless
explicitly requested by the completeInstantiation method.
Methods (59)
late or defer. Call this function to
force instantiation to complete synchronously for nodes with
initstage=late, and to force it to happen at all for nodes with
initstage=defer.
ignoreplacement
attribute with a true value, then the view will be placed
directly under its lexical parent in all cases. The next steps are
skipped.
view.immediateparent = view.parent),
and the next steps are skipped.
determinePlacement, and the result is taken as the
view's placement view.
defaultplacement attribute,
determinePlacement is called again. This process is repeated
until no defaultplacement attribute is found to ensure that all placement
directives are correctly followed.
Events (5)
Copyright © 2002-2007 Laszlo Systems, Inc. All Rights Reserved. Unauthorized use, duplication or distribution is strictly prohibited. This is the proprietary information of Laszlo Systems, Inc. Use is subject to license terms.