Sunday, March 05, 2006

setSource, but don't getSource

More weirdness with get/set methods in OpenLaszlo.

One uses the method setSource on LzView, but there is no getSource method. Rather, you just grab the resource directly as in the following code snippet:

this.setSource("http:./" + this.data);
...
Debug.inspect("parent source: " + parent.resource);

I can't wait to figure out the logic for all this. For example, LzView has getVolume and setVolume methods, no volume attribute. Why would that be? I need to spend some time digging around in the source.

0 Comments:

Post a Comment

<< Home