KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > displaytag > decorator > TableDecoratorOne


1 package org.displaytag.decorator;
2
3 /**
4  * Test decorator used in tests.
5  * @author Fabrizio Giustina
6  * @version $Revision: 907 $ ($Author: fgiust $)
7  */

8 public class TableDecoratorOne extends TableDecorator
9 {
10
11     /**
12      * getter property for "one".
13      * @return "one"
14      */

15     public String JavaDoc getOne()
16     {
17         return "one";
18     }
19
20     /**
21      * getter for a mapped property.
22      * @param key property name
23      * @return "mapped property"
24      */

25     public String JavaDoc getMapped(String JavaDoc key)
26     {
27         return "mapped property";
28     }
29
30     /**
31      * getter for an indexed property.
32      * @param key property index
33      * @return "indexed property"
34      */

35     public String JavaDoc getIndexed(int key)
36     {
37         return "indexed property";
38     }
39 }
Popular Tags