I have a question about the incubator/basevalidator class.

In the "addSubview" method (see below), there's a test to see if the added
subview is of a class called "edittext".  This is unnecessarily restrictive
since I have a class that extends edittext but will not work because the
class name isn't the same.  Is there some sort of "instance of" test that
can be used instead?


<method name="addSubview" args="item">
  super.addSubview(item);
  if (item.classname == "edittext") {
    // irrelevant stuff removed
  }
</method>


Also, I just wanted to point out a typo.  There's an attribute named
"innercompornent"...

<attribute name="innercompornent" type="expression" value="null" />

...that probably should be fixed before people write a lot of code that
depends on the misspelling.


_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

Reply via email to