org.jboss.seam.databinding.selectitems
Class SelectItemsBinder
java.lang.Object
org.jboss.seam.databinding.selectitems.SelectItemsBinder
- All Implemented Interfaces:
- DataBinder<SelectItems,List,List<SelectItem>>
public class SelectItemsBinder
- extends Object
- implements DataBinder<SelectItems,List,List<SelectItem>>
The is the main implementation class of a SelectItemsBinder. Because the UISelectOne and UISelectMany
are the actual value holders for the selected items, selection isn't supported here. Binding of
selected items is in theory possible by implementing a similar binder to this one that is aware of the
selected value returns and references the original data used to populate the f:selectItems.
- Author:
- Jim Hazen
SelectItemsBinder
public SelectItemsBinder()
getVariableName
public String getVariableName(SelectItems ann)
- Specified by:
getVariableName
in interface DataBinder<SelectItems,List,List<SelectItem>>
getVariableScope
public ScopeType getVariableScope(SelectItems ann)
- Specified by:
getVariableScope
in interface DataBinder<SelectItems,List,List<SelectItem>>
wrap
public List<SelectItem> wrap(SelectItems ann,
List list)
- Specified by:
wrap
in interface DataBinder<SelectItems,List,List<SelectItem>>
getWrappedData
public List getWrappedData(SelectItems ann,
List<SelectItem> list)
- Specified by:
getWrappedData
in interface DataBinder<SelectItems,List,List<SelectItem>>
getSelection
public Object getSelection(SelectItems arg0,
List<SelectItem> arg1)
- Specified by:
getSelection
in interface DataBinder<SelectItems,List,List<SelectItem>>
isDirty
public boolean isDirty(SelectItems ann,
List<SelectItem> existingData,
List list)
- Specified by:
isDirty
in interface DataBinder<SelectItems,List,List<SelectItem>>