summaryrefslogtreecommitdiffstats
path: root/authz-gui/src/main/java/com/att/authz/gui/Controls.java
blob: c99c9ff2e22f3bbb3df40bd9be83ab1209c6db6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*******************************************************************************
 * Copyright (c) 2016 AT&T Intellectual Property. All rights reserved.
 *******************************************************************************/
package com.att.authz.gui;

import java.io.IOException;

import com.att.inno.env.APIException;
import com.att.xgen.Cache;
import com.att.xgen.html.HTMLGen;

public class Controls extends NamedCode {
	public Controls() {
		super(false,"controls");
	}
	
	@Override
	public void code(Cache<HTMLGen> cache, HTMLGen hgen) throws APIException, IOException {
		hgen.incr("form","method=post")
			.incr("input", true, "type=checkbox", "name=vehicle", "value=Bike").text("I have a bike").end()
			.text("Password: ")
			.incr("input", true, "type=password", "id=password1").end()
			.tagOnly("input", "type=submit", "value=Submit")
			.end();
	}

}