|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SelectableWidget
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.
| Field Summary |
|---|
| Fields inherited from interface org.apache.cocoon.forms.formmodel.Widget |
|---|
PATH_SEPARATOR |
| Method Summary | |
|---|---|
void |
setSelectionList(Object model,
String valuePath,
String labelPath)
Set the widgdet's selection given an object and XPath expressions. |
void |
setSelectionList(SelectionList selectionList)
Set the widget's selection list given a SelectionList. |
void |
setSelectionList(String uri)
Set the widget's selection list given a source URI where the list will be read from. |
| Methods inherited from interface org.apache.cocoon.forms.formmodel.Widget |
|---|
addValidator, broadcastEvent, generateLabel, generateSaxFragment, getAttribute, getCombinedState, getDefinition, getForm, getFullName, getId, getLocation, getName, getParent, getRequestParameterName, getState, getValue, getWidget, initialize, isRequired, isValid, lookupWidget, readFromRequest, removeAttribute, removeValidator, setAttribute, setParent, setState, setValue, validate |
| Method Detail |
|---|
void setSelectionList(SelectionList selectionList)
SelectionList.
selectionList - the selection list or null to have no selection list.void setSelectionList(String uri)
uri - the selection list's URI
void setSelectionList(Object model,
String valuePath,
String labelPath)
model - the selection list model. This is typically a collection or an array of objects
in which valuePath and labelPath will extract some data.valuePath - the XPath expression to extract valueslabelPath - the XPath expression to extract labels (can be absent in which case the value is
used as label).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||