You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@click.apache.org by me...@apache.org on 2009/04/28 14:26:27 UTC
svn commit: r769364 -
/incubator/click/trunk/click/extras/src/org/apache/click/extras/control/FormTable.java
Author: medgar
Date: Tue Apr 28 12:26:26 2009
New Revision: 769364
URL: http://svn.apache.org/viewvc?rev=769364&view=rev
Log:
checkstyle fixes
Modified:
incubator/click/trunk/click/extras/src/org/apache/click/extras/control/FormTable.java
Modified: incubator/click/trunk/click/extras/src/org/apache/click/extras/control/FormTable.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/extras/src/org/apache/click/extras/control/FormTable.java?rev=769364&r1=769363&r2=769364&view=diff
==============================================================================
--- incubator/click/trunk/click/extras/src/org/apache/click/extras/control/FormTable.java (original)
+++ incubator/click/trunk/click/extras/src/org/apache/click/extras/control/FormTable.java Tue Apr 28 12:26:26 2009
@@ -30,7 +30,6 @@
import org.apache.click.control.HiddenField;
import org.apache.click.control.Table;
import org.apache.click.util.HtmlStringBuffer;
-import ognl.Ognl;
import org.apache.commons.lang.StringUtils;
@@ -378,11 +377,11 @@
/**
* @see org.apache.click.control.Table#setSortedColumn(java.lang.String)
*
- * @param value the the name of the sorted column
+ * @param columnName the name of the sorted column
*/
public void setSortedColumn(String columnName) {
Field field = (Field) getForm().getFields().get(COLUMN);
- if(field != null){
+ if (field != null) {
field.setValue(columnName);
}
setSorted(false);
@@ -392,11 +391,11 @@
/**
* @see org.apache.click.control.Table#setSortedAscending(boolean)
*
- * @param value the ascending sort order status
+ * @param ascending the ascending sort order status
*/
public void setSortedAscending(boolean ascending) {
Field field = (Field) getForm().getFields().get(ASCENDING);
- if(field != null){
+ if (field != null) {
field.setValue(Boolean.toString(ascending));
}
setSorted(false);
@@ -410,7 +409,7 @@
*/
public void setPageNumber(int pageNumber) {
Field field = (Field) getForm().getFields().get(PAGE);
- if(field != null){
+ if (field != null) {
field.setValue(Integer.toString(pageNumber));
}
super.setPageNumber(pageNumber);