blob: d09879204e4d4f2a9a701c3aca4f6d82d6356ec7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
/*******************************************************************************
* Copyright (c) 2016 AT&T Intellectual Property. All rights reserved.
*******************************************************************************/
package com.att.authz.gui.table;
import com.att.xgen.html.HTMLGen;
/**
* Write Simple Text into a Cell
*
*/
public class TextCell extends AbsCell {
public final String name;
private String[] attrs;
public TextCell(String name, String... attributes) {
attrs = new String[attributes.length];
System.arraycopy(attributes, 0, attrs, 0, attributes.length);
this.name = name;
}
@Override
public void write(HTMLGen hgen) {
hgen.text(name);
}
@Override
public String[] attrs() {
return attrs;
}
}
|