org.apache.cocoon.forms.datatype
Class JavaScriptSelectionList

java.lang.Object
  extended byorg.apache.cocoon.forms.datatype.JavaScriptSelectionList
All Implemented Interfaces:
FilterableSelectionList, org.apache.cocoon.util.location.Locatable, SelectionList

public class JavaScriptSelectionList
extends Object
implements FilterableSelectionList, org.apache.cocoon.util.location.Locatable

A FilterableSelectionList based on a JavaScript snippet.

Since:
2.1.9
Version:
$Id: JavaScriptSelectionList.html 1304280 2012-03-23 11:18:01Z ilgrosso $

Field Summary
 
Fields inherited from interface org.apache.cocoon.forms.datatype.SelectionList
ITEM_EL, LABEL_EL, SELECTION_LIST_EL
 
Constructor Summary
JavaScriptSelectionList(org.apache.cocoon.processing.ProcessInfoProvider processInfoProvider, Datatype type, org.mozilla.javascript.Function function, String catalogue, org.apache.cocoon.util.location.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()
           
 org.apache.cocoon.util.location.Location getLocation()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaScriptSelectionList

public JavaScriptSelectionList(org.apache.cocoon.processing.ProcessInfoProvider processInfoProvider,
                               Datatype type,
                               org.mozilla.javascript.Function function,
                               String catalogue,
                               org.apache.cocoon.util.location.Location location)
Method Detail

getLocation

public org.apache.cocoon.util.location.Location getLocation()
Specified by:
getLocation in interface org.apache.cocoon.util.location.Locatable

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-2008 The Apache Software Foundation. All Rights Reserved.