Showing posts with label UI Binder GWT. Show all posts
Showing posts with label UI Binder GWT. Show all posts

Tuesday, 21 May 2013

UI Binder GWT


Create UI using ui.xml instead of coding.

Steps
1. Create ui.xml file.
2. bind it to widget.


Advantages
  • Helps productivity and maintainability — it's easy to create UI from scratch or copy/paste across templates;
  • makes it easier to collaborate with UI designers who are more comfortable with XML, HTML and CSS than Java source code;
  • provides a gradual transition during development from HTML mocks to real, interactive UI;
  • encourages a clean separation of the aesthetics of your UI (a declarative XML template) from its programmatic behavior (a Java class);
  • performs thorough compile-time checking of cross-references from Java source to XML and vice-versa;
  • offers direct support for internationalization that works well with GWT's i18n facility; and
  • encourages more efficient use of browser resources by making it convenient to use lightweight HTML elements rather than heavier-weight widgets and panels.


UI Elements in fileName.ui.xml

































Create Widget and get reference of UI Elements  of fileName.ui.xml


 

Event Of UI Element of fileName.ui.xml