i'm not super opposed to making iterator() public since Iterator is an interface and all...
Jonathan Locke wrote:
i was originally hoping to avoid exposing that detail. you can visit child components with public final Object visitChildren(final Class c, final IVisitor visitor)
unfortunately, this recurses into subcontainers. we /could/ expose the iterator. or we could add a recurse boolean to visitChildren.
if you just want to recurse one level right now, you could use visitChildren and then check in the callback if component.getParent() == container.
so in any case, what you want is possible... maybe just not as convenient as we'd like at the moment.
Johan Compagner wrote:
Hi,
There is currently no way to iterate or get by index all child components from a container
And now i can't make for example a table that disables all links when i call setEnabled(false) on it
By walking over all listItems and there childs...
But currently the container doesn't have any support for this.
johan
------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ Wicket-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-develop
------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ Wicket-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-develop
------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ Wicket-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-develop
