|
GuitBinder
Overview of GuitBinder
IntroductionAs in Guit 1.5 the ViewBinder and EventBusBinder will get deprecated and replaced for GuitBinder. Features
First ViewImplementation recycling resultsBlips demo on chrome: First time (rendering 20 blips): 203ms. Next times (20 item recycling the views): 13ms. Thats awesome or what!? :D and it comes for free with GuitBinder. @ViewHandlerA view handler binds view fields. Format: {fieldName}${eventName} Where {eventName}: ClickEvent -> click, ValueChangeEvent -> valueChange example: @ViewHandler
void button1$click() {
....
}With guit-gen you get validation of the fields names and of the events. Binding multiple fieldsexample: @ViewHandler
void button1$text1$click() {
....
}@EventBusHandlerThis one binds the presenter with event bus events. Example: @EventBusHandler
public void $login(String user) {
...
}to bind with this event: @GwtEvent(EventKind.SHARED)
public class Login {
String user;
}
| |