You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by hl...@apache.org on 2008/03/18 17:42:37 UTC
svn commit: r638436 -
/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/Grid.java
Author: hlship
Date: Tue Mar 18 09:42:27 2008
New Revision: 638436
URL: http://svn.apache.org/viewvc?rev=638436&view=rev
Log:
TAPESTRY-2271: Expose the Grid's rowsPerPage and row properties to Java code (instead of using @Property)
Modified:
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/Grid.java
Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/Grid.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/Grid.java?rev=638436&r1=638435&r2=638436&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/Grid.java (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/corelib/components/Grid.java Tue Mar 18 09:42:27 2008
@@ -68,14 +68,13 @@
* set.
*/
@Parameter("25")
- @Property
private int _rowsPerPage;
/**
* Defines where the pager (used to navigate within the "pages" of results) should be displayed: "top", "bottom",
* "both" or "none".
*/
- @Parameter(value = "top", defaultPrefix = "literal")
+ @Parameter(value = "top", defaultPrefix = TapestryConstants.LITERAL_BINDING_PREFIX)
private GridPagerPosition _pagerPosition;
/**
@@ -84,7 +83,6 @@
* use the property bound to the row parameter to know what they should render.
*/
@Parameter
- @Property
private Object _row;
/**
@@ -439,5 +437,20 @@
public void setCurrentPage(int currentPage)
{
_currentPage = currentPage;
+ }
+
+ public int getRowsPerPage()
+ {
+ return _rowsPerPage;
+ }
+
+ public Object getRow()
+ {
+ return _row;
+ }
+
+ public void setRow(Object row)
+ {
+ _row = row;
}
}