this.css = res.gwtCompilerCss();
this.compileState = model;
setElement(Elements.asJsElement(binder.createAndBindUi(this)));
((AnchorElement)draftButton).setOnclick(new EventListener() {
@Override
public void handleEvent(Event evt) {
getDelegate().onDraftButtonClicked();
}
});
((AnchorElement)compileButton).setOnclick(new EventListener() {
@Override
public void handleEvent(Event evt) {
getDelegate().onCompileButtonClicked();
}
});
((AnchorElement)testButton).setOnclick(new EventListener() {
@Override
public void handleEvent(Event evt) {
getDelegate().onTestButtonClicked();
}
});
((AnchorElement)killButton).setOnclick(new EventListener() {
@Override
public void handleEvent(Event evt) {
getDelegate().onKillButtonClicked();
}
});
((AnchorElement)save).setOnclick(new EventListener() {
@Override
public void handleEvent(Event evt) {
getDelegate().onSaveButtonClicked();
}
});
((AnchorElement)load).setOnclick(new EventListener() {
@Override
public void handleEvent(Event evt) {
getDelegate().onLoadButtonClicked();
}
});