70 lines
3.9 KiB
HTML
70 lines
3.9 KiB
HTML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE html
|
|
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html lang="en-us" xml:lang="en-us">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<meta name="security" content="public" />
|
|
<meta name="Robots" content="index,follow" />
|
|
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
|
|
<meta name="DC.Type" content="reference" />
|
|
<meta name="DC.Title" content="RadioFormInputGroup class" />
|
|
<meta name="abstract" content="" />
|
|
<meta name="description" content="" />
|
|
<meta name="copyright" content="(C) Copyright IBM Corporation 2006" />
|
|
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2006" />
|
|
<meta name="DC.Format" content="XHTML" />
|
|
<meta name="DC.Identifier" content="radiofrm" />
|
|
<meta name="DC.Language" content="en-us" />
|
|
<!-- All rights reserved. Licensed Materials Property of IBM -->
|
|
<!-- US Government Users Restricted Rights -->
|
|
<!-- Use, duplication or disclosure restricted by -->
|
|
<!-- GSA ADP Schedule Contract with IBM Corp. -->
|
|
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
|
|
<link rel="stylesheet" type="text/css" href="./ic.css" />
|
|
<title>RadioFormInputGroup class</title>
|
|
</head>
|
|
<body id="radiofrm"><a name="radiofrm"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">RadioFormInputGroup class</h1>
|
|
<div><p></p>
|
|
<div class="section"><p>The <a href="javadoc/com/ibm/as400/util/html/RadioFormInputGroup.html"> RadioFormInputGroup</a> class represents a
|
|
group of <a href="javadoc/com/ibm/as400/util/html/RadioFormInput.html"> RadioFormInput</a> objects. A user can select
|
|
only one of the RadioFormInput objects from a RadioFormInputGroup. </p>
|
|
</div>
|
|
<div class="section"><p>The RadioFormInputGroup class methods allow you to work with various
|
|
attributes of a group of radio buttons. With these methods, you can:</p>
|
|
</div>
|
|
<div class="section"><ul><li><a href="javadoc/com/ibm/as400/util/html/RadioFormInputGroup.html#ADD(COM.IBM.AS400.UTIL.HTML.RADIOFORMINPUT)"> Add</a> a radio button</li>
|
|
<li><a href="javadoc/com/ibm/as400/util/html/RadioFormInputGroup.html#REMOVE(COM.IBM.AS400.UTIL.HTML.RADIOFORMINPUT)"> Remove</a> a radio button</li>
|
|
<li><a href="javadoc/com/ibm/as400/util/html/RadioFormInputGroup.html#GETNAME()"> Get</a> or <a href="javadoc/com/ibm/as400/util/html/RadioFormInputGroup.html#SETNAME(JAVA.LANG.STRING)"> set</a> the name of the radio group</li>
|
|
</ul>
|
|
</div>
|
|
<div class="section"><p>The following example creates a radio button group:</p>
|
|
</div>
|
|
<div class="section"><div class="p"><pre> // Create some radio buttons.
|
|
RadioFormInput radio0 = new RadioFormInput("age", "kid", "0-12", true);
|
|
RadioFormInput radio1 = new RadioFormInput("age", "teen", "13-19", false);
|
|
RadioFormInput radio2 = new RadioFormInput("age", "twentysomething", "20-29", false);
|
|
RadioFormInput radio3 = new RadioFormInput("age", "thirtysomething", "30-39", false);
|
|
// Create a radio button group and add the radio buttons.
|
|
RadioFormInputGroup ageGroup = new RadioFormInputGroup("age");
|
|
ageGroup.add(radio0);
|
|
ageGroup.add(radio1);
|
|
ageGroup.add(radio2);
|
|
ageGroup.add(radio3);
|
|
System.out.println(ageGroup.getTag());</pre>
|
|
</div>
|
|
</div>
|
|
<div class="section"><p>The code example above generates the following HTML code:</p>
|
|
</div>
|
|
<div class="section"><div class="p"><pre> <input type="radio" name="age" value="kid" checked="checked" /> 0-12
|
|
<input type="radio" name="age" value="teen" /> 13-19
|
|
<input type="radio" name="age" value="twentysomething" /> 20-29
|
|
<input type="radio" name="age" value="thirtysomething" /> 30-39</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</body>
|
|
</html> |