01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: package org.apache.cocoon.forms.datatype;
18:
19: import java.util.Locale;
20:
21: import org.xml.sax.ContentHandler;
22: import org.xml.sax.SAXException;
23:
24: /**
25: * Extension of {@link org.apache.cocoon.forms.datatype.SelectionList} that can be filtered. Used
26: * primarily to build suggestion lists.
27: *
28: * @since 2.1.9
29: * @version $Id: FilterableSelectionList.java 449149 2006-09-23 03:58:05Z crossley $
30: */
31: public interface FilterableSelectionList extends SelectionList {
32:
33: /**
34: * Generates the filtered selection list
35: *
36: * @param contentHandler where to stream the XML
37: * @param locale the locale to be used for value formatting
38: * @param filter the filter string
39: * @throws SAXException
40: */
41: void generateSaxFragment(ContentHandler contentHandler,
42: Locale locale, String filter) throws SAXException;
43: }
|