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  import org.displaytag.decorator.TableDecorator;
18  
19  
20  /***
21   * <p>
22   * Placeholder class to preserve compatibility with decorator created with older version of the display taglib.
23   * </p>
24   * <p>
25   * Never extend this class, you should always subclass decorators in the <code>org.displaytag.decorator</code>
26   * package.
27   * <p>
28   * @author Fabrizio Giustina
29   * @version $Revision: 1.8 $ ($Author: fgiust $)
30   * @deprecated use <code>org.displaytag.decorator.TableDecorator</code>
31   */
32  public abstract class Decorator extends TableDecorator
33  {
34  
35      /***
36       * Returns the Object where the iteration is performed as a List.
37       * @return List
38       * @deprecated use getDecoratedObject()
39       */
40      public List getList()
41      {
42          return (List) getDecoratedObject();
43      }
44  
45      /***
46       * Returns the Object where the iteration is performed as a Collection.
47       * @return Collection
48       * @deprecated use getDecoratedObject()
49       */
50      public Collection getCollection()
51      {
52          return (Collection) getDecoratedObject();
53      }
54  
55      /***
56       * Returns the Object for the current row.
57       * @return Object
58       * @deprecated use getCurrentRowObject()
59       */
60      public Object getObject()
61      {
62          return getCurrentRowObject();
63      }
64  }