1 /*******************************************************************************
2 * Copyright (c) 2016 AT&T Intellectual Property. All rights reserved.
3 *******************************************************************************/
4 package com.att.authz.gui.table;
6 import static com.att.xgen.html.HTMLGen.A;
8 import com.att.xgen.html.HTMLGen;
11 * Write a Reference Link into a Cell
14 public class RefCell extends AbsCell {
15 public final String name;
16 public final String href;
17 private String[] attrs;
19 public RefCell(String name, String href, String... attributes) {
20 attrs = new String[attributes.length];
21 System.arraycopy(attributes, 0, attrs, 0, attributes.length);
27 public void write(HTMLGen hgen) {
28 hgen.leaf(A,"href="+href).text(name);
32 public String[] attrs() {