AT&T 2.0.19 Code drop, stage 4
[aaf/authz.git] / authz-gui / src / main / java / com / att / authz / gui / table / TextAndRefCell.java
1 /*******************************************************************************
2  * Copyright (c) 2016 AT&T Intellectual Property. All rights reserved.
3  *******************************************************************************/
4 package com.att.authz.gui.table;
5
6 import static com.att.xgen.html.HTMLGen.A;
7
8 import com.att.xgen.html.HTMLGen;
9
10 public class TextAndRefCell extends RefCell {
11
12         private String text;
13                 
14         public TextAndRefCell(String text, String name, String href, String[] attributes) {
15                 super(name, href, attributes);
16                 this.text = text;
17         }
18
19         @Override
20         public void write(HTMLGen hgen) {
21                 hgen.text(text);
22                 hgen.leaf(A,"href="+href).text(name);
23         }
24
25 }