| org.apache.cocoon.forms.formmodel.SelectableWidget
All known Subclasses: org.apache.cocoon.forms.formmodel.Field, org.apache.cocoon.forms.formmodel.MultiValueField,
SelectableWidget | public interface SelectableWidget extends Widget(Code) | | A
Widget that can have a selection list. The initial selection list is set by the
widget's
WidgetDefinition , and can be changed afterwards. The selection list can
be removed by setting the list to null .
version: $Id: SelectableWidget.java 449149 2006-09-23 03:58:05Z crossley $ |
setSelectionList | public void setSelectionList(SelectionList selectionList)(Code) | | Set the widget's selection list given a
SelectionList .
Parameters: selectionList - the selection list or null to have no selection list. |
setSelectionList | public void setSelectionList(String uri)(Code) | | Set the widget's selection list given a source URI where the list will be read from.
Parameters: uri - the selection list's URI |
setSelectionList | public void setSelectionList(Object model, String valuePath, String labelPath)(Code) | | Set the widgdet's selection given an object and XPath expressions.
Parameters: model - the selection list model. This is typically a collection or an array of objectsin which valuePath and labelPath will extract some data. Parameters: valuePath - the XPath expression to extract values Parameters: labelPath - the XPath expression to extract labels (can be absent in which case the value isused as label). |
|
|