You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by hu...@apache.org on 2002/11/05 00:29:06 UTC
cvs commit: jakarta-commons-sandbox/scaffold/src/java/org/apache/commons/scaffold/util ScrollerBean.java
husted 2002/11/04 15:29:06
Modified: scaffold/src/java/org/apache/commons/scaffold/util
ScrollerBean.java
Log:
+ Add support for searchLabel and isLike properties.
Revision Changes Path
1.3 +33 -4 jakarta-commons-sandbox/scaffold/src/java/org/apache/commons/scaffold/util/ScrollerBean.java
Index: ScrollerBean.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/scaffold/src/java/org/apache/commons/scaffold/util/ScrollerBean.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ScrollerBean.java 31 Oct 2002 14:27:45 -0000 1.2
+++ ScrollerBean.java 4 Nov 2002 23:29:05 -0000 1.3
@@ -74,6 +74,16 @@
/**
+ * Returns whether this search uses the LIKE
+ * operator so that other methods know to
+ * wrap <code>searchValue</code> in a call to
+ * <code>like</code> [false].
+ * @returns True if this search uses the LIKE operator
+ */
+ public boolean isLike();
+
+
+ /**
* The total number of entries in search list.
* The default behavior returns a "like" search count
* of entries matching the searchKey.
@@ -94,8 +104,8 @@
/**
- * Returns the String to use to describe the property
- * being searched ["property"].
+ * Returns the name of the property being matched
+ * with the <code>searchValue</code>.
* Default method returns null.
* Must be overridden or provide functionality.
* @returns The search property
@@ -104,6 +114,17 @@
/**
+ * Returns a label to the property being searched.
+ * This can be the property name or a more
+ * descriptive legend.
+ * Default method returns <code>searchProperty</code>.
+ * Must be overridden or provide functionality.
+ * @returns The label for the search property
+ */
+ public String searchLabel();
+
+
+ /**
* Whether to branch to "failure" if list returns zero entries.
*/
public boolean failsOnEmpty ();
@@ -162,9 +183,17 @@
/**
+ * Setup the legend for the result list.
+ * Default behavior is to use the <code>searchLabel</code>
+ * and <code>searchValue</code> (if any).
+ */
+ public void listLegend(ResultList list);
+
+
+ /**
* Invoke business logic; return result.
*/
- public Object scrollerSearch() throws Exception;
+ public ProcessResult scrollerSearch() throws Exception;
} // end ScrollerBean
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>