[Laszlo-dev] setters and LzDataElement

Henry Minsky henry.minsky at gmail.com
Mon Mar 10 15:44:32 PDT 2008


As an optimization, I think we should not try to give LzDataElement
the extensible setter mechanism that LzNode has.

There are a couple of setters defined in LzDataElement, which would look like

attributes = "setAttrs";
childNodes = "setChildNodes";
nodeName = "setNodeName";
and maybe
ownerDocument = "setOwnerDocument";

and LzDataText has a setter for
data = "setData";

I can't think of any case where the user would want to add setters to
these classes, so I am thinking of just hardcoding these
into a static class var setters list, or possibly even hardcoding them
into a custom setAttribute method on LzDataElement.

All the other crud (earlySetters, DelayedSetters, getters, options,
defaultattrs), are not needed for LzDataElement I think.

Classes like LzDatapointer which derive from LzNode will still get all
that stuff. I'm just talking about LzDataElement and other LzMiniNode
subclasses.

Thoughts?







-- 
Henry Minsky
Software Architect
hminsky at laszlosystems.com


More information about the Laszlo-dev mailing list