public void save() {
page.getObject().setDescription(description);
}
private TextAreaInput createInputWidget() {
TextAreaInput widget = new TextAreaInput("Description", new Receiver<String>() {
@Override
public void handle(String s) {
if (s != null) {
handleNewDescription(description, s);
}
page.restoreFocus(50);
}
});
widget.setCaption(createCaption());
widget.setOverlayContainer(page.getOverlayContainer());
widget.setSize(8, 50);
return widget;
}