I agree to a point. We do need to be able to distinguish between a Caption
(text that is not changeable by the user via the keyboard), Text (text that
is changeable by the user and is plain ASCII type text) and HTML which can
contain full HTML including DOM objects. I have not looked at the different
properties currently in use in qooxdoo, but I hope that is what they are
trying to archive. What I don't like is having to 'go deeper in the control'
to change a labels caption. I have been saying all along that the
programmer should not need to know about all the little pieces used to make
up a control in order to use it. A very good example of this is the Table
object. I am always getting confused as to which part of the Table I have to
reference in order to get to column values or header info or ???. I spend a
lot of time in the Table API. I feel there should be properties of the Table
that take care of that indirection for us.
And while I am at it, every object should have basic methods like
hasChildren(). This way you can easily iterate through all controls to see
if they contain other controls if you are looking for something specific. I
add this to the base Object at runtime and by default it returns false but
objects that inherit from Object override it to return a true value.
The bottom line is that the developer should be able to code quickly and
intuitively without spending a ton of time in the API looking up basic
syntax.
Jim Hunter
www.D4PHP.org
www.DiamondComputing.com
On 4/21/07, Christian Boulanger <[EMAIL PROTECTED]> wrote:
Hello all,
I find it confusing that some widgets use the property "label" (Atom,
Button), others "text" (most widgets) and "html" (label) for the same
purpose, i.e. the placement of visible text. Couldn't this be normalized
into one solution? What is the purpose of the difference that makes me
having to consult the API needlessly? Of course, after a few times, one
learns which widget takes which property, but do we need to make it more
complicated than necessary?
Thanks,
Christian
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel