org.apache.cocoon.forms.datatype
Class JavaScriptSelectionList
java.lang.Object
org.apache.cocoon.forms.datatype.JavaScriptSelectionList
- All Implemented Interfaces:
- FilterableSelectionList, SelectionList, Locatable
public class JavaScriptSelectionList
- extends Object
- implements FilterableSelectionList, Locatable
A FilterableSelectionList
based on a JavaScript snippet.
- Since:
- 2.1.9
- Version:
- $Id: JavaScriptSelectionList.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaScriptSelectionList
public JavaScriptSelectionList(Context context,
Datatype type,
org.mozilla.javascript.Function function,
String catalogue,
Location location)
getLocation
public Location getLocation()
- Description copied from interface:
Locatable
- Get the location of this object
- Specified by:
getLocation
in interface Locatable
- Returns:
- the location
generateSaxFragment
public void generateSaxFragment(ContentHandler contentHandler,
Locale locale)
throws SAXException
- Specified by:
generateSaxFragment
in interface SelectionList
- Throws:
SAXException
generateSaxFragment
public void generateSaxFragment(ContentHandler contentHandler,
Locale locale,
String filter)
throws SAXException
- Description copied from interface:
FilterableSelectionList
- Generates the filtered selection list
- Specified by:
generateSaxFragment
in interface FilterableSelectionList
- Parameters:
contentHandler
- where to stream the XMLlocale
- the locale to be used for value formattingfilter
- the filter string
- Throws:
SAXException
getDatatype
public Datatype getDatatype()
- Specified by:
getDatatype
in interface SelectionList
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.