Created
November 2, 2010 23:02
-
-
Save amaltson/660479 to your computer and use it in GitHub Desktop.
The driver that sets up the data binding.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class EmailDriver { | |
interface Driver extends SimpleBeanEditorDriver<Email, EmailEditor> { | |
} | |
Driver driver = GWT.create(Driver.class); | |
void edit(Email p) { | |
EmailEditor editor = new EmailEditor(); | |
// initialize the driver and edit the given email. | |
driver.initialize(editor); | |
driver.edit(p); | |
} | |
void save() { | |
Email edited = driver.flush(); | |
Window.alert("Edited email: " + edited.getEmail()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment