GWT model, presenter, view framework
OTHER License
See tessell.org.
After checking Tessell out of git, there are two main projects, tessell-user
and tessell-dev
.
tessell-user
uses annotation processing to generate some event classes, which is unfortunately kind of janky to setup in Eclipse.
.classpath
/.factorypath
files assume this setupGRADLE_REPO
has /yourHomeDir/.gradle/caches/modules-2
tessell-user
and tessell-dev
into Eclipsetessell-user
tessell-user
tessell-user
ui.xml
fileSetActions
binder.when(...).is(true).set(//
textOf(...).toOrElse("", ""), // toOrElse returns SetAction
styleOf(...).to(bz.active())); // to returns SetAction
binder.on(keyPressOf(...)).then(execute(command));
binder.on(clickOf(...)).then(toggle(button));
binder.on(clickOf(...)).set(SetAction...);
binder.on(blurOf(...)).set(SetAction...);
// or, for more unique static imports
binder.on(blurOf(...), thenSet(textOf(...).to(asdf)));
// string actions
binder.when(condition, action1, action2);
// e.g.
binder.when(value, is(true), show(this), hide(that));
Non-trivial omponents, e.g.
<foo:Form>
<fields>
<foo:TextLine />
</fields>
<blah>
<foo:Bar />
</blah>
</foo:Form>
Goes to:
form.addField(textLine1);
form.setBlah(...);
Any HTML implicitly becomes an HTMLPanel, e.g.:
<foo:Form>
<blah>
<p>
<foo:Bar />
</p>
</blah>
</foo:Form>
Goes to:
form.setBlah(htmlPanel, List<Bar> bars);