AT&T 2.0.19 Code drop, stage 4
[aaf/authz.git] / authz-gui / src / main / java / com / att / authz / gui / Controls.java
1 /*******************************************************************************
2  * Copyright (c) 2016 AT&T Intellectual Property. All rights reserved.
3  *******************************************************************************/
4 package com.att.authz.gui;
5
6 import java.io.IOException;
7
8 import org.onap.aaf.inno.env.APIException;
9 import com.att.xgen.Cache;
10 import com.att.xgen.html.HTMLGen;
11
12 public class Controls extends NamedCode {
13         public Controls() {
14                 super(false,"controls");
15         }
16         
17         @Override
18         public void code(Cache<HTMLGen> cache, HTMLGen hgen) throws APIException, IOException {
19                 hgen.incr("form","method=post")
20                         .incr("input", true, "type=checkbox", "name=vehicle", "value=Bike").text("I have a bike").end()
21                         .text("Password: ")
22                         .incr("input", true, "type=password", "id=password1").end()
23                         .tagOnly("input", "type=submit", "value=Submit")
24                         .end();
25         }
26
27 }