Author: hlship
Date: Fri Oct 31 11:01:54 2008
New Revision: 709508

URL: http://svn.apache.org/viewvc?rev=709508&view=rev
Log:
TAP5-49: Grid.defaultModel() should be a protected method so that subclasses 
can override the default BeanModel logic

Modified:
    
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/Grid.java

Modified: 
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/Grid.java
URL: 
http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/Grid.java?rev=709508&r1=709507&r2=709508&view=diff
==============================================================================
--- 
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/Grid.java
 (original)
+++ 
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/Grid.java
 Fri Oct 31 11:01:54 2008
@@ -400,7 +400,14 @@
         return new DefaultGridSortModel();
     }
 
-    Binding defaultModel()
+    /**
+     * Returns a [EMAIL PROTECTED] org.apache.tapestry5.Binding} instance that 
attempts to identify the model from the source
+     * parameter (via [EMAIL PROTECTED] 
org.apache.tapestry5.grid.GridDataSource#getRowType()}. Subclasses may override 
to provide
+     * a different mechanism.  The returning binding is variant (not 
invariant).
+     *
+     * @see BeanModelSource#createDisplayModel(Class, 
org.apache.tapestry5.ioc.Messages)
+     */
+    protected Binding defaultModel()
     {
         return new AbstractBinding()
         {


Reply via email to