Update project structure to org.onap.aaf
[aaf/authz.git] / authz-gui / src / main / java / com / att / authz / gui / table / TextAndRefCell.java
diff --git a/authz-gui/src/main/java/com/att/authz/gui/table/TextAndRefCell.java b/authz-gui/src/main/java/com/att/authz/gui/table/TextAndRefCell.java
new file mode 100644 (file)
index 0000000..1c25361
--- /dev/null
@@ -0,0 +1,25 @@
+/*******************************************************************************
+ * Copyright (c) 2016 AT&T Intellectual Property. All rights reserved.
+ *******************************************************************************/
+package com.att.authz.gui.table;
+
+import static com.att.xgen.html.HTMLGen.A;
+
+import com.att.xgen.html.HTMLGen;
+
+public class TextAndRefCell extends RefCell {
+
+       private String text;
+               
+       public TextAndRefCell(String text, String name, String href, String[] attributes) {
+               super(name, href, attributes);
+               this.text = text;
+       }
+
+       @Override
+       public void write(HTMLGen hgen) {
+               hgen.text(text);
+               hgen.leaf(A,"href="+href).text(name);
+       }
+
+}