1 /*******************************************************************************
2 * Copyright (c) 2016 AT&T Intellectual Property. All rights reserved.
3 *******************************************************************************/
4 package com.att.authz.gui;
6 import java.io.IOException;
8 import org.onap.aaf.inno.env.APIException;
9 import com.att.xgen.Cache;
10 import com.att.xgen.html.HTMLGen;
12 public class Controls extends NamedCode {
14 super(false,"controls");
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()
22 .incr("input", true, "type=password", "id=password1").end()
23 .tagOnly("input", "type=submit", "value=Submit")