You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@click.apache.org by sa...@apache.org on 2009/04/27 20:39:51 UTC

svn commit: r769096 - /incubator/click/trunk/click/examples/src/org/apache/click/examples/page/cayenne/FormTablePage.java

Author: sabob
Date: Mon Apr 27 18:39:50 2009
New Revision: 769096

URL: http://svn.apache.org/viewvc?rev=769096&view=rev
Log:
added javadoc to methods

Modified:
    incubator/click/trunk/click/examples/src/org/apache/click/examples/page/cayenne/FormTablePage.java

Modified: incubator/click/trunk/click/examples/src/org/apache/click/examples/page/cayenne/FormTablePage.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/examples/src/org/apache/click/examples/page/cayenne/FormTablePage.java?rev=769096&r1=769095&r2=769096&view=diff
==============================================================================
--- incubator/click/trunk/click/examples/src/org/apache/click/examples/page/cayenne/FormTablePage.java (original)
+++ incubator/click/trunk/click/examples/src/org/apache/click/examples/page/cayenne/FormTablePage.java Mon Apr 27 18:39:50 2009
@@ -113,6 +113,11 @@
         removeLink.setAttribute("onclick", "return window.confirm('Are you sure you want to delete this record?');");
     }
 
+    /**
+     * The save event handler.
+     *
+     * @return true if processing should continue, false otherwise
+     */
     public boolean onSaveClick() {
         if (form.isValid()) {
             DataObject dataObject = form.getDataObject();
@@ -124,11 +129,21 @@
         return true;
     }
 
+    /**
+     * The cancel event handler.
+     *
+     * @return true if processing should continue, false otherwise
+     */
     public boolean onCancelClick() {
         clear();
         return true;
     }
 
+    /**
+     * The edit event handler.
+     *
+     * @return true if processing should continue, false otherwise
+     */
     public boolean onEditClick() {
         Integer id = editLink.getValueInteger();
         if (id != null) {
@@ -138,6 +153,11 @@
         return true;
     }
 
+    /**
+     * The remove event handler.
+     *
+     * @return true if processing should continue, false otherwise
+     */
     public boolean onRemoveClick() {
         Integer id = removeLink.getValueInteger();
         if (id != null) {
@@ -150,6 +170,9 @@
         return true;
     }
 
+    /**
+     * Clear the form dataObject and any errors it might have.
+     */
     public void clear() {
         form.setDataObject(null);
         form.clearErrors();
@@ -190,7 +213,7 @@
     /**
      * Return the list of DataObjects to display in the table.
      *
-     * @return the
+     * @return the list of DataObject to display in the table
      */
     @SuppressWarnings("unchecked")
     public abstract List getRowList();