|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.click.control.OptionGroup
public class OptionGroup
Provides a select Option Group element: <optgroup></optgroup>.
The OptionGroup class uses an immutable design so Option instances can be shared by multiple Pages in the multi-threaded Servlet environment. This enables OptionGroup instances to be cached as static variables. For an OptionGroup code example see theOption
Javadoc example.
See also the W3C HTML reference:
OPTGROUP
Select
,
Option
,
Serialized FormField Summary | |
---|---|
protected List |
children
The groups child Option/OptGroup objects. |
protected String |
label
The label for the OptionGroup. |
Constructor Summary | |
---|---|
OptionGroup(String label)
Create an OptionGroup with the given display label. |
Method Summary | |
---|---|
void |
add(Object object)
Add the given Option or OptionGroup object to this group. |
List |
getChildren()
Return the OptionGroup children. |
String |
getLabel()
Return the display label. |
String |
getTag()
Return the OptionGroup's html tag: optgroup. |
void |
render(Select select,
HtmlStringBuffer buffer)
Return a HTML rendered Option string. |
String |
renderHTML(Select select)
Deprecated. use render(org.apache.click.control.Select, org.apache.click.util.HtmlStringBuffer)
instead |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected List children
protected final String label
Constructor Detail |
---|
public OptionGroup(String label)
label
- the display label for the OptionGroupMethod Detail |
---|
public String getTag()
public void add(Object object)
object
- the Option or OptionGroup to addpublic List getChildren()
public String getLabel()
public void render(Select select, HtmlStringBuffer buffer)
select
- the parent Selectbuffer
- the specified buffer to render topublic String renderHTML(Select select)
render(org.apache.click.control.Select, org.apache.click.util.HtmlStringBuffer)
instead
select
- the parent Select
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |