click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From med...@apache.org
Subject svn commit: r921323 [1/5] - in /click/trunk/click: build/ documentation/docs/ examples/src/org/apache/click/examples/control/ examples/src/org/apache/click/examples/control/cayenne/ examples/src/org/apache/click/examples/control/exporter/ examples/src/...
Date Wed, 10 Mar 2010 12:06:36 GMT
Author: medgar
Date: Wed Mar 10 12:06:32 2010
New Revision: 921323

URL: http://svn.apache.org/viewvc?rev=921323&view=rev
Log:
CLK-640, CLK-606, checkstyle update, example updates, remove @author tags

Added:
    click/trunk/click/examples/src/org/apache/click/examples/control/exporter/package.html
    click/trunk/click/examples/src/org/apache/click/examples/page/form/dynamic/package.html
    click/trunk/click/extras/src/org/apache/click/extras/cayenne/QueryDataProvider.java
    click/trunk/click/extras/src/org/apache/click/extras/util/
    click/trunk/click/extras/src/org/apache/click/extras/util/PaginatingList.java
    click/trunk/click/extras/src/org/apache/click/extras/util/package.html
    click/trunk/click/framework/src/org/apache/click/util/DataProvider.java
Modified:
    click/trunk/click/build/checkstyle-checks.xml
    click/trunk/click/build/checkstyle-suppressions.xml
    click/trunk/click/documentation/docs/roadmap-changes.html
    click/trunk/click/examples/src/org/apache/click/examples/control/ClientPanel.java
    click/trunk/click/examples/src/org/apache/click/examples/control/FilterPanel.java
    click/trunk/click/examples/src/org/apache/click/examples/control/InvestmentSelect.java
    click/trunk/click/examples/src/org/apache/click/examples/control/PackagingRadioGroup.java
    click/trunk/click/examples/src/org/apache/click/examples/control/RichTextArea.java
    click/trunk/click/examples/src/org/apache/click/examples/control/SimplePanel.java
    click/trunk/click/examples/src/org/apache/click/examples/control/SpacerButton.java
    click/trunk/click/examples/src/org/apache/click/examples/control/TitleSelect.java
    click/trunk/click/examples/src/org/apache/click/examples/control/cayenne/CayenneIntegerField.java
    click/trunk/click/examples/src/org/apache/click/examples/control/cayenne/NestedCayenneForm.java
    click/trunk/click/examples/src/org/apache/click/examples/control/exporter/AbstractTableExporter.java
    click/trunk/click/examples/src/org/apache/click/examples/control/exporter/ExcelTableExporter.java
    click/trunk/click/examples/src/org/apache/click/examples/control/exporter/ExportTable.java
    click/trunk/click/examples/src/org/apache/click/examples/control/exporter/TableExportContainer.java
    click/trunk/click/examples/src/org/apache/click/examples/control/html/FeedbackBorder.java
    click/trunk/click/examples/src/org/apache/click/examples/control/html/FieldLabel.java
    click/trunk/click/examples/src/org/apache/click/examples/control/html/Html.java
    click/trunk/click/examples/src/org/apache/click/examples/control/html/Text.java
    click/trunk/click/examples/src/org/apache/click/examples/control/html/cssform/CssForm.java
    click/trunk/click/examples/src/org/apache/click/examples/control/html/cssform/VerticalFieldSet.java
    click/trunk/click/examples/src/org/apache/click/examples/control/html/list/HtmlList.java
    click/trunk/click/examples/src/org/apache/click/examples/control/html/list/ListItem.java
    click/trunk/click/examples/src/org/apache/click/examples/domain/Address.java
    click/trunk/click/examples/src/org/apache/click/examples/domain/BaseEntity.java
    click/trunk/click/examples/src/org/apache/click/examples/domain/Client.java
    click/trunk/click/examples/src/org/apache/click/examples/domain/Course.java
    click/trunk/click/examples/src/org/apache/click/examples/domain/CourseBooking.java
    click/trunk/click/examples/src/org/apache/click/examples/domain/Customer.java
    click/trunk/click/examples/src/org/apache/click/examples/domain/PostCode.java
    click/trunk/click/examples/src/org/apache/click/examples/domain/Student.java
    click/trunk/click/examples/src/org/apache/click/examples/domain/StudentHouse.java
    click/trunk/click/examples/src/org/apache/click/examples/domain/SystemCode.java
    click/trunk/click/examples/src/org/apache/click/examples/domain/User.java
    click/trunk/click/examples/src/org/apache/click/examples/interceptor/ProfilingInterceptor.java
    click/trunk/click/examples/src/org/apache/click/examples/page/BorderPage.java
    click/trunk/click/examples/src/org/apache/click/examples/page/EditCustomer.java
    click/trunk/click/examples/src/org/apache/click/examples/page/HomePage.java
    click/trunk/click/examples/src/org/apache/click/examples/page/SourceViewer.java
    click/trunk/click/examples/src/org/apache/click/examples/page/ajax/AjaxAccordion.java
    click/trunk/click/examples/src/org/apache/click/examples/page/ajax/AjaxCustomer.java
    click/trunk/click/examples/src/org/apache/click/examples/page/ajax/AjaxLiveScroller.java
    click/trunk/click/examples/src/org/apache/click/examples/page/ajax/AjaxSelect.java
    click/trunk/click/examples/src/org/apache/click/examples/page/ajax/AutoCompletePage.java
    click/trunk/click/examples/src/org/apache/click/examples/page/cayenne/AccommodationDemo.java
    click/trunk/click/examples/src/org/apache/click/examples/page/cayenne/CayenneFormPage.java
    click/trunk/click/examples/src/org/apache/click/examples/page/cayenne/EnrollmentDemo.java
    click/trunk/click/examples/src/org/apache/click/examples/page/cayenne/FormTablePage.java
    click/trunk/click/examples/src/org/apache/click/examples/page/cayenne/TabbedCayenneFormPage.java
    click/trunk/click/examples/src/org/apache/click/examples/page/control/ActionDemo.java
    click/trunk/click/examples/src/org/apache/click/examples/page/control/CheckListDemo.java
    click/trunk/click/examples/src/org/apache/click/examples/page/control/EmailForm.java
    click/trunk/click/examples/src/org/apache/click/examples/page/control/FieldSetDemo.java
    click/trunk/click/examples/src/org/apache/click/examples/page/control/FileUpload.java
    click/trunk/click/examples/src/org/apache/click/examples/page/control/ImageDemo.java
    click/trunk/click/examples/src/org/apache/click/examples/page/control/LinkDemo.java
    click/trunk/click/examples/src/org/apache/click/examples/page/control/MenuDemo.java
    click/trunk/click/examples/src/org/apache/click/examples/page/control/PickListDemo.java
    click/trunk/click/examples/src/org/apache/click/examples/page/control/RegexDemo.java
    click/trunk/click/examples/src/org/apache/click/examples/page/control/SelectDemo.java
    click/trunk/click/examples/src/org/apache/click/examples/page/control/SubmitLinkDemo.java
    click/trunk/click/examples/src/org/apache/click/examples/page/form/ContactDetailsPage.java
    click/trunk/click/examples/src/org/apache/click/examples/page/form/ExtraControlsForm.java
    click/trunk/click/examples/src/org/apache/click/examples/page/form/FormLayout.java
    click/trunk/click/examples/src/org/apache/click/examples/page/form/FormProperties.java
    click/trunk/click/examples/src/org/apache/click/examples/page/form/MultipleFormsDemo.java
    click/trunk/click/examples/src/org/apache/click/examples/page/form/SearchForm.java
    click/trunk/click/examples/src/org/apache/click/examples/page/form/StandardControlsForm.java
    click/trunk/click/examples/src/org/apache/click/examples/page/form/TabbedFormDemo.java
    click/trunk/click/examples/src/org/apache/click/examples/page/form/dynamic/DynamicFieldSet.java
    click/trunk/click/examples/src/org/apache/click/examples/page/form/dynamic/DynamicForm.java
    click/trunk/click/examples/src/org/apache/click/examples/page/form/dynamic/DynamicSelect.java
    click/trunk/click/examples/src/org/apache/click/examples/page/form/dynamic/PopulateOnSelect.java
    click/trunk/click/examples/src/org/apache/click/examples/page/general/ControlHeadDemo.java
    click/trunk/click/examples/src/org/apache/click/examples/page/general/DirectPage.java
    click/trunk/click/examples/src/org/apache/click/examples/page/general/ExcelExportPage.java
    click/trunk/click/examples/src/org/apache/click/examples/page/general/ExcelTableExportPage.java
    click/trunk/click/examples/src/org/apache/click/examples/page/general/ExceptionPage.java
    click/trunk/click/examples/src/org/apache/click/examples/page/general/FlashPage.java
    click/trunk/click/examples/src/org/apache/click/examples/page/general/NavigationA.java
    click/trunk/click/examples/src/org/apache/click/examples/page/general/NavigationB.java
    click/trunk/click/examples/src/org/apache/click/examples/page/general/PageHeadDemo.java
    click/trunk/click/examples/src/org/apache/click/examples/page/general/PageImportsExample.java
    click/trunk/click/examples/src/org/apache/click/examples/page/introduction/AdvancedForm.java
    click/trunk/click/examples/src/org/apache/click/examples/page/introduction/AdvancedTable.java
    click/trunk/click/examples/src/org/apache/click/examples/page/introduction/ControlListenerType1Page.java
    click/trunk/click/examples/src/org/apache/click/examples/page/introduction/ControlListenerType2Page.java
    click/trunk/click/examples/src/org/apache/click/examples/page/introduction/HelloWorld.java
    click/trunk/click/examples/src/org/apache/click/examples/page/introduction/SimpleForm.java
    click/trunk/click/examples/src/org/apache/click/examples/page/introduction/SimpleTablePage.java
    click/trunk/click/examples/src/org/apache/click/examples/page/jsp/CustomerTable.java
    click/trunk/click/examples/src/org/apache/click/examples/page/jsp/EditCustomerPage.java
    click/trunk/click/examples/src/org/apache/click/examples/page/jsp/HelloWorld.java
    click/trunk/click/examples/src/org/apache/click/examples/page/jsp/MultiPathDemo.java
    click/trunk/click/examples/src/org/apache/click/examples/page/jsp/NavigationA.java
    click/trunk/click/examples/src/org/apache/click/examples/page/jsp/NavigationB.java
    click/trunk/click/examples/src/org/apache/click/examples/page/pageflow/LastPage.java
    click/trunk/click/examples/src/org/apache/click/examples/page/pageflow/NextPage.java
    click/trunk/click/examples/src/org/apache/click/examples/page/pageflow/StartPage.java
    click/trunk/click/examples/src/org/apache/click/examples/page/panel/FilterPanelDemo.java
    click/trunk/click/examples/src/org/apache/click/examples/page/panel/ListPanelDemo.java
    click/trunk/click/examples/src/org/apache/click/examples/page/panel/PanelColumn.java
    click/trunk/click/examples/src/org/apache/click/examples/page/panel/PanelColumnDemo.java
    click/trunk/click/examples/src/org/apache/click/examples/page/panel/ReusablePanelDemo.java
    click/trunk/click/examples/src/org/apache/click/examples/page/panel/SimplePanelDemo.java
    click/trunk/click/examples/src/org/apache/click/examples/page/panel/TabbedPanelDemo.java
    click/trunk/click/examples/src/org/apache/click/examples/page/quartz/QuartzJobAndTriggerPage.java
    click/trunk/click/examples/src/org/apache/click/examples/page/quartz/QuartzJobSchedulerPage.java
    click/trunk/click/examples/src/org/apache/click/examples/page/security/Login.java
    click/trunk/click/examples/src/org/apache/click/examples/page/security/Logout.java
    click/trunk/click/examples/src/org/apache/click/examples/page/security/Secure.java
    click/trunk/click/examples/src/org/apache/click/examples/page/springsecurity/CreateAccountPage.java
    click/trunk/click/examples/src/org/apache/click/examples/page/springsecurity/LoginPage.java
    click/trunk/click/examples/src/org/apache/click/examples/page/springsecurity/LogoutPage.java
    click/trunk/click/examples/src/org/apache/click/examples/page/springsecurity/NotAuthorizedPage.java
    click/trunk/click/examples/src/org/apache/click/examples/page/springsecurity/secure/SecurePage.java
    click/trunk/click/examples/src/org/apache/click/examples/page/table/EditFormTablePage.java
    click/trunk/click/examples/src/org/apache/click/examples/page/table/EditTable.java
    click/trunk/click/examples/src/org/apache/click/examples/page/table/FormTablePage.java
    click/trunk/click/examples/src/org/apache/click/examples/page/table/LargeDatasetDemo.java
    click/trunk/click/examples/src/org/apache/click/examples/page/table/SearchTablePage.java
    click/trunk/click/examples/src/org/apache/click/examples/page/table/TableDecorator.java
    click/trunk/click/examples/src/org/apache/click/examples/page/table/TableFooter.java
    click/trunk/click/examples/src/org/apache/click/examples/page/table/TablePaginatorPage.java
    click/trunk/click/examples/src/org/apache/click/examples/page/table/TablePaging.java
    click/trunk/click/examples/src/org/apache/click/examples/page/table/TableSorting.java
    click/trunk/click/examples/src/org/apache/click/examples/page/table/TableStyles.java
    click/trunk/click/examples/src/org/apache/click/examples/page/tree/AdvancedTreePage.java
    click/trunk/click/examples/src/org/apache/click/examples/page/tree/CheckboxTreePage.java
    click/trunk/click/examples/src/org/apache/click/examples/page/tree/PageLinkTreePage.java
    click/trunk/click/examples/src/org/apache/click/examples/page/tree/TreePage.java
    click/trunk/click/examples/src/org/apache/click/examples/page/velocity/ActionTable.java
    click/trunk/click/examples/src/org/apache/click/examples/page/velocity/SimpleTable.java
    click/trunk/click/examples/src/org/apache/click/examples/page/velocity/VelocityMacro.java
    click/trunk/click/examples/src/org/apache/click/examples/page/wizard/SelectPostCode.java
    click/trunk/click/examples/src/org/apache/click/examples/page/wizard/Step.java
    click/trunk/click/examples/src/org/apache/click/examples/page/wizard/Step1.java
    click/trunk/click/examples/src/org/apache/click/examples/page/wizard/Step2.java
    click/trunk/click/examples/src/org/apache/click/examples/page/wizard/Step3.java
    click/trunk/click/examples/src/org/apache/click/examples/page/wizard/WizardPage.java
    click/trunk/click/examples/src/org/apache/click/examples/quartz/ExampleJob.java
    click/trunk/click/examples/src/org/apache/click/examples/quartz/JobAndSimpleTrigger.java
    click/trunk/click/examples/src/org/apache/click/examples/quartz/SchedulerService.java
    click/trunk/click/examples/src/org/apache/click/examples/service/ClientService.java
    click/trunk/click/examples/src/org/apache/click/examples/service/CustomerService.java
    click/trunk/click/examples/src/org/apache/click/examples/service/StudentService.java
    click/trunk/click/examples/src/org/apache/click/examples/springsecurity/UserDetailsAdaptor.java
    click/trunk/click/examples/src/org/apache/click/examples/springsecurity/UserDetailsService.java
    click/trunk/click/examples/src/org/apache/click/examples/util/DatabaseInitListener.java
    click/trunk/click/examples/src/org/apache/click/examples/util/ExampleUtils.java
    click/trunk/click/examples/src/org/apache/click/examples/util/customers.txt
    click/trunk/click/framework/src/org/apache/click/Context.java
    click/trunk/click/framework/src/org/apache/click/control/Table.java
    click/trunk/click/framework/src/org/apache/click/util/ClickUtils.java
    click/trunk/click/mock/test/org/apache/click/servlet/MockTests.java

Modified: click/trunk/click/build/checkstyle-checks.xml
URL: http://svn.apache.org/viewvc/click/trunk/click/build/checkstyle-checks.xml?rev=921323&r1=921322&r2=921323&view=diff
==============================================================================
--- click/trunk/click/build/checkstyle-checks.xml (original)
+++ click/trunk/click/build/checkstyle-checks.xml Wed Mar 10 12:06:32 2010
@@ -80,10 +80,12 @@
         <!-- See http://checkstyle.sf.net/config_javadoc.html -->
         <module name="JavadocType">
             <property name="scope" value="protected"/>
+            <property name="allowMissingParamTags" value="true"/>
         </module>
         <module name="JavadocMethod">
             <property name="scope" value="protected"/>
             <property name="allowUndeclaredRTE" value="true"/> 
+            <property name="allowMissingParamTags" value="true"/>
         </module>
         <module name="JavadocVariable">
             <property name="scope" value="protected"/>

Modified: click/trunk/click/build/checkstyle-suppressions.xml
URL: http://svn.apache.org/viewvc/click/trunk/click/build/checkstyle-suppressions.xml?rev=921323&r1=921322&r2=921323&view=diff
==============================================================================
--- click/trunk/click/build/checkstyle-suppressions.xml (original)
+++ click/trunk/click/build/checkstyle-suppressions.xml Wed Mar 10 12:06:32 2010
@@ -44,6 +44,9 @@
               files="MessagesMap.java"/>
               
     <suppress checks="JavadocMethod"
+              files="PaginatingList.java"/>
+
+    <suppress checks="JavadocMethod"
               files="SessionMap.java"/>
               
 	<!-- Line Length -->              

Modified: click/trunk/click/documentation/docs/roadmap-changes.html
URL: http://svn.apache.org/viewvc/click/trunk/click/documentation/docs/roadmap-changes.html?rev=921323&r1=921322&r2=921323&view=diff
==============================================================================
--- click/trunk/click/documentation/docs/roadmap-changes.html (original)
+++ click/trunk/click/documentation/docs/roadmap-changes.html Wed Mar 10 12:06:32 2010
@@ -105,13 +105,18 @@ includes improved Ajax support and @Bind
     </div>
     <ul style="padding: 0em; margin-left:0em;margin-bottom: 2em">
       <li class="change">
+        Added DataProvider interface and support in Table class for on demand
+        loading of list data
+        [<a target="_blank" href="https://issues.apache.org/jira/browse/CLK-640">CLK-640</a>].
+      </li>
+      <li class="change">
         Added improved dynamic Form support. Forms can now optionally bypass
         validation for JavaScript based submissions using the new JavaScript
         function <tt>"Click.submit(formName, validate)"</tt>
-        [<a target="_blank" href="https://issues.apache.org/jira/browse/CLK-CLK-638">CLK-638</a>].
+        [<a target="_blank" href="https://issues.apache.org/jira/browse/CLK-638">CLK-638</a>].
       </li>
       <li class="change">
-        Added improved dynamic Page and Form behavior through new helper methods
+        Added improved dynamic Page and Form behaviour through new helper methods
         that can bind and validate Fields and Forms during the <tt>"onInit"</tt>
         page event. The new methods are:
         <a href="click-api/org/apache/click/util/ClickUtils.html#bind(org.apache.click.control.Field)">ClickUtils.bind(Field)</a>,
@@ -119,7 +124,7 @@ includes improved Ajax support and @Bind
         <a href="click-api/org/apache/click/util/ClickUtils.html#bind(org.apache.click.control.AbstractLink)">ClickUtils.bind(AbstractLink)</a>,
         <a href="click-api/org/apache/click/util/ClickUtils.html#bindAndValidate(org.apache.click.control.Field)">ClickUtils.bindAndValidate(Field)</a>,
         <a href="click-api/org/apache/click/util/ClickUtils.html#bindAndValidate(org.apache.click.control.Form)">ClickUtils.bindAndValidate(Form)</a>
-        [<a target="_blank" href="https://issues.apache.org/jira/browse/CLK-CLK-638">CLK-638</a>].
+        [<a target="_blank" href="https://issues.apache.org/jira/browse/CLK-638">CLK-638</a>].
       </li>
       <li class="change">
         Added new Context methods
@@ -128,7 +133,7 @@ includes improved Ajax support and @Bind
       </li>
       <li class="change">
         Removed Click cores dependency on Velocity. This issue was raised by by Andrey Rybin
-        [<a target="_blank" href="https://issues.apache.org/jira/browse/CLK-CLK-606">CLK-606</a>].
+        [<a target="_blank" href="https://issues.apache.org/jira/browse/CLK-606">CLK-606</a>].
       </li>
     </ul>
   </dd>

Modified: click/trunk/click/examples/src/org/apache/click/examples/control/ClientPanel.java
URL: http://svn.apache.org/viewvc/click/trunk/click/examples/src/org/apache/click/examples/control/ClientPanel.java?rev=921323&r1=921322&r2=921323&view=diff
==============================================================================
--- click/trunk/click/examples/src/org/apache/click/examples/control/ClientPanel.java (original)
+++ click/trunk/click/examples/src/org/apache/click/examples/control/ClientPanel.java Wed Mar 10 12:06:32 2010
@@ -27,8 +27,6 @@ import org.apache.click.extras.control.D
 
 /**
  * Provides a reusable Panel to capture Client details.
- *
- * @author Bob Schellink
  */
 public class ClientPanel extends Panel {
 

Modified: click/trunk/click/examples/src/org/apache/click/examples/control/FilterPanel.java
URL: http://svn.apache.org/viewvc/click/trunk/click/examples/src/org/apache/click/examples/control/FilterPanel.java?rev=921323&r1=921322&r2=921323&view=diff
==============================================================================
--- click/trunk/click/examples/src/org/apache/click/examples/control/FilterPanel.java (original)
+++ click/trunk/click/examples/src/org/apache/click/examples/control/FilterPanel.java Wed Mar 10 12:06:32 2010
@@ -26,8 +26,6 @@ import org.apache.click.extras.control.D
 
 /**
  * Provides a custom date FilterPanel.
- *
- * @author Malcolm Edgar
  */
 public class FilterPanel extends Panel {
 

Modified: click/trunk/click/examples/src/org/apache/click/examples/control/InvestmentSelect.java
URL: http://svn.apache.org/viewvc/click/trunk/click/examples/src/org/apache/click/examples/control/InvestmentSelect.java?rev=921323&r1=921322&r2=921323&view=diff
==============================================================================
--- click/trunk/click/examples/src/org/apache/click/examples/control/InvestmentSelect.java (original)
+++ click/trunk/click/examples/src/org/apache/click/examples/control/InvestmentSelect.java Wed Mar 10 12:06:32 2010
@@ -35,9 +35,8 @@ import org.apache.click.control.Select;
  * </ul>
  * <p/>
  * The Investment options are statically loaded.
- *
- * @author Malcolm Edgar
  */
+@SuppressWarnings("unchecked")
 public class InvestmentSelect extends Select {
 
     private static final long serialVersionUID = 1L;

Modified: click/trunk/click/examples/src/org/apache/click/examples/control/PackagingRadioGroup.java
URL: http://svn.apache.org/viewvc/click/trunk/click/examples/src/org/apache/click/examples/control/PackagingRadioGroup.java?rev=921323&r1=921322&r2=921323&view=diff
==============================================================================
--- click/trunk/click/examples/src/org/apache/click/examples/control/PackagingRadioGroup.java (original)
+++ click/trunk/click/examples/src/org/apache/click/examples/control/PackagingRadioGroup.java Wed Mar 10 12:06:32 2010
@@ -30,14 +30,12 @@ import org.apache.click.control.RadioGro
  * <li>Gift Wrap</li>
  * </ul>
  * <p/>
- *
- * @author Malcolm Edgar
  */
 public class PackagingRadioGroup extends RadioGroup {
 
     private static final long serialVersionUID = 1L;
 
-    static final Map OPTIONS = new LinkedHashMap();
+    static final Map<String, String> OPTIONS = new LinkedHashMap<String, String>();
 
     static {
         OPTIONS.put("STD", "Standard ");

Modified: click/trunk/click/examples/src/org/apache/click/examples/control/RichTextArea.java
URL: http://svn.apache.org/viewvc/click/trunk/click/examples/src/org/apache/click/examples/control/RichTextArea.java?rev=921323&r1=921322&r2=921323&view=diff
==============================================================================
--- click/trunk/click/examples/src/org/apache/click/examples/control/RichTextArea.java (original)
+++ click/trunk/click/examples/src/org/apache/click/examples/control/RichTextArea.java Wed Mar 10 12:06:32 2010
@@ -32,8 +32,6 @@ import org.apache.click.util.HtmlStringB
  * JavaScript libraries in the web apps root directory.
  *
  * @see TextArea
- *
- * @author Malcolm Edgar
  */
 public class RichTextArea extends TextArea {
 

Modified: click/trunk/click/examples/src/org/apache/click/examples/control/SimplePanel.java
URL: http://svn.apache.org/viewvc/click/trunk/click/examples/src/org/apache/click/examples/control/SimplePanel.java?rev=921323&r1=921322&r2=921323&view=diff
==============================================================================
--- click/trunk/click/examples/src/org/apache/click/examples/control/SimplePanel.java (original)
+++ click/trunk/click/examples/src/org/apache/click/examples/control/SimplePanel.java Wed Mar 10 12:06:32 2010
@@ -39,8 +39,6 @@ import org.apache.commons.lang.ClassUtil
  * <p/>
  * In effect SimplePanel falls back to the default rendering of
  * AbstractContainer if the Panel template is not found.
- *
- * @author Bob Schellink
  */
 public class SimplePanel extends Panel {
 

Modified: click/trunk/click/examples/src/org/apache/click/examples/control/SpacerButton.java
URL: http://svn.apache.org/viewvc/click/trunk/click/examples/src/org/apache/click/examples/control/SpacerButton.java?rev=921323&r1=921322&r2=921323&view=diff
==============================================================================
--- click/trunk/click/examples/src/org/apache/click/examples/control/SpacerButton.java (original)
+++ click/trunk/click/examples/src/org/apache/click/examples/control/SpacerButton.java Wed Mar 10 12:06:32 2010
@@ -23,8 +23,6 @@ import org.apache.click.util.HtmlStringB
 
 /**
  * Provides a button spacer control for adding spaces between buttons.
- *
- * @author Malcolm Edgar
  */
 public class SpacerButton extends Button {
 

Modified: click/trunk/click/examples/src/org/apache/click/examples/control/TitleSelect.java
URL: http://svn.apache.org/viewvc/click/trunk/click/examples/src/org/apache/click/examples/control/TitleSelect.java?rev=921323&r1=921322&r2=921323&view=diff
==============================================================================
--- click/trunk/click/examples/src/org/apache/click/examples/control/TitleSelect.java (original)
+++ click/trunk/click/examples/src/org/apache/click/examples/control/TitleSelect.java Wed Mar 10 12:06:32 2010
@@ -32,14 +32,12 @@ import org.apache.click.control.Select;
  * <li>Dr</li>
  * </ul>
  * <p/>
- *
- * @author Malcolm Edgar
  */
 public class TitleSelect extends Select {
 
     private static final long serialVersionUID = 1L;
 
-    static final Map OPTIONS = new LinkedHashMap();
+    static final Map<String, String> OPTIONS = new LinkedHashMap<String, String>();
 
     static {
         OPTIONS.put("", "");

Modified: click/trunk/click/examples/src/org/apache/click/examples/control/cayenne/CayenneIntegerField.java
URL: http://svn.apache.org/viewvc/click/trunk/click/examples/src/org/apache/click/examples/control/cayenne/CayenneIntegerField.java?rev=921323&r1=921322&r2=921323&view=diff
==============================================================================
--- click/trunk/click/examples/src/org/apache/click/examples/control/cayenne/CayenneIntegerField.java (original)
+++ click/trunk/click/examples/src/org/apache/click/examples/control/cayenne/CayenneIntegerField.java Wed Mar 10 12:06:32 2010
@@ -23,11 +23,11 @@ import org.apache.click.extras.control.I
 /**
  * This IntegerField class preserves its value when it is copied from
  * an entity property that is null.
- *
- * @author Bob Schellink
  */
 public class CayenneIntegerField extends IntegerField {
 
+    private static final long serialVersionUID = 1L;
+
     /**
      * Construct a new field for the specified name and label.
      *

Modified: click/trunk/click/examples/src/org/apache/click/examples/control/cayenne/NestedCayenneForm.java
URL: http://svn.apache.org/viewvc/click/trunk/click/examples/src/org/apache/click/examples/control/cayenne/NestedCayenneForm.java?rev=921323&r1=921322&r2=921323&view=diff
==============================================================================
--- click/trunk/click/examples/src/org/apache/click/examples/control/cayenne/NestedCayenneForm.java (original)
+++ click/trunk/click/examples/src/org/apache/click/examples/control/cayenne/NestedCayenneForm.java Wed Mar 10 12:06:32 2010
@@ -30,11 +30,11 @@ import org.apache.cayenne.access.DataCon
  * requests even if <tt>org.apache.click.extras.cayenne.DataContextFilter</tt> is
  * configured to rollback changes after each request, which is the case for
  * click-examples.
- *
- * @author Bob Schellink
  */
 public class NestedCayenneForm extends CayenneForm {
 
+    private static final long serialVersionUID = 1L;
+
     /** A transient reference to a nested DataContext. */
     protected transient DataContext nestedDataContext;
 
@@ -44,7 +44,7 @@ public class NestedCayenneForm extends C
      * @param name the form name
      * @param dataObjectClass the DataObject class
      */
-    public NestedCayenneForm(String name, Class dataObjectClass) {
+    public NestedCayenneForm(String name, Class<? extends DataObject> dataObjectClass) {
         super(name, dataObjectClass);
     }
 
@@ -53,7 +53,7 @@ public class NestedCayenneForm extends C
      *
      * @param dataObjectClass the DataObject class
      */
-    public NestedCayenneForm(Class dataObjectClass) {
+    public NestedCayenneForm(Class<? extends DataObject> dataObjectClass) {
         super(dataObjectClass);
     }
 
@@ -95,6 +95,7 @@ public class NestedCayenneForm extends C
     /**
      * Override onDestroy not to nullify the dataObject instance each request.
      */
+    @Override
     public void onDestroy() {
         // CayenneForm.onDestroy nullifies the dataObject. Below a
         // reference is kept to the cached dataObject

Modified: click/trunk/click/examples/src/org/apache/click/examples/control/exporter/AbstractTableExporter.java
URL: http://svn.apache.org/viewvc/click/trunk/click/examples/src/org/apache/click/examples/control/exporter/AbstractTableExporter.java?rev=921323&r1=921322&r2=921323&view=diff
==============================================================================
--- click/trunk/click/examples/src/org/apache/click/examples/control/exporter/AbstractTableExporter.java (original)
+++ click/trunk/click/examples/src/org/apache/click/examples/control/exporter/AbstractTableExporter.java Wed Mar 10 12:06:32 2010
@@ -31,6 +31,9 @@ import org.apache.click.control.ActionLi
 import org.apache.click.util.ClickUtils;
 import org.apache.commons.lang.StringUtils;
 
+/**
+ * Provides an abstract table data exporter class.
+ */
 public abstract class AbstractTableExporter {
 
     protected String label;

Modified: click/trunk/click/examples/src/org/apache/click/examples/control/exporter/ExcelTableExporter.java
URL: http://svn.apache.org/viewvc/click/trunk/click/examples/src/org/apache/click/examples/control/exporter/ExcelTableExporter.java?rev=921323&r1=921322&r2=921323&view=diff
==============================================================================
--- click/trunk/click/examples/src/org/apache/click/examples/control/exporter/ExcelTableExporter.java (original)
+++ click/trunk/click/examples/src/org/apache/click/examples/control/exporter/ExcelTableExporter.java Wed Mar 10 12:06:32 2010
@@ -43,6 +43,9 @@ import org.apache.poi.hssf.usermodel.HSS
 import org.apache.poi.hssf.usermodel.HSSFWorkbook;
 import org.apache.poi.ss.usermodel.DataFormat;
 
+/**
+ * Provides an Microsft Excel Table data exporter class.
+ */
 public class ExcelTableExporter extends AbstractTableExporter {
 
     private DataFormat cellFormat;

Modified: click/trunk/click/examples/src/org/apache/click/examples/control/exporter/ExportTable.java
URL: http://svn.apache.org/viewvc/click/trunk/click/examples/src/org/apache/click/examples/control/exporter/ExportTable.java?rev=921323&r1=921322&r2=921323&view=diff
==============================================================================
--- click/trunk/click/examples/src/org/apache/click/examples/control/exporter/ExportTable.java (original)
+++ click/trunk/click/examples/src/org/apache/click/examples/control/exporter/ExportTable.java Wed Mar 10 12:06:32 2010
@@ -1,300 +1,302 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.click.examples.control.exporter;
-
-import java.util.ArrayList;
-import java.util.List;
-import org.apache.click.control.Column;
-import org.apache.click.control.Table;
-import org.apache.click.util.HtmlStringBuffer;
-
-/**
- * This example provides a table that can be exported to an Excel spreadsheet.
- */
-public class ExportTable extends Table {
-
-    final static int ALL_ROWS = Integer.MAX_VALUE;
-
-    public static final int EXPORTER_ATTACHED = 1;
-
-    public static final int EXPORTER_DETACHED = 2;
-
-    public static final int EXPORTER_INLINE = 3;
-
-    protected boolean exportTableHeaders = true;
-
-    protected int firstExportRow;
-
-    protected int lastExportRow = ALL_ROWS;
-
-    protected int exportBannerPosition = POSITION_BOTTOM;
-
-    protected int exportAttachment = EXPORTER_ATTACHED;
-
-    protected List excludedColumns;
-
-    protected List excludedExportColumns;
-
-    protected TableExportContainer exportContainer;
-
-    private List exportColumnList;
-
-    public ExportTable() {
-    }
-
-    public ExportTable(String name) {
-        super(name);
-    }
-
-    public TableExportContainer getExportContainer() {
-        if (exportContainer == null) {
-            exportContainer = new TableExportContainer(this);
-        }
-        return exportContainer;
-    }
-
-    public void setExportContainer(TableExportContainer exportContainer) {
-        this.exportContainer = exportContainer;
-    }
-
-    /**
-     * @return the exportTableHeaders
-     */
-    public boolean isExportTableHeaders() {
-        return exportTableHeaders;
-    }
-
-    /**
-     * @return the firstExportRow
-     */
-    public int getFirstExportRow() {
-        return firstExportRow;
-    }
-
-    /**
-     * @param firstExportRow the firstExportRow to set
-     */
-    public void setFirstExportRow(int firstExportRow) {
-        this.firstExportRow = firstExportRow;
-    }
-
-    /**
-     * @return the lastExportRow
-     */
-    public int getLastExportRow() {
-        return lastExportRow;
-    }
-
-    /**
-     * @param lastExportRow the lastExportRow to set
-     */
-    public void setLastExportRow(int lastExportRow) {
-        this.lastExportRow = lastExportRow;
-    }
-
-    /**
-     * @param exportTableHeaders the exportTableHeaders to set
-     */
-    public void setExportTableHeaders(boolean exportTableHeaders) {
-        this.exportTableHeaders = exportTableHeaders;
-    }
-
-    /**
-     * @return the exportBannerPosition
-     */
-    public int getExportBannerPosition() {
-        return exportBannerPosition;
-    }
-
-    /**
-     * @param exportBannerPosition the exportBannerPosition to set
-     */
-    public void setExportBannerPosition(int exportBannerPosition) {
-        this.exportBannerPosition = exportBannerPosition;
-    }
-
-    public List<String> getExcludedColumns() {
-        if (excludedColumns == null) {
-            excludedColumns = new ArrayList();
-        }
-        return excludedColumns;
-    }
-
-    public void setExcludedColumns(List<String> excludedColumns) {
-        this.excludedColumns = excludedColumns;
-    }
-
-    public List<String> getExcludedExportColumns() {
-        if (excludedExportColumns == null) {
-            excludedExportColumns = new ArrayList();
-        }
-        return excludedExportColumns;
-    }
-
-    public void setExcludedExportColumns(List<String> excludedExportColumns) {
-        this.excludedExportColumns = excludedExportColumns;
-    }
-
-   public List getExportColumnList() {
-        if (exportColumnList == null) {
-            exportColumnList = new ArrayList();
-            List<Column> columns = getColumnList();
-            List<String> excludes = getExcludedExportColumns();
-
-            for (Column column : columns) {
-                String name = column.getName();
-                if (!excludes.contains(name)) {
-                    exportColumnList.add(column);
-                }
-            }
-        }
-        return exportColumnList;
-    }
-
-    public int getExportAttachment() {
-        return exportAttachment;
-    }
-
-    public void setExportAttachment(int exportAttachment) {
-        this.exportAttachment = exportAttachment;
-    }
-
-    @Override
-    public void onInit() {
-        super.onInit();
-        getExportContainer().onInit();
-    }
-
-    @Override
-    public void onRender() {
-        super.onRender();
-        getExportContainer().onRender();
-    }
-
-    @Override
-    public boolean onProcess() {
-        boolean continueProcessing = super.onProcess();
-        TableExportContainer exportContainer = getExportContainer();
-        if (!exportContainer.onProcess()) {
-            continueProcessing = false;
-        }
-        return continueProcessing;
-    }
-
-    public void render(HtmlStringBuffer buffer) {
-        if (getExportAttachment() == EXPORTER_ATTACHED) {
-            if (getExportBannerPosition() == POSITION_BOTH ||
-                getExportBannerPosition() == POSITION_TOP) {
-                getExportContainer().render(buffer);
-            }
-        }
-
-        super.render(buffer);
-
-        if (getExportAttachment() == EXPORTER_ATTACHED) {
-            if (getExportBannerPosition() == POSITION_BOTH ||
-                getExportBannerPosition() == POSITION_BOTTOM) {
-                getExportContainer().render(buffer);
-            }
-        }
-    }
-
-    protected void renderBodyRows(HtmlStringBuffer buffer) {
-        if (getExportAttachment() == EXPORTER_INLINE) {
-            if (getExportBannerPosition() == POSITION_TOP
-                || getExportBannerPosition() == POSITION_BOTH) {
-                buffer.append("<tbody>\n");
-                buffer.append("<tr class=\"export-inline\">\n");
-                buffer.append("<td class=\"export-inline\" colspan=\"");
-                buffer.append(getColumnList().size() - getExcludedExportColumns().size());
-                buffer.append("\">");
-
-                getExportContainer().render(buffer);
-
-                buffer.append("</td></tr>\n");
-                buffer.append("</tbody>\n");
-            }
-        }
-
-        super.renderBodyRows(buffer);
-
-        if (getExportAttachment() == EXPORTER_INLINE) {
-            if (getExportBannerPosition() == POSITION_BOTTOM
-                || getExportBannerPosition() == POSITION_BOTH) {
-                buffer.append("<tbody>\n");
-                buffer.append("<tr class=\"export-inline\">\n");
-                buffer.append("<td class=\"export-inline\" colspan=\"");
-                buffer.append(getColumnList().size() - getExcludedExportColumns().size());
-                buffer.append("\">");
-
-                getExportContainer().render(buffer);
-
-                buffer.append("</td></tr>\n");
-                buffer.append("</tbody>\n");
-            }
-        }
-    }
-
-    @Override
-    protected void renderHeaderRow(HtmlStringBuffer buffer) {
-        buffer.append("<thead>\n<tr>\n");
-
-        final List tableColumns = getColumnList();
-        final List excludedColumns = getExcludedColumns();
-
-        for (int j = 0; j < tableColumns.size(); j++) {
-            Column column = (Column) tableColumns.get(j);
-            if (!excludedColumns.contains(column.getName())) {
-                column.renderTableHeader(buffer, getContext());
-                if (j < tableColumns.size() - 1) {
-                    buffer.append("\n");
-                }
-            }
-        }
-
-        buffer.append("</tr></thead>\n");
-    }
-
-    @Override
-    protected void renderBodyRowColumns(HtmlStringBuffer buffer, int rowIndex) {
-        Object row = getRowList().get(rowIndex);
-
-        final List tableColumns = getColumnList();
-        final List excludedColumns = getExcludedColumns();
-
-        for (int j = 0; j < tableColumns.size(); j++) {
-            Column column = (Column) tableColumns.get(j);
-            if (!excludedColumns.contains(column.getName())) {
-                column.renderTableData(row, buffer, getContext(), rowIndex);
-                if (j < tableColumns.size() - 1) {
-                    buffer.append("\n");
-                }
-            }
-        }
-    }
-
-    @Override
-    protected void renderBodyNoRows(HtmlStringBuffer buffer) {
-        buffer.append("<tr class=\"odd\"><td colspan=\"");
-        buffer.append(getColumns().size() - getExcludedColumns().size());
-        buffer.append("\" class=\"error\">");
-        buffer.append(getMessage("table-no-rows-found"));
-        buffer.append("</td></tr>\n");
-    }
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.click.examples.control.exporter;
+
+import java.util.ArrayList;
+import java.util.List;
+import org.apache.click.control.Column;
+import org.apache.click.control.Table;
+import org.apache.click.util.HtmlStringBuffer;
+
+/**
+ * This example provides a table that can be exported to an Excel spreadsheet.
+ */
+public class ExportTable extends Table {
+
+    private static final long serialVersionUID = 1L;
+
+    final static int ALL_ROWS = Integer.MAX_VALUE;
+
+    public static final int EXPORTER_ATTACHED = 1;
+
+    public static final int EXPORTER_DETACHED = 2;
+
+    public static final int EXPORTER_INLINE = 3;
+
+    protected boolean exportTableHeaders = true;
+
+    protected int firstExportRow;
+
+    protected int lastExportRow = ALL_ROWS;
+
+    protected int exportBannerPosition = POSITION_BOTTOM;
+
+    protected int exportAttachment = EXPORTER_ATTACHED;
+
+    protected List excludedColumns;
+
+    protected List excludedExportColumns;
+
+    protected TableExportContainer exportContainer;
+
+    private List exportColumnList;
+
+    public ExportTable() {
+    }
+
+    public ExportTable(String name) {
+        super(name);
+    }
+
+    public TableExportContainer getExportContainer() {
+        if (exportContainer == null) {
+            exportContainer = new TableExportContainer(this);
+        }
+        return exportContainer;
+    }
+
+    public void setExportContainer(TableExportContainer exportContainer) {
+        this.exportContainer = exportContainer;
+    }
+
+    /**
+     * @return the exportTableHeaders
+     */
+    public boolean isExportTableHeaders() {
+        return exportTableHeaders;
+    }
+
+    /**
+     * @return the firstExportRow
+     */
+    public int getFirstExportRow() {
+        return firstExportRow;
+    }
+
+    /**
+     * @param firstExportRow the firstExportRow to set
+     */
+    public void setFirstExportRow(int firstExportRow) {
+        this.firstExportRow = firstExportRow;
+    }
+
+    /**
+     * @return the lastExportRow
+     */
+    public int getLastExportRow() {
+        return lastExportRow;
+    }
+
+    /**
+     * @param lastExportRow the lastExportRow to set
+     */
+    public void setLastExportRow(int lastExportRow) {
+        this.lastExportRow = lastExportRow;
+    }
+
+    /**
+     * @param exportTableHeaders the exportTableHeaders to set
+     */
+    public void setExportTableHeaders(boolean exportTableHeaders) {
+        this.exportTableHeaders = exportTableHeaders;
+    }
+
+    /**
+     * @return the exportBannerPosition
+     */
+    public int getExportBannerPosition() {
+        return exportBannerPosition;
+    }
+
+    /**
+     * @param exportBannerPosition the exportBannerPosition to set
+     */
+    public void setExportBannerPosition(int exportBannerPosition) {
+        this.exportBannerPosition = exportBannerPosition;
+    }
+
+    public List<String> getExcludedColumns() {
+        if (excludedColumns == null) {
+            excludedColumns = new ArrayList();
+        }
+        return excludedColumns;
+    }
+
+    public void setExcludedColumns(List<String> excludedColumns) {
+        this.excludedColumns = excludedColumns;
+    }
+
+    public List<String> getExcludedExportColumns() {
+        if (excludedExportColumns == null) {
+            excludedExportColumns = new ArrayList();
+        }
+        return excludedExportColumns;
+    }
+
+    public void setExcludedExportColumns(List<String> excludedExportColumns) {
+        this.excludedExportColumns = excludedExportColumns;
+    }
+
+   public List getExportColumnList() {
+        if (exportColumnList == null) {
+            exportColumnList = new ArrayList();
+            List<Column> columns = getColumnList();
+            List<String> excludes = getExcludedExportColumns();
+
+            for (Column column : columns) {
+                String name = column.getName();
+                if (!excludes.contains(name)) {
+                    exportColumnList.add(column);
+                }
+            }
+        }
+        return exportColumnList;
+    }
+
+    public int getExportAttachment() {
+        return exportAttachment;
+    }
+
+    public void setExportAttachment(int exportAttachment) {
+        this.exportAttachment = exportAttachment;
+    }
+
+    @Override
+    public void onInit() {
+        super.onInit();
+        getExportContainer().onInit();
+    }
+
+    @Override
+    public void onRender() {
+        super.onRender();
+        getExportContainer().onRender();
+    }
+
+    @Override
+    public boolean onProcess() {
+        boolean continueProcessing = super.onProcess();
+        TableExportContainer exportContainer = getExportContainer();
+        if (!exportContainer.onProcess()) {
+            continueProcessing = false;
+        }
+        return continueProcessing;
+    }
+
+    public void render(HtmlStringBuffer buffer) {
+        if (getExportAttachment() == EXPORTER_ATTACHED) {
+            if (getExportBannerPosition() == POSITION_BOTH ||
+                getExportBannerPosition() == POSITION_TOP) {
+                getExportContainer().render(buffer);
+            }
+        }
+
+        super.render(buffer);
+
+        if (getExportAttachment() == EXPORTER_ATTACHED) {
+            if (getExportBannerPosition() == POSITION_BOTH ||
+                getExportBannerPosition() == POSITION_BOTTOM) {
+                getExportContainer().render(buffer);
+            }
+        }
+    }
+
+    protected void renderBodyRows(HtmlStringBuffer buffer) {
+        if (getExportAttachment() == EXPORTER_INLINE) {
+            if (getExportBannerPosition() == POSITION_TOP
+                || getExportBannerPosition() == POSITION_BOTH) {
+                buffer.append("<tbody>\n");
+                buffer.append("<tr class=\"export-inline\">\n");
+                buffer.append("<td class=\"export-inline\" colspan=\"");
+                buffer.append(getColumnList().size() - getExcludedExportColumns().size());
+                buffer.append("\">");
+
+                getExportContainer().render(buffer);
+
+                buffer.append("</td></tr>\n");
+                buffer.append("</tbody>\n");
+            }
+        }
+
+        super.renderBodyRows(buffer);
+
+        if (getExportAttachment() == EXPORTER_INLINE) {
+            if (getExportBannerPosition() == POSITION_BOTTOM
+                || getExportBannerPosition() == POSITION_BOTH) {
+                buffer.append("<tbody>\n");
+                buffer.append("<tr class=\"export-inline\">\n");
+                buffer.append("<td class=\"export-inline\" colspan=\"");
+                buffer.append(getColumnList().size() - getExcludedExportColumns().size());
+                buffer.append("\">");
+
+                getExportContainer().render(buffer);
+
+                buffer.append("</td></tr>\n");
+                buffer.append("</tbody>\n");
+            }
+        }
+    }
+
+    @Override
+    protected void renderHeaderRow(HtmlStringBuffer buffer) {
+        buffer.append("<thead>\n<tr>\n");
+
+        final List tableColumns = getColumnList();
+        final List excludedColumns = getExcludedColumns();
+
+        for (int j = 0; j < tableColumns.size(); j++) {
+            Column column = (Column) tableColumns.get(j);
+            if (!excludedColumns.contains(column.getName())) {
+                column.renderTableHeader(buffer, getContext());
+                if (j < tableColumns.size() - 1) {
+                    buffer.append("\n");
+                }
+            }
+        }
+
+        buffer.append("</tr></thead>\n");
+    }
+
+    @Override
+    protected void renderBodyRowColumns(HtmlStringBuffer buffer, int rowIndex) {
+        Object row = getRowList().get(rowIndex);
+
+        final List tableColumns = getColumnList();
+        final List excludedColumns = getExcludedColumns();
+
+        for (int j = 0; j < tableColumns.size(); j++) {
+            Column column = (Column) tableColumns.get(j);
+            if (!excludedColumns.contains(column.getName())) {
+                column.renderTableData(row, buffer, getContext(), rowIndex);
+                if (j < tableColumns.size() - 1) {
+                    buffer.append("\n");
+                }
+            }
+        }
+    }
+
+    @Override
+    protected void renderBodyNoRows(HtmlStringBuffer buffer) {
+        buffer.append("<tr class=\"odd\"><td colspan=\"");
+        buffer.append(getColumns().size() - getExcludedColumns().size());
+        buffer.append("\" class=\"error\">");
+        buffer.append(getMessage("table-no-rows-found"));
+        buffer.append("</td></tr>\n");
+    }
+}

Modified: click/trunk/click/examples/src/org/apache/click/examples/control/exporter/TableExportContainer.java
URL: http://svn.apache.org/viewvc/click/trunk/click/examples/src/org/apache/click/examples/control/exporter/TableExportContainer.java?rev=921323&r1=921322&r2=921323&view=diff
==============================================================================
--- click/trunk/click/examples/src/org/apache/click/examples/control/exporter/TableExportContainer.java (original)
+++ click/trunk/click/examples/src/org/apache/click/examples/control/exporter/TableExportContainer.java Wed Mar 10 12:06:32 2010
@@ -1,151 +1,156 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.click.examples.control.exporter;
-
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-import org.apache.click.Context;
-import org.apache.click.Control;
-import org.apache.click.control.Renderable;
-import org.apache.click.util.HtmlStringBuffer;
-
-public class TableExportContainer implements Renderable {
-
-    private List<AbstractTableExporter> exporters = new ArrayList<AbstractTableExporter>();
-
-    protected String separator;
-
-    private ExportTable table;
-
-    public TableExportContainer(ExportTable table) {
-        this.table = table;
-    }
-
-    public void add(AbstractTableExporter exporter) {
-        getExporters().add(exporter);
-    }
-
-    public void remove(AbstractTableExporter exporter) {
-        getExporters().remove(exporter);
-    }
-
-    public void render(HtmlStringBuffer buffer) {
-        renderExportBanner(buffer);
-    }
-
-    public List<AbstractTableExporter> getExporters() {
-        return exporters;
-    }
-
-    public void setExporters(List<AbstractTableExporter> exporters) {
-        this.exporters = exporters;
-    }
-
-    public void onInit() {
-        String tableName = table.getName();
-        for (AbstractTableExporter exporter : getExporters()) {
-            exporter.setName(tableName);
-            Control control = exporter.getExportLink();
-            control.onInit();
-        }
-    }
-
-    public void onRender() {
-        AbstractTableExporter selectedExporter = null;
-        for (AbstractTableExporter exporter : getExporters()) {
-            exporter.getExportLink().onRender();
-            if (exporter.isSelected()) {
-                selectedExporter = exporter;
-            }
-        }
-        if(selectedExporter != null) {
-            export(selectedExporter);
-        }
-    }
-
-    public boolean onProcess() {
-        boolean continueProcessing = true;
-        for (AbstractTableExporter exporter : getExporters()) {
-            if (!exporter.getExportLink().onProcess()) {
-                continueProcessing = false;
-            }
-        }
-        return continueProcessing;
-    }
-
-    public String getSeparator() {
-        return separator;
-    }
-
-    public void setSeparator(String separator) {
-        this.separator = separator;
-    }
-
-    public void export(AbstractTableExporter exporter) {
-        Context context = table.getContext();
-        exporter.export(table, context);
-    }
-
-    public String toString() {
-        HtmlStringBuffer buffer = new HtmlStringBuffer();
-
-        render(buffer);
-
-        return buffer.toString();
-    }
-
-    /**
-     * Render the table export banner.
-     * <p/>
-     * See the <tt>TableExportContainer.properies</tt> for the HTML template:
-     * <tt>table-export-banner</tt>.
-     *
-     * @param buffer the StringBuffer to render the paging controls to
-     */
-    protected void renderExportBanner(HtmlStringBuffer buffer) {
-        List exporters = getExporters();
-        if (exporters == null || exporters.isEmpty()) {
-            return;
-        }
-
-        HtmlStringBuffer banner = new HtmlStringBuffer();
-        Iterator<AbstractTableExporter> it = getExporters().iterator();
-        while(it.hasNext()) {
-            AbstractTableExporter exporter = it.next();
-            exporter.getExportLink().render(banner);
-            if (it.hasNext()) {
-                banner.append(getSeparator());
-            }
-        }
-        String[] args = { getStyleClass(), banner.toString()};
-        buffer.append(table.getMessage("table-export-banner", args));
-    }
-
-    protected String getStyleClass() {
-        if (table.getExportAttachment() == ExportTable.EXPORTER_ATTACHED) {
-            return "export-attached";
-        } else if (table.getExportAttachment() == ExportTable.EXPORTER_DETACHED) {
-            return "export-detached";
-        } else if (table.getExportAttachment() == ExportTable.EXPORTER_INLINE) {
-            return "export-inline";
-        }
-        return "export";
-    }
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.click.examples.control.exporter;
+
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+import org.apache.click.Context;
+import org.apache.click.Control;
+import org.apache.click.control.Renderable;
+import org.apache.click.util.HtmlStringBuffer;
+
+/**
+ * Provides a table container exporter class.
+ */
+public class TableExportContainer implements Renderable {
+
+    private static final long serialVersionUID = 1L;
+
+    private List<AbstractTableExporter> exporters = new ArrayList<AbstractTableExporter>();
+
+    protected String separator;
+
+    private ExportTable table;
+
+    public TableExportContainer(ExportTable table) {
+        this.table = table;
+    }
+
+    public void add(AbstractTableExporter exporter) {
+        getExporters().add(exporter);
+    }
+
+    public void remove(AbstractTableExporter exporter) {
+        getExporters().remove(exporter);
+    }
+
+    public void render(HtmlStringBuffer buffer) {
+        renderExportBanner(buffer);
+    }
+
+    public List<AbstractTableExporter> getExporters() {
+        return exporters;
+    }
+
+    public void setExporters(List<AbstractTableExporter> exporters) {
+        this.exporters = exporters;
+    }
+
+    public void onInit() {
+        String tableName = table.getName();
+        for (AbstractTableExporter exporter : getExporters()) {
+            exporter.setName(tableName);
+            Control control = exporter.getExportLink();
+            control.onInit();
+        }
+    }
+
+    public void onRender() {
+        AbstractTableExporter selectedExporter = null;
+        for (AbstractTableExporter exporter : getExporters()) {
+            exporter.getExportLink().onRender();
+            if (exporter.isSelected()) {
+                selectedExporter = exporter;
+            }
+        }
+        if(selectedExporter != null) {
+            export(selectedExporter);
+        }
+    }
+
+    public boolean onProcess() {
+        boolean continueProcessing = true;
+        for (AbstractTableExporter exporter : getExporters()) {
+            if (!exporter.getExportLink().onProcess()) {
+                continueProcessing = false;
+            }
+        }
+        return continueProcessing;
+    }
+
+    public String getSeparator() {
+        return separator;
+    }
+
+    public void setSeparator(String separator) {
+        this.separator = separator;
+    }
+
+    public void export(AbstractTableExporter exporter) {
+        Context context = table.getContext();
+        exporter.export(table, context);
+    }
+
+    public String toString() {
+        HtmlStringBuffer buffer = new HtmlStringBuffer();
+
+        render(buffer);
+
+        return buffer.toString();
+    }
+
+    /**
+     * Render the table export banner.
+     * <p/>
+     * See the <tt>TableExportContainer.properies</tt> for the HTML template:
+     * <tt>table-export-banner</tt>.
+     *
+     * @param buffer the StringBuffer to render the paging controls to
+     */
+    protected void renderExportBanner(HtmlStringBuffer buffer) {
+        List exporters = getExporters();
+        if (exporters == null || exporters.isEmpty()) {
+            return;
+        }
+
+        HtmlStringBuffer banner = new HtmlStringBuffer();
+        Iterator<AbstractTableExporter> it = getExporters().iterator();
+        while(it.hasNext()) {
+            AbstractTableExporter exporter = it.next();
+            exporter.getExportLink().render(banner);
+            if (it.hasNext()) {
+                banner.append(getSeparator());
+            }
+        }
+        String[] args = { getStyleClass(), banner.toString()};
+        buffer.append(table.getMessage("table-export-banner", args));
+    }
+
+    protected String getStyleClass() {
+        if (table.getExportAttachment() == ExportTable.EXPORTER_ATTACHED) {
+            return "export-attached";
+        } else if (table.getExportAttachment() == ExportTable.EXPORTER_DETACHED) {
+            return "export-detached";
+        } else if (table.getExportAttachment() == ExportTable.EXPORTER_INLINE) {
+            return "export-inline";
+        }
+        return "export";
+    }
+}

Added: click/trunk/click/examples/src/org/apache/click/examples/control/exporter/package.html
URL: http://svn.apache.org/viewvc/click/trunk/click/examples/src/org/apache/click/examples/control/exporter/package.html?rev=921323&view=auto
==============================================================================
--- click/trunk/click/examples/src/org/apache/click/examples/control/exporter/package.html (added)
+++ click/trunk/click/examples/src/org/apache/click/examples/control/exporter/package.html Wed Mar 10 12:06:32 2010
@@ -0,0 +1,22 @@
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one
+   or more contributor license agreements.  See the NOTICE file
+   distributed with this work for additional information
+   regarding copyright ownership.  The ASF licenses this file
+   to you under the Apache License, Version 2.0 (the
+   "License"); you may not use this file except in compliance
+   with the License.  You may obtain a copy of the License at
+
+     http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing,
+   software distributed under the License is distributed on an
+   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+   KIND, either express or implied.  See the License for the
+   specific language governing permissions and limitations
+   under the License.
+-->
+
+<body>
+Provides table data exporter utility classes.
+</body>
\ No newline at end of file

Modified: click/trunk/click/examples/src/org/apache/click/examples/control/html/FeedbackBorder.java
URL: http://svn.apache.org/viewvc/click/trunk/click/examples/src/org/apache/click/examples/control/html/FeedbackBorder.java?rev=921323&r1=921322&r2=921323&view=diff
==============================================================================
--- click/trunk/click/examples/src/org/apache/click/examples/control/html/FeedbackBorder.java (original)
+++ click/trunk/click/examples/src/org/apache/click/examples/control/html/FeedbackBorder.java Wed Mar 10 12:06:32 2010
@@ -28,8 +28,6 @@ import org.apache.click.control.Field;
  * If the field is required, FeedbackBorder will add a "required" css class.
  * <p/>
  * If the field is invalid, FeedbackBorder will display the field error message.
- *
- * @author Bob Schellink
  */
 public class FeedbackBorder extends AbstractContainer {
 
@@ -58,6 +56,7 @@ public class FeedbackBorder extends Abst
         return control;
     }
 
+    @Override
     public void onRender() {
         super.onRender();
 

Modified: click/trunk/click/examples/src/org/apache/click/examples/control/html/FieldLabel.java
URL: http://svn.apache.org/viewvc/click/trunk/click/examples/src/org/apache/click/examples/control/html/FieldLabel.java?rev=921323&r1=921322&r2=921323&view=diff
==============================================================================
--- click/trunk/click/examples/src/org/apache/click/examples/control/html/FieldLabel.java (original)
+++ click/trunk/click/examples/src/org/apache/click/examples/control/html/FieldLabel.java Wed Mar 10 12:06:32 2010
@@ -25,11 +25,11 @@ import org.apache.click.util.HtmlStringB
 
 /**
  * This control associates an HTML <em>label</em> with a target field.
- *
- * @author Bob Schellink
  */
 public class FieldLabel extends AbstractControl {
 
+    private static final long serialVersionUID = 1L;
+
     private Field target;
 
     private String label;

Modified: click/trunk/click/examples/src/org/apache/click/examples/control/html/Html.java
URL: http://svn.apache.org/viewvc/click/trunk/click/examples/src/org/apache/click/examples/control/html/Html.java?rev=921323&r1=921322&r2=921323&view=diff
==============================================================================
--- click/trunk/click/examples/src/org/apache/click/examples/control/html/Html.java (original)
+++ click/trunk/click/examples/src/org/apache/click/examples/control/html/Html.java Wed Mar 10 12:06:32 2010
@@ -23,11 +23,11 @@ import org.apache.click.util.HtmlStringB
 
 /**
  * This control allows rendering of arbitrary html.
- *
- * @author Bob Schellink
  */
 public class Html extends AbstractControl {
 
+    private static final long serialVersionUID = 1L;
+
     private String text;
 
     public Html() {
@@ -45,12 +45,14 @@ public class Html extends AbstractContro
         this.text = text;
     }
 
+    @Override
     public String toString() {
         HtmlStringBuffer buffer = new HtmlStringBuffer(getControlSizeEst());
         render(buffer);
         return buffer.toString();
     }
 
+    @Override
     public void render(HtmlStringBuffer buffer) {
         if(getText() != null) {
             buffer.append(getText());

Modified: click/trunk/click/examples/src/org/apache/click/examples/control/html/Text.java
URL: http://svn.apache.org/viewvc/click/trunk/click/examples/src/org/apache/click/examples/control/html/Text.java?rev=921323&r1=921322&r2=921323&view=diff
==============================================================================
--- click/trunk/click/examples/src/org/apache/click/examples/control/html/Text.java (original)
+++ click/trunk/click/examples/src/org/apache/click/examples/control/html/Text.java Wed Mar 10 12:06:32 2010
@@ -23,15 +23,14 @@ import org.apache.click.util.HtmlStringB
 
 /**
  * This control renders a string of text.
- *
- * @author Bob Schellink
  */
 public class Text extends AbstractControl {
 
+    private static final long serialVersionUID = 1L;
+
     private Object text;
 
     public Text() {
-
     }
 
     public Text(Object text) {
@@ -46,12 +45,14 @@ public class Text extends AbstractContro
         this.text = text;
     }
 
+    @Override
     public String toString() {
         HtmlStringBuffer buffer = new HtmlStringBuffer(20);
         render(buffer);
         return buffer.toString();
     }
 
+    @Override
     public void render(HtmlStringBuffer buffer) {
         if(getText() != null) {
             buffer.append(getText());

Modified: click/trunk/click/examples/src/org/apache/click/examples/control/html/cssform/CssForm.java
URL: http://svn.apache.org/viewvc/click/trunk/click/examples/src/org/apache/click/examples/control/html/cssform/CssForm.java?rev=921323&r1=921322&r2=921323&view=diff
==============================================================================
--- click/trunk/click/examples/src/org/apache/click/examples/control/html/cssform/CssForm.java (original)
+++ click/trunk/click/examples/src/org/apache/click/examples/control/html/cssform/CssForm.java Wed Mar 10 12:06:32 2010
@@ -1,51 +1,48 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.click.examples.control.html.cssform;
-
-import org.apache.click.extras.control.HtmlForm;
-import org.apache.click.util.ClickUtils;
-import org.apache.click.util.HtmlStringBuffer;
-
-/**
- * A custom Form that adds the Html import, "cssform.css", to the page.
- *
- * @author Bob Schellink
- */
-public class CssForm extends HtmlForm {
-
-    // ---------------------------------------------------- Public Constructors
-
-    public CssForm(String name) {
-        super(name);
-    }
-
-    // --------------------------------------------------------- Public Methods
-
-    public String getHtmlImports() {
-        HtmlStringBuffer buffer = new HtmlStringBuffer(512);
-
-        // Include the Form default imports
-        buffer.append(super.getHtmlImports());
-
-        // Include CSS for ContactDetailsForm
-        String imports = "<link type=\"text/css\" rel=\"stylesheet\" href=\"{0}/assets/css/cssform{1}.css\"/>\n";
-        buffer.append(ClickUtils.createHtmlImport(imports, getContext()));
-        return buffer.toString();
-    }
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.click.examples.control.html.cssform;
+
+import org.apache.click.extras.control.HtmlForm;
+import org.apache.click.util.ClickUtils;
+import org.apache.click.util.HtmlStringBuffer;
+
+/**
+ * A custom Form that adds the Html import, "cssform.css", to the page.
+ */
+public class CssForm extends HtmlForm {
+
+    private static final long serialVersionUID = 1L;
+
+    public CssForm(String name) {
+        super(name);
+    }
+
+    @Override
+    public String getHtmlImports() {
+        HtmlStringBuffer buffer = new HtmlStringBuffer(512);
+
+        // Include the Form default imports
+        buffer.append(super.getHtmlImports());
+
+        // Include CSS for ContactDetailsForm
+        String imports = "<link type=\"text/css\" rel=\"stylesheet\" href=\"{0}/assets/css/cssform{1}.css\"/>\n";
+        buffer.append(ClickUtils.createHtmlImport(imports, getContext()));
+        return buffer.toString();
+    }
+}

Modified: click/trunk/click/examples/src/org/apache/click/examples/control/html/cssform/VerticalFieldSet.java
URL: http://svn.apache.org/viewvc/click/trunk/click/examples/src/org/apache/click/examples/control/html/cssform/VerticalFieldSet.java?rev=921323&r1=921322&r2=921323&view=diff
==============================================================================
--- click/trunk/click/examples/src/org/apache/click/examples/control/html/cssform/VerticalFieldSet.java (original)
+++ click/trunk/click/examples/src/org/apache/click/examples/control/html/cssform/VerticalFieldSet.java Wed Mar 10 12:06:32 2010
@@ -1,81 +1,79 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.click.examples.control.html.cssform;
-
-import org.apache.click.Control;
-import org.apache.click.control.Field;
-import org.apache.click.examples.control.html.FeedbackBorder;
-import org.apache.click.examples.control.html.FieldLabel;
-import org.apache.click.examples.control.html.list.HtmlList;
-import org.apache.click.examples.control.html.list.ListItem;
-import org.apache.click.extras.control.HtmlFieldSet;
-
-/**
- * A custom FieldSet that renders its fields vertically using an HtmlList
- * instance.
- */
-public class VerticalFieldSet extends HtmlFieldSet {
-
-    // -------------------------------------------------------------- Variables
-
-    private HtmlList htmlList = new HtmlList();
-
-    // ---------------------------------------------------- Public Constructors
-
-    public VerticalFieldSet(String name) {
-        super(name);
-        add(htmlList);
-    }
-
-    // --------------------------------------------------------- Public Methods
-
-    public Control insert(Control control, int index) {
-        if (!(control instanceof HtmlList)) {
-            throw new IllegalArgumentException("only HtmlLists can be added to CssFieldSet.");
-        }
-        return super.insert(control, index);
-    }
-
-    public Field add(Field field) {
-        return add(field, null);
-    }
-
-    public Field add(Field field, String labelStr) {
-        ListItem item = new ListItem();
-        htmlList.add(item);
-
-        field.setAttribute("class", "text");
-        FieldLabel label = null;
-        if (labelStr != null) {
-            label = new FieldLabel(field, labelStr);
-        } else {
-            label = new FieldLabel(field);
-        }
-        item.add(label);
-
-        FeedbackBorder border = new FeedbackBorder();
-        border.add(field);
-        item.add(border);
-        return field;
-    }
-
-    public HtmlList getHtmlList() {
-        return htmlList;
-    }
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.click.examples.control.html.cssform;
+
+import org.apache.click.Control;
+import org.apache.click.control.Field;
+import org.apache.click.examples.control.html.FeedbackBorder;
+import org.apache.click.examples.control.html.FieldLabel;
+import org.apache.click.examples.control.html.list.HtmlList;
+import org.apache.click.examples.control.html.list.ListItem;
+import org.apache.click.extras.control.HtmlFieldSet;
+
+/**
+ * A custom FieldSet that renders its fields vertically using an HtmlList
+ * instance.
+ */
+public class VerticalFieldSet extends HtmlFieldSet {
+
+    private static final long serialVersionUID = 1L;
+
+    private HtmlList htmlList = new HtmlList();
+
+    public VerticalFieldSet(String name) {
+        super(name);
+        add(htmlList);
+    }
+
+    // Public Methods ---------------------------------------------------------
+
+    public Control insert(Control control, int index) {
+        if (!(control instanceof HtmlList)) {
+            throw new IllegalArgumentException("only HtmlLists can be added to CssFieldSet.");
+        }
+        return super.insert(control, index);
+    }
+
+    public Field add(Field field) {
+        return add(field, null);
+    }
+
+    public Field add(Field field, String labelStr) {
+        ListItem item = new ListItem();
+        htmlList.add(item);
+
+        field.setAttribute("class", "text");
+        FieldLabel label = null;
+        if (labelStr != null) {
+            label = new FieldLabel(field, labelStr);
+        } else {
+            label = new FieldLabel(field);
+        }
+        item.add(label);
+
+        FeedbackBorder border = new FeedbackBorder();
+        border.add(field);
+        item.add(border);
+        return field;
+    }
+
+    public HtmlList getHtmlList() {
+        return htmlList;
+    }
+}

Modified: click/trunk/click/examples/src/org/apache/click/examples/control/html/list/HtmlList.java
URL: http://svn.apache.org/viewvc/click/trunk/click/examples/src/org/apache/click/examples/control/html/list/HtmlList.java?rev=921323&r1=921322&r2=921323&view=diff
==============================================================================
--- click/trunk/click/examples/src/org/apache/click/examples/control/html/list/HtmlList.java (original)
+++ click/trunk/click/examples/src/org/apache/click/examples/control/html/list/HtmlList.java Wed Mar 10 12:06:32 2010
@@ -19,16 +19,17 @@
 package org.apache.click.examples.control.html.list;
 
 import java.util.List;
+
 import org.apache.click.Control;
 import org.apache.click.control.AbstractContainer;
 
 /**
  * This control provides HTML ordered and unordered lists.
- *
- * @author Bob Schellink
  */
 public class HtmlList extends AbstractContainer {
 
+    private static final long serialVersionUID = 1L;
+
     public static final int UNORDERED_LIST = 0;
 
     public static final int ORDERED_LIST = 1;
@@ -79,7 +80,7 @@ public class HtmlList extends AbstractCo
     }
 
     public ListItem getLast() {
-        List items = getControls();
+        List<Control> items = getControls();
         if (items.size() == 0) {
             throw new IllegalStateException("HtmlList is empty and contains no ListItems.");
         }

Modified: click/trunk/click/examples/src/org/apache/click/examples/control/html/list/ListItem.java
URL: http://svn.apache.org/viewvc/click/trunk/click/examples/src/org/apache/click/examples/control/html/list/ListItem.java?rev=921323&r1=921322&r2=921323&view=diff
==============================================================================
--- click/trunk/click/examples/src/org/apache/click/examples/control/html/list/ListItem.java (original)
+++ click/trunk/click/examples/src/org/apache/click/examples/control/html/list/ListItem.java Wed Mar 10 12:06:32 2010
@@ -22,11 +22,11 @@ import org.apache.click.control.Abstract
 
 /**
  * This control provides HTML listitem for ordered and unordered lists.
- *
- * @author Bob Schellink
  */
 public class ListItem extends AbstractContainer {
 
+    private static final long serialVersionUID = 1L;
+
     public ListItem() {
     }
 

Modified: click/trunk/click/examples/src/org/apache/click/examples/domain/Address.java
URL: http://svn.apache.org/viewvc/click/trunk/click/examples/src/org/apache/click/examples/domain/Address.java?rev=921323&r1=921322&r2=921323&view=diff
==============================================================================
--- click/trunk/click/examples/src/org/apache/click/examples/domain/Address.java (original)
+++ click/trunk/click/examples/src/org/apache/click/examples/domain/Address.java Wed Mar 10 12:06:32 2010
@@ -22,8 +22,6 @@ import org.apache.click.examples.domain.
 
 /**
  * Provides an Address entity class.
- *
- * @author Malcolm Edgar
  */
 public class Address extends _Address {
 

Modified: click/trunk/click/examples/src/org/apache/click/examples/domain/BaseEntity.java
URL: http://svn.apache.org/viewvc/click/trunk/click/examples/src/org/apache/click/examples/domain/BaseEntity.java?rev=921323&r1=921322&r2=921323&view=diff
==============================================================================
--- click/trunk/click/examples/src/org/apache/click/examples/domain/BaseEntity.java (original)
+++ click/trunk/click/examples/src/org/apache/click/examples/domain/BaseEntity.java Wed Mar 10 12:06:32 2010
@@ -25,8 +25,6 @@ import org.apache.cayenne.PersistenceSta
 /**
  * Provides an base entity CayenneDataObject class with id getter and isNew
  * methods. This class should be extended by the auto package classes.
- *
- * @author Malcolm Edgar
  */
 public class BaseEntity extends CayenneDataObject {
 

Modified: click/trunk/click/examples/src/org/apache/click/examples/domain/Client.java
URL: http://svn.apache.org/viewvc/click/trunk/click/examples/src/org/apache/click/examples/domain/Client.java?rev=921323&r1=921322&r2=921323&view=diff
==============================================================================
--- click/trunk/click/examples/src/org/apache/click/examples/domain/Client.java (original)
+++ click/trunk/click/examples/src/org/apache/click/examples/domain/Client.java Wed Mar 10 12:06:32 2010
@@ -22,8 +22,6 @@ import org.apache.click.examples.domain.
 
 /**
  * Provides an Client entity class.
- *
- * @author Malcolm Edgar
  */
 public class Client extends _Client {
 

Modified: click/trunk/click/examples/src/org/apache/click/examples/domain/Course.java
URL: http://svn.apache.org/viewvc/click/trunk/click/examples/src/org/apache/click/examples/domain/Course.java?rev=921323&r1=921322&r2=921323&view=diff
==============================================================================
--- click/trunk/click/examples/src/org/apache/click/examples/domain/Course.java (original)
+++ click/trunk/click/examples/src/org/apache/click/examples/domain/Course.java Wed Mar 10 12:06:32 2010
@@ -1,25 +1,30 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.click.examples.domain;
-
-import org.apache.click.examples.domain.auto._Course;
-
-public class Course extends _Course {
-
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.click.examples.domain;
+
+import org.apache.click.examples.domain.auto._Course;
+
+/**
+ * Provides an Course entity class.
+ */
+public class Course extends _Course {
+
+    private static final long serialVersionUID = 1L;
+
+}

Modified: click/trunk/click/examples/src/org/apache/click/examples/domain/CourseBooking.java
URL: http://svn.apache.org/viewvc/click/trunk/click/examples/src/org/apache/click/examples/domain/CourseBooking.java?rev=921323&r1=921322&r2=921323&view=diff
==============================================================================
--- click/trunk/click/examples/src/org/apache/click/examples/domain/CourseBooking.java (original)
+++ click/trunk/click/examples/src/org/apache/click/examples/domain/CourseBooking.java Wed Mar 10 12:06:32 2010
@@ -22,8 +22,6 @@ import org.apache.click.examples.domain.
 
 /**
  * Provides an Course Booking entity class.
- *
- * @author Malcolm Edgar
  */
 public class CourseBooking extends _CourseBooking {
 

Modified: click/trunk/click/examples/src/org/apache/click/examples/domain/Customer.java
URL: http://svn.apache.org/viewvc/click/trunk/click/examples/src/org/apache/click/examples/domain/Customer.java?rev=921323&r1=921322&r2=921323&view=diff
==============================================================================
--- click/trunk/click/examples/src/org/apache/click/examples/domain/Customer.java (original)
+++ click/trunk/click/examples/src/org/apache/click/examples/domain/Customer.java Wed Mar 10 12:06:32 2010
@@ -22,8 +22,6 @@ import org.apache.click.examples.domain.
 
 /**
  * Provides an Customer entity class.
- *
- * @author Malcolm Edgar
  */
 public class Customer extends _Customer {
 

Modified: click/trunk/click/examples/src/org/apache/click/examples/domain/PostCode.java
URL: http://svn.apache.org/viewvc/click/trunk/click/examples/src/org/apache/click/examples/domain/PostCode.java?rev=921323&r1=921322&r2=921323&view=diff
==============================================================================
--- click/trunk/click/examples/src/org/apache/click/examples/domain/PostCode.java (original)
+++ click/trunk/click/examples/src/org/apache/click/examples/domain/PostCode.java Wed Mar 10 12:06:32 2010
@@ -20,6 +20,9 @@ package org.apache.click.examples.domain
 
 import org.apache.click.examples.domain.auto._PostCode;
 
+/**
+ * Provides an Client entity class.
+ */
 public class PostCode extends _PostCode {
 
     private static final long serialVersionUID = 1L;



Mime
View raw message