eb91c22a6e1c46bd66012f04e086fdc24fff2ffb
[aaf/authz.git] / authz-gui / src / main / java / com / att / authz / gui / table / AbsCell.java
1 /*******************************************************************************
2  * Copyright (c) 2016 AT&T Intellectual Property. All rights reserved.
3  *******************************************************************************/
4 package com.att.authz.gui.table;
5
6 import com.att.xgen.html.HTMLGen;
7
8 public abstract class AbsCell {
9         private static final String[] NONE = new String[0];
10         protected static final String[] CENTER = new String[]{"class=center"};
11
12         /**
13          * Write Cell Data with HTMLGen generator
14          * @param hgen
15          */
16         public abstract void write(HTMLGen hgen);
17         
18         public final static AbsCell Null = new AbsCell() {
19                 @Override
20                 public void write(final HTMLGen hgen) {
21                 }
22         };
23         
24         public String[] attrs() {
25                 return NONE;
26         }
27 }