API Overview API Index Package Overview Direct link to this page
JavaOnTracks 0.1.2
  net.jot.web.forms.ui. JOTFormRadioField View Javadoc
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
28
29
30
31
32

/*
------------------------------------
JavaOnTracks          Thibaut Colar
tcolar-jot AT colar DOT net
Artistic Licence 2.0
http://www.javaontracks.net
------------------------------------
 */
package net.jot.web.forms.ui;

import net.jot.web.forms.JOTFormConst;

/**
RadioButton type field
Note than "radioName" is the name of the radio button in html(used to group radios together):
Ex input type="radio" name="radioName"
@author thibautc
*/
public class JOTFormRadioField extends JOTFormField
{
	// ENABLED / ON
	protected String radioName="";

	public JOTFormRadioField(String name, String description, String radioName, String defaultValue)
	{
		setType(JOTFormConst.INPUT_RADIO);
		setName(name);
		setDescription(description);
		setDefaultValue(defaultValue);
		this.radioName=radioName;
	}
}

Generated By: JavaOnTracks Doclet 0.1.5     ©Thibaut Colar