[Laszlo-dev] setters and LzDataElement

P T Withington ptw at pobox.com
Tue Mar 11 05:44:19 PDT 2008


That seems like a reasonable choice, after all, a 'mini-node' is  
supposed to be lightweight.

On 2008-03-10, at 18:44 EDT, Henry Minsky wrote:

> 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