|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectGroupOption
public class GroupOption
GroupOption is a simple JavaBean that can be used to fully specify
the name, value, alt text and accesskey of either a CheckBoxGroup
or a RadioButtonGroup
. The name will appear in the HTML after
the checkbox or radio button. The name attribute is required for outpu
by the tags. The value can either be set separately or will default to
the name. Optionally and alt text attribute and accesskey value can be
provided.
Constructor Summary | |
---|---|
GroupOption()
Default Constructor. |
|
GroupOption(String name)
Construct a GroupOption setting the name. |
|
GroupOption(String name,
String value)
Construct a GroupOption setting the name and value. |
|
GroupOption(String name,
String value,
String alt,
char accessKey)
Construct a GroupOption setting all the values. |
Method Summary | |
---|---|
char |
getAccessKey()
Get the accesskey of the option. |
String |
getAlt()
Get the alt text of the option. |
String |
getName()
Get the name of the option. |
String |
getValue()
Get the value of the option. |
void |
setAccessKey(char accessKey)
Set the alt text of the option. |
void |
setAlt(String alt)
Set the alt text of the option. |
void |
setName(String name)
Set the name of the option which will appear next to the option. |
void |
setValue(String value)
Set the value of the option. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GroupOption()
public GroupOption(String name)
public GroupOption(String name, String value)
public GroupOption(String name, String value, String alt, char accessKey)
Method Detail |
---|
public void setName(String name)
name
- The name of the created option.public String getName()
public void setValue(String value)
value
attribute.
value
- The name of the created option.public String getValue()
name
property.
public void setAlt(String alt)
alt
- The text that will be set for the alt
attribute.public String getAlt()
public void setAccessKey(char accessKey)
accessKey
- The value that will be set for the
accesskey
attribute.public char getAccessKey()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |