KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > roller > ui > rendering > pagers > Pager


1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one or more
3  * contributor license agreements. The ASF licenses this file to You
4  * under the Apache License, Version 2.0 (the "License"); you may not
5  * use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License. For additional information regarding
15  * copyright in this work, please see the NOTICE file in the top level
16  * directory of this distribution.
17  */

18
19 package org.apache.roller.ui.rendering.pagers;
20
21 import java.util.List JavaDoc;
22
23 /**
24  * Common pager interface.
25  */

26 public interface Pager {
27     /**
28      * Link value for returning to pager home
29      */

30     public String JavaDoc getHomeLink();
31
32     /**
33      * Name of pager home.
34      */

35     public String JavaDoc getHomeName();
36
37     /**
38      * Link value for next page in current collection view
39      */

40     public String JavaDoc getNextLink();
41
42     /**
43      * Name for next page in current collection view
44      */

45     public String JavaDoc getNextName();
46
47     /**
48      * Link value for prev page in current collection view
49      */

50     public String JavaDoc getPrevLink();
51
52     /**
53      * Link value for prev page in current collection view
54      */

55     public String JavaDoc getPrevName();
56     
57     /**
58      * Get current list of items available from the pager.
59      */

60     public List JavaDoc getItems();
61     
62 }
63
Popular Tags