View Javadoc

1   /***
2    * Licensed under the Artistic License; you may not use this file
3    * except in compliance with the License.
4    * You may obtain a copy of the License at
5    *
6    *      http://displaytag.sourceforge.net/license.html
7    *
8    * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
9    * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
10   * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
11   */
12  package org.apache.taglibs.display;
13  
14  import java.util.Collection;
15  import java.util.List;
16  
17  
18  /***
19   * <p>
20   * Placeholder class to preserve compatibility with decorator created with older version of the display taglib.
21   * </p>
22   * <p>
23   * Never extend this class, you should always subclass decorators in the <code>org.displaytag.decorator</code>
24   * package.
25   * <p>
26   * @author Fabrizio Giustina
27   * @version $Revision: 1.8 $ ($Author: fgiust $)
28   * @deprecated use <code>org.displaytag.decorator.TableDecorator</code>
29   */
30  public abstract class TableDecorator extends org.displaytag.decorator.TableDecorator
31  {
32  
33      /***
34       * returns the Object where the iteration is performed as a List.
35       * @return List
36       * @deprecated use getDecoratedObject()
37       */
38      public List getList()
39      {
40          return (List) getDecoratedObject();
41      }
42  
43      /***
44       * returns the Object where the iteration is performed as a Collection.
45       * @return Collection
46       * @deprecated use getDecoratedObject()
47       */
48      public Collection getCollection()
49      {
50          return (Collection) getDecoratedObject();
51      }
52  
53      /***
54       * returns the Object for the current row.
55       * @return Object
56       * @deprecated use getCurrentRowObject()
57       */
58      public Object getObject()
59      {
60          return getCurrentRowObject();
61      }
62  }