on 12/22/99 3:23 AM, Zeljko Trogrlic <[EMAIL PROTECTED]>
wrote:
> Why didn't you made generic class with addElement? Methods can return that
> generic class instead of real one. Of course, you'll maybe lose opportunity
> to chain everything, but now classes a less flexible because you can't send
> them as generic parent. Eg. I wanted to send any of P, B, I... classes to
> sam generic methods and that can't be done.
That is what ConcreteElement is for. If you look at Turbine, Screens,
Navigations, Layouts all return a ConcreteElement and this works just fine
as a generic parent. Also, chaining was a priority for me. I felt that that
is a very important feature of ECS because it makes the code MUCH more
readable.
Design decisions have been documented in the FAQ. Please read it.
-jon
--
Come to the first official Apache Software Foundation
Conference! <http://ApacheCon.Com/>
--
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]