01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. The ASF licenses this file to You
04: * under the Apache License, Version 2.0 (the "License"); you may not
05: * use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
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;
22:
23: /**
24: * Common pager interface.
25: */
26: public interface Pager {
27: /**
28: * Link value for returning to pager home
29: */
30: public String getHomeLink();
31:
32: /**
33: * Name of pager home.
34: */
35: public String getHomeName();
36:
37: /**
38: * Link value for next page in current collection view
39: */
40: public String getNextLink();
41:
42: /**
43: * Name for next page in current collection view
44: */
45: public String getNextName();
46:
47: /**
48: * Link value for prev page in current collection view
49: */
50: public String getPrevLink();
51:
52: /**
53: * Link value for prev page in current collection view
54: */
55: public String getPrevName();
56:
57: /**
58: * Get current list of items available from the pager.
59: */
60: public List getItems();
61:
62: }
|