@Bindable protected Form buttonsForm = new Form();
@Bindable protected Form form = new Form();
public ImageDemo() {
// Buttons Form
ImageSubmit editSubmit = new ImageSubmit("edit", "/assets/images/edit.gif");
editSubmit.setListener(this, "onEditClick");
editSubmit.setTitle("Edit");
buttonsForm.add(editSubmit);
ImageSubmit deleteSubmit = new ImageSubmit("delete", "/assets/images/delete.gif");
deleteSubmit.setListener(this, "onDeleteClick");
deleteSubmit.setTitle("Delete");
buttonsForm.add(deleteSubmit);
// Colors Form
form.add(new Label("label", "<b>Color Chooser</b>"));
colorSubmit = new ImageSubmit("submit", "/assets/images/colors.gif");
colorSubmit.setListener(this, "onColorClick");
form.add(colorSubmit);
}