org.uqbar.arena.tests.transactional.EditFakeTransactionalDialog Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of arena-examples Show documentation
Show all versions of arena-examples Show documentation
Ejemplos básicos y tests del framework Arena
The newest version!
package org.uqbar.arena.tests.transactional;
import org.uqbar.arena.aop.windows.TransactionalDialog;
import org.uqbar.arena.widgets.Button;
import org.uqbar.arena.widgets.Label;
import org.uqbar.arena.widgets.Panel;
import org.uqbar.arena.widgets.TextBox;
import org.uqbar.arena.windows.WindowOwner;
public class EditFakeTransactionalDialog extends TransactionalDialog{
private static final long serialVersionUID = 1L;
public EditFakeTransactionalDialog(WindowOwner owner, FakeObject model) {
super(owner, model);
}
@Override
protected void createFormPanel(Panel mainPanel) {
new TextBox(mainPanel).bindValueToProperty("name");
new Label(mainPanel).bindValueToProperty("name");
new Button(mainPanel).setCaption("save").onClick(() -> this.accept());
}
}