org.apache.cocoon.forms.datatype
Class FlowJXPathSelectionList
java.lang.Object
org.apache.cocoon.forms.datatype.FlowJXPathSelectionList
- All Implemented Interfaces:
- SelectionList
public class FlowJXPathSelectionList
- extends Object
- implements SelectionList
A selection list that takes its values from the flow page data.
- Version:
- $Id: FlowJXPathSelectionList.html 1304258 2012-03-23 10:09:27Z ilgrosso $
- See Also:
FlowJXPathSelectionListBuilder
Constructor Summary |
FlowJXPathSelectionList(Context context,
String listPath,
String valuePath,
String labelPath,
Datatype datatype,
String nullText,
boolean nullTextIsI18nKey,
String i18nCatalog,
boolean labelIsI18nKey)
|
FlowJXPathSelectionList(Object model,
String valuePath,
String labelPath,
Datatype datatype)
Builds a dynamic selection list from an in-memory collection. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FlowJXPathSelectionList
public FlowJXPathSelectionList(Context context,
String listPath,
String valuePath,
String labelPath,
Datatype datatype,
String nullText,
boolean nullTextIsI18nKey,
String i18nCatalog,
boolean labelIsI18nKey)
FlowJXPathSelectionList
public FlowJXPathSelectionList(Object model,
String valuePath,
String labelPath,
Datatype datatype)
- Builds a dynamic selection list from an in-memory collection.
- Parameters:
model
- The collection used as a model for the selection list.valuePath
- An XPath expression referring to the attribute used
to populate the values of the list's items.labelPath
- An XPath expression referring to the attribute used
to populate the labels of the list's items.datatype
- - See Also:
Field.setSelectionList(Object model, String valuePath, String labelPath)
getDatatype
public Datatype getDatatype()
- Specified by:
getDatatype
in interface SelectionList
generateSaxFragment
public void generateSaxFragment(ContentHandler contentHandler,
Locale locale)
throws SAXException
- Specified by:
generateSaxFragment
in interface SelectionList
- Throws:
SAXException
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.