|
|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
| 上一个类 下一个 CLASS | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 | ||||||||
javax.faces.model Class SelectItemGroup
java.lang.Objectjavax.faces.model.SelectItem
javax.faces.model.SelectItemGroup
- 所有已实现的接口:
- Serializable
public class SelectItemGroup
- extends SelectItem
SelectItemGroup is a subclass of SelectItem that
identifies a set of options that will be made available as a subordinate
"submenu" or "options list", depending upon the requirements of the
UISelectMany or UISelectOne renderer that is actually used.
In general, the value property of this instance will be ignored,
and the label property of this instance will be used to label
the submenu.
Although it is feasible to incorporate SelectItemGroup instances
in he selectItems property of this instance (thereby creating
a data structure suitable for cascading submenus), some renderers may place
restrictions on the level of nesting they support. For example, HTML based
renderers that create an <select> element will typically
render this instance as an <optgroup> element, but the
HTML 4.01 Specification disallows nested option groups.
- 另请参见:
- Serialized Form
| 构造器摘要 | |
|---|---|
SelectItemGroup()
Construct a SelectItemGroup with no initialized property
values. |
|
SelectItemGroup(String label)
Construct a SelectItemGroup with the specified label
and no associated selectItems. |
|
SelectItemGroup(String label,
String description,
boolean disabled,
SelectItem[] selectItems)
Construct a SelectItemGroup with the specified
properties. |
|
| 方法摘要 | |
|---|---|
SelectItem[] |
getSelectItems()
Return the set of subordinate SelectItems for this group. |
void |
setSelectItems(SelectItem[] selectItems)
Set the set of subordinate SelectItems for this group. |
| 类方法继承 javax.faces.model.SelectItem |
|---|
getDescription, getLabel, getValue, isDisabled, isEscape, setDescription, setDisabled, setEscape, setLabel, setValue |
| 类方法继承 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造器详细信息 |
|---|
SelectItemGroup
public SelectItemGroup()
Construct a
SelectItemGroupwith no initialized property values.
SelectItemGroup
public SelectItemGroup(String label)
Construct a
SelectItemGroupwith the specified label and no associatedselectItems. Thevalueproperty will be set to a zero-length String, thedescriptionproperty will be set tonull, and thedisabledproperty will be set to false.- 参数:
label- Label to be rendered for this group in the response- 抛出异常:
NullPointerException- iflabelisfalse
SelectItemGroup
public SelectItemGroup(String label, String description, boolean disabled, SelectItem[] selectItems)
Construct a
SelectItemGroupwith the specified properties. Thevalueproperty will be set to a zero-length String.- 参数:
label- Label to be rendered for this group in the responsedescription- Description of this group, for use in toolsdisabled- Flag indicating that this group is disabledselectItems- Array ofSelectItemdescribing the items available in this group- 抛出异常:
NullPointerException- iflabelorselectItemsisfalse
| 方法详细信息 |
|---|
getSelectItems
public SelectItem[] getSelectItems()
Return the set of subordinate
SelectItems for this group.
setSelectItems
public void setSelectItems(SelectItem[] selectItems)
Set the set of subordinate
SelectItems for this group.- 参数:
selectItems- The new set of subordinate items- 抛出异常:
NullPointerException- ifselectItemsisnull
|
|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
| 上一个类 下一个 CLASS | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 | ||||||||
提交错误或意见
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.
