click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r928332 - /click/trunk/click/framework/src/org/apache/click/util/PagingDataProvider.java
Date Sun, 28 Mar 2010 04:15:38 GMT
Author: sabob
Date: Sun Mar 28 04:15:38 2010
New Revision: 928332

URL: http://svn.apache.org/viewvc?rev=928332&view=rev
Log:
added paging data provider interface

Added:
    click/trunk/click/framework/src/org/apache/click/util/PagingDataProvider.java

Added: click/trunk/click/framework/src/org/apache/click/util/PagingDataProvider.java
URL: http://svn.apache.org/viewvc/click/trunk/click/framework/src/org/apache/click/util/PagingDataProvider.java?rev=928332&view=auto
==============================================================================
--- click/trunk/click/framework/src/org/apache/click/util/PagingDataProvider.java (added)
+++ click/trunk/click/framework/src/org/apache/click/util/PagingDataProvider.java Sun Mar
28 04:15:38 2010
@@ -0,0 +1,32 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.click.util;
+
+/**
+ * An interface to provide paginated data to controls.
+ */
+public interface PagingDataProvider<T> extends DataProvider {
+
+    /**
+     * Return the total number of results represented by this DataProvider.
+     *
+     * @return the total number of results represented by this DataProvider
+     */
+    public int size();
+}



Mime
View raw message