1 package org.displaytag.decorator;
2
3 /**
4 * Test decorator used in tests.
5 * @author Fabrizio Giustina
6 * @version $Revision$ ($Author$)
7 */
8 public class TableDecoratorCssRow extends TableDecorator
9 {
10
11 /**
12 * @see org.displaytag.decorator.TableDecorator#addRowId()
13 */
14 public String addRowId()
15 {
16 return "rowid" + getViewIndex();
17 }
18
19 /**
20 * @see org.displaytag.decorator.TableDecorator#addRowClass()
21 */
22 public String addRowClass()
23 {
24 if (getViewIndex() == 2)
25 {
26 return "highlighted";
27 }
28 return null;
29 }
30
31 }