org.apache.cocoon.forms.datatype
Class JavaScriptSelectionList

java.lang.Object
  extended by 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 $

Field Summary
 
Fields inherited from interface org.apache.cocoon.forms.datatype.SelectionList
ITEM_EL, LABEL_EL, SELECTION_LIST_EL
 
Constructor Summary
JavaScriptSelectionList(Context context, Datatype type, org.mozilla.javascript.Function function, String catalogue, Location location)
           
 
Method Summary
 void generateSaxFragment(ContentHandler contentHandler, Locale locale)
           
 void generateSaxFragment(ContentHandler contentHandler, Locale locale, String filter)
          Generates the filtered selection list
 Datatype getDatatype()
           
 Location getLocation()
          Get the location of this object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaScriptSelectionList

public JavaScriptSelectionList(Context context,
                               Datatype type,
                               org.mozilla.javascript.Function function,
                               String catalogue,
                               Location location)
Method Detail

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 XML
locale - the locale to be used for value formatting
filter - 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.