Revision: 1580 http://svn.sourceforge.net/spring-rich-c/?rev=1580&view=rev Author: kdonald Date: 2006-11-21 23:09:58 -0800 (Tue, 21 Nov 2006)
Log Message: ----------- polish Modified Paths: -------------- trunk/spring-richclient/samples/simple/src/main/java/org/springframework/richclient/samples/simple/ui/ContactPropertiesDialog.java Modified: trunk/spring-richclient/samples/simple/src/main/java/org/springframework/richclient/samples/simple/ui/ContactPropertiesDialog.java =================================================================== --- trunk/spring-richclient/samples/simple/src/main/java/org/springframework/richclient/samples/simple/ui/ContactPropertiesDialog.java 2006-11-22 07:08:16 UTC (rev 1579) +++ trunk/spring-richclient/samples/simple/src/main/java/org/springframework/richclient/samples/simple/ui/ContactPropertiesDialog.java 2006-11-22 07:09:58 UTC (rev 1580) @@ -62,6 +62,10 @@ this.dataStore = dataStore; } + private Contact getEditingContact() { + return (Contact) form.getFormModel().getFormObject(); + } + @Override protected void onAboutToShow() { if (creatingNew) { @@ -76,10 +80,7 @@ } } - /* - * (non-Javadoc) - * @see org.springframework.richclient.dialog.ApplicationDialog#onFinish() - */ + @Override protected boolean onFinish() { // commit any buffered edits to the model form.getFormModel().commit(); @@ -97,13 +98,7 @@ return true; } - private Contact getEditingContact() { - return (Contact) form.getFormModel().getFormObject(); - } - - /** - * Handle a dialog cancellation request. Get use confirmation before discarding unsaved changes. - */ + @Override protected void onCancel() { // Warn the user if they are about to discard their changes if (form.getFormModel().isDirty()) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ spring-rich-c-cvs mailing list spring-rich-c-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/spring-rich-c-cvs