KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > opensubsystems > patterns > listdata > www > ListDataPreviousPageTag


1 /*
2  * Copyright (c) 2003 - 2007 OpenSubsystems s.r.o. Slovak Republic. All rights reserved.
3  *
4  * Project: OpenSubsystems
5  *
6  * $Id: ListDataPreviousPageTag.java,v 1.2 2007/02/20 04:18:18 bastafidli Exp $
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; version 2 of the License.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20  */

21  
22 package org.opensubsystems.patterns.listdata.www;
23
24
25 /**
26  * Custom tag to generate hyperlink that can invoke instance of
27  * ListBrowserServlet and display the previous page. This class implements
28  * functionality similar to methods in listdata.js but only based on the data
29  * available at the time when the page is generated. If the page dynamically
30  * changes some of the list data pattern variables for example based on users'
31  * action, you should use methods in the listdata.js instead. Keep this
32  * functionality synchronized with the one provided by the JavaScript file.
33  *
34  * @version $Id: ListDataPreviousPageTag.java,v 1.2 2007/02/20 04:18:18 bastafidli Exp $
35  * @author Miro Halas
36  * @code.reviewer Miro Halas
37  * @code.reviewed Initial revision
38  */

39 public class ListDataPreviousPageTag extends ListDataActionTag
40 {
41    // Attributes ///////////////////////////////////////////////////////////////
42

43    /**
44     * Generated serial version UID
45     */

46    private static final long serialVersionUID = 5129667978952582253L;
47
48    // Constructors /////////////////////////////////////////////////////////////
49

50    /**
51     * Constructor for custom tag.
52     */

53    public ListDataPreviousPageTag()
54    {
55       super();
56    }
57    
58    /**
59     * {@inheritDoc}
60     */

61    public String JavaDoc getCommand()
62    {
63       return ListBrowserServlet.ACTION_PREV_PAGE_NAME;
64    }
65
66    /**
67     * {@inheritDoc}
68     */

69    public void setCommand(
70       String JavaDoc strCommand
71    )
72    {
73       throw new UnsupportedOperationException JavaDoc("");
74    }
75 }
76
Popular Tags