As I mentioned before (http://groups.google.com/group/Google-Web- Toolkit-Contributors/browse_thread/thread/b696e7319fc6bea/), I'm looking to contribute our project back to the incubator as I refactor/ rebuild it. One of the main things that we were looking to simplify was visibility management.
In our particular use cases, almost every application we build has a relatively extensive form with complex visibility logic. For example, if the user presses "Yes" on a radio button, another few fields open up and they fill those fields out. The way that this logic is currently done in GWT is through listeners and a lot of manual work. The module that we created was suppose to simplify this. Here's what we have so far. We have something called a FormatPanel that allows you to make calls like showIfSet(Widget a, Widget b, VisibilityRule rule). The VisibilityRule sets listeners and so receives events from widgets a and b. It then determines if widget "b" should be shown depending on the value of widget a. There is also a hideIfSet() method. Does this approach make sense? Let me know what you think. I'll continue updating this part of the project and I'll try to post some code and more concrete examples in the next few days. I'm just wondering if the approach makes sense to people. Thank you. Regards, Arthur Kalmenson --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~----------~----~----~----~------~----~------~--~---
