|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个 CLASS | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
javax.faces.component Interface ValueHolder
- 所有已知子接口:
- EditableValueHolder
- 所有已知实现子孙类:
- HtmlInputHidden, HtmlInputSecret, HtmlInputText, HtmlInputTextarea, HtmlOutputFormat, HtmlOutputLabel, HtmlOutputLink, HtmlOutputText, HtmlSelectBooleanCheckbox, HtmlSelectManyCheckbox, HtmlSelectManyListbox, HtmlSelectManyMenu, HtmlSelectOneListbox, HtmlSelectOneMenu, HtmlSelectOneRadio, UIInput, UIOutput, UISelectBoolean, UISelectMany, UISelectOne
public interface ValueHolder
ValueHolder is an interface that may be implemented
by any concrete UIComponent
that wishes to support a local
value, as well as access data in the model tier via a value
expression, and support conversion
between String and the model tier data's native data type.
方法摘要 | |
---|---|
Converter |
getConverter()
Return the Converter (if any)
that is registered for this UIComponent . |
Object |
getLocalValue()
Return the local value of this UIComponent (if any),
without evaluating any associated ValueExpression . |
Object |
getValue()
Gets the value of this UIComponent . |
void |
setConverter(Converter converter)
Set the Converter (if any)
that is registered for this UIComponent . |
void |
setValue(Object value)
Set the value of this UIComponent (if any). |
方法详细信息 |
---|
getLocalValue
Object getLocalValue()
Return the local value of this
UIComponent
(if any), without evaluating any associatedValueExpression
.
getValue
Object getValue()
Gets the value of this
UIComponent
. First, consult the local value property of this component. If non-null
return it. Ifnull
, see if we have aValueExpression
for thevalue
property. If so, return the result of evaluating the property, otherwise returnnull
. Note that because the specification forUIComponent.setValueBinding(java.lang.String, javax.faces.el.ValueBinding)
requires a call through toUIComponent.setValueExpression(java.lang.String, javax.el.ValueExpression)
, legacy tags will continue to work.
setValue
void setValue(Object value)
Set the value of this
UIComponent
(if any).- 参数:
value
- The new local value
getConverter
Converter getConverter()
Return the
Converter
(if any) that is registered for thisUIComponent
.
setConverter
void setConverter(Converter converter)
Set the
Converter
(if any) that is registered for thisUIComponent
.- 参数:
converter
- NewConverter
(ornull
)
|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个 CLASS | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
提交错误或意见
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.