org.zkoss.jsf.zul.impl
Interface ValueHolderSupport

All Known Implementing Classes:
Bandbox, BaseCalendar, BaseCheckbox, BaseDatebox, BaseDecimalbox, BaseDoublebox, BaseIntbox, BaseListbox, BaseRadiogroup, BaseSlider, BaseTimebox, BaseTree, BranchInput, BranchOutput, Calendar, Checkbox, Combobox, Datebox, Decimalbox, Doublebox, Intbox, Listbox, Radiogroup, Slider, Textbox, Timebox, Tree

public interface ValueHolderSupport

Define a set of interface to support ValueHolder

Author:
Dennis.Chen

Method Summary
 java.lang.String getMappedAttributeName()
          Return the attribute name of a zul component.
 java.lang.Object transferValueForAttribute(java.lang.String value)
          The value from a converter or from request submitting is a String.
 

Method Detail

getMappedAttributeName

java.lang.String getMappedAttributeName()
Return the attribute name of a zul component. A Handler which process this interface will set the value of ValueHolder into the attribute of ZUL Component. return null means do not set the value of ValueHolder into zul component.

Returns:
name of attribute of zul component.

transferValueForAttribute

java.lang.Object transferValueForAttribute(java.lang.String value)
The value from a converter or from request submitting is a String. In some ZUL Component doen't have the suitable attribute to set a String as it's value, such as Calendar, So we need Component implementation transfer String to suitable object.

Parameters:
value - a String value to transfer to a component suitable Object.
Returns:
the suitable Object to set to attribute of zul component.


Copyright © 2005-2007 Potix Corporation. All Rights Reserved.