Revision: 1619
          http://svn.sourceforge.net/spring-rich-c/?rev=1619&view=rev
Author:   mathiasbr
Date:     2007-01-02 00:44:15 -0800 (Tue, 02 Jan 2007)

Log Message:
-----------
refactored FieldFaceSource to allow using any context instance or type

Modified Paths:
--------------
    
trunk/spring-richclient/binding/src/main/java/org/springframework/binding/form/FieldFaceSource.java

Modified: 
trunk/spring-richclient/binding/src/main/java/org/springframework/binding/form/FieldFaceSource.java
===================================================================
--- 
trunk/spring-richclient/binding/src/main/java/org/springframework/binding/form/FieldFaceSource.java
 2006-12-30 12:15:42 UTC (rev 1618)
+++ 
trunk/spring-richclient/binding/src/main/java/org/springframework/binding/form/FieldFaceSource.java
 2007-01-02 08:44:15 UTC (rev 1619)
@@ -15,10 +15,10 @@
  */
 package org.springframework.binding.form;
 
-import java.util.Map;
 
 /**
- * Interface to be implemented by objects that can resolve a FieldFace for a 
given form model or context id and a field path.
+ * Interface to be implemented by objects that can resolve a FieldFace for a
+ * field path and optionaly a given context.
  * 
  * @author Oliver Hutchison
  * @author Mathias Broekelmann
@@ -26,42 +26,21 @@
  */
 public interface FieldFaceSource {
 
-    /**
-     * Return the FieldFace for the given form model and form field.
-     * 
-     * @param formModel
-     *            the form model for which the FieldFace is being resolved
-     * @param field
-     *            the form field
-     * @return the FieldFace for the given form model and field (never null).
-     */
-    FieldFace getFieldFace(FormModel formModel, String field);
+       /**
+        * Return the FieldFace for the field.
+        * 
+        * @param field the form field
+        * @return the FieldFace for the given field (never null).
+        */
+       FieldFace getFieldFace(String field);
 
-    /**
-     * Return the FieldFace for the given field name and a context.
-     * 
-     * @param field
-     *            the field name
-     * @param contextId
-     *            optional context id for the field face
-     * @return the FieldFace for the given field (never null).
-     * @throws IllegalArgumentException
-     *             if field is null or empty
-     */
-    FieldFace getFieldFace(String field, String contextId);
-
-    /**
-     * Return the FieldFace for the given field name a context and a map 
containing values to create the field face.
-     * 
-     * @param field
-     *            the field name
-     * @param contextId
-     *            optional context id for the field face
-     * @param context
-     *            contains optional context values
-     * @return the FieldFace for the given field (never null).
-     * @throws IllegalArgumentException
-     *             if field is null or empty
-     */
-    FieldFace getFieldFace(String field, String contextId, Map context);
+       /**
+        * Return the FieldFace for the given field name and a context.
+        * 
+        * @param field the field name
+        * @param context optional context for the field face
+        * @return the FieldFace for the given field (never null).
+        * @throws IllegalArgumentException if field is null or empty
+        */
+       FieldFace getFieldFace(String field, Object context);
 }


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
spring-rich-c-cvs mailing list
spring-rich-c-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/spring-rich-c-cvs

Reply via email to