org.chenillekit.tapestry.core.components.prototype_ui
Class AutoComplete
java.lang.Object
org.apache.tapestry5.corelib.base.AbstractField
org.chenillekit.tapestry.core.components.prototype_ui.AutoComplete
- All Implemented Interfaces:
- ClientElement, Field
@Import(library={"../../Chenillekit.js","prototype-ui.js","AutoComplete.js"},
stylesheet={"themes/auto_complete/default.css","themes/shadow/drop_shadow.css","themes/shadow/auto_complete.css"})
public class AutoComplete- extends AbstractField
This AutoComplete component based on Prototype-UI's
autocomplete widget.
- Version:
- $Id: AutoComplete.java 674 2010-07-29 12:47:25Z homburgs $
|
Method Summary |
protected void |
configure(JSONObject options)
Invoked to allow subclasses to further configure the parameters passed to this component's javascript
options. |
protected JSONArray |
generateResponseMarkup(List matches)
Generates the markup response that will be returned to the client; this should be an <ul> element with
nested <li> elements. |
protected void |
processSubmission(String elementName)
Method implemented by subclasses to actually do the work of processing the submission of the form. |
| Methods inherited from class org.apache.tapestry5.corelib.base.AbstractField |
createDefaultParameterBinding, decorateInsideField, getClientId, getControlName, getLabel, isDisabled, isRequired, putPropertyNameIntoBeanValidationContext, removePropertyNameFromBeanValidationContext, setDecorator, setFormSupport |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AutoComplete
public AutoComplete()
configure
protected void configure(JSONObject options)
- Invoked to allow subclasses to further configure the parameters passed to this component's javascript
options. Subclasses may override this method to configure additional features of this component.
This implementation does nothing. For more information about window options look at
this page.
- Parameters:
options - windows option object
processSubmission
protected void processSubmission(String elementName)
- Method implemented by subclasses to actually do the work of processing the submission of the form. The element's
elementName property will already have been set. This method is only invoked if the field is not
disabled.
- Specified by:
processSubmission in class AbstractField
- Parameters:
elementName - the name of the element (used to find the correct parameter in the request)
generateResponseMarkup
protected JSONArray generateResponseMarkup(List matches)
- Generates the markup response that will be returned to the client; this should be an <ul> element with
nested <li> elements. Subclasses may override this to produce more involved markup (including images and
CSS class attributes).
- Parameters:
matches - list of matching objects, each should be converted to a string
Copyright © 2008-2011 ChenilleKit. All Rights Reserved.