|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hivemind.impl.BaseLocatable org.apache.tapestry.AbstractComponent org.apache.tapestry.form.AbstractFormComponent net.sf.tacos.ajax.components.Autocompleter
public abstract class Autocompleter
Autocompleteing component intended to be used in place of a
TextField
or a TextArea
component to provide a searchable/selectable drop down list of choices for a form input text
field.
Constructor Summary | |
---|---|
Autocompleter()
|
Method Summary | |
---|---|
abstract String |
getAfterUpdateElement()
After update element parameter |
abstract AjaxDirectService |
getAjaxEngine()
Injected AjaxDirect engine |
abstract double |
getFrequency()
Frequency parameter |
abstract org.apache.tapestry.IActionListener |
getListener()
Required listener for performing search |
abstract org.apache.tapestry.listener.ListenerInvoker |
getListenerInvoker()
Injected listener invoker |
abstract ListItemRenderer |
getListItemRenderer()
List item renderer |
abstract Object |
getListSource()
Required list item source parameter |
abstract int |
getMaxResults()
Max number of results to show |
abstract String |
getOptions()
Javascript options |
abstract Object |
getParameters()
The parameters to add in the request |
abstract org.apache.tapestry.IScript |
getScript()
Autocompleter script |
abstract String |
getTemplateTag()
The tag used to add this component in the template |
abstract org.apache.tapestry.form.TranslatedFieldSupport |
getTranslatedFieldSupport()
Injected. |
abstract org.apache.tapestry.form.ValidatableFieldSupport |
getValidatableFieldSupport()
Injected. |
abstract Object |
getValue()
value set |
abstract org.apache.tapestry.coerce.ValueConverter |
getValueConverter()
Injected value converter |
abstract boolean |
isClientOnly()
Client only usage |
abstract boolean |
isDirect()
Use direct call |
boolean |
isRequired()
|
abstract boolean |
isSearchTriggered()
is triggered |
protected void |
renderComponent(org.apache.tapestry.IMarkupWriter writer,
org.apache.tapestry.IRequestCycle cycle)
|
protected void |
renderFormComponent(org.apache.tapestry.IMarkupWriter writer,
org.apache.tapestry.IRequestCycle cycle)
Renders the component. |
protected void |
renderList(org.apache.tapestry.IMarkupWriter writer,
org.apache.tapestry.IRequestCycle cycle)
Invoked by renderComponent(IMarkupWriter, IRequestCycle) if the response
from this request should be the returned value of whichever search was
performed. |
protected void |
rewindFormComponent(org.apache.tapestry.IMarkupWriter writer,
org.apache.tapestry.IRequestCycle cycle)
Rewinds the component, doing translation, validation and binding. |
abstract void |
setListSource(Object value)
sets the list source |
abstract void |
setSearchTriggered(boolean value)
sets triggered state |
abstract void |
setValue(Object value)
sets value |
void |
trigger(org.apache.tapestry.IRequestCycle cycle)
Triggers the listener. |
Methods inherited from class org.apache.tapestry.form.AbstractFormComponent |
---|
getAlwaysRenderBodyOnRewind, getCanTakeFocus, getForm, getIdParameter, getName, renderDelegateAttributes, renderDelegatePrefix, renderDelegateSuffix, renderIdAttribute, setClientId, setForm, setName, setName |
Methods inherited from class org.apache.tapestry.AbstractComponent |
---|
addAsset, addBody, addComponent, checkActiveLock, cleanupAfterRender, enterActiveState, finishLoad, finishLoad, format, format, format, format, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getComponent, getComponents, getContainedComponent, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, isInActiveState, isParameterBound, isRendering, pageEndRender, prepareForRender, render, renderBody, renderInformalParameters, setBinding, setContainedComponent, setContainer, setId, setNamespace, setPage, setProperty, toString |
Methods inherited from class org.apache.hivemind.impl.BaseLocatable |
---|
getLocation, setLocation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.tapestry.IDirect |
---|
isStateful |
Methods inherited from interface org.apache.tapestry.form.TranslatedField |
---|
getTranslator |
Methods inherited from interface org.apache.tapestry.form.ValidatableField |
---|
getValidators |
Methods inherited from interface org.apache.tapestry.form.IFormComponent |
---|
getClientId, getDisplayName, getForm, getName, isDisabled, setName |
Constructor Detail |
---|
public Autocompleter()
Method Detail |
---|
public abstract AjaxDirectService getAjaxEngine()
public abstract org.apache.tapestry.listener.ListenerInvoker getListenerInvoker()
public abstract org.apache.tapestry.IScript getScript()
public abstract org.apache.tapestry.coerce.ValueConverter getValueConverter()
public abstract org.apache.tapestry.IActionListener getListener()
public abstract Object getListSource()
public abstract void setListSource(Object value)
public abstract ListItemRenderer getListItemRenderer()
public abstract int getMaxResults()
public abstract boolean isDirect()
public abstract double getFrequency()
public abstract String getAfterUpdateElement()
public abstract Object getParameters()
public abstract void setSearchTriggered(boolean value)
public abstract boolean isSearchTriggered()
public abstract Object getValue()
public abstract void setValue(Object value)
public abstract String getTemplateTag()
public abstract String getOptions()
public abstract boolean isClientOnly()
public abstract org.apache.tapestry.form.ValidatableFieldSupport getValidatableFieldSupport()
public abstract org.apache.tapestry.form.TranslatedFieldSupport getTranslatedFieldSupport()
public boolean isRequired()
isRequired
in interface org.apache.tapestry.form.IFormComponent
isRequired
in class org.apache.tapestry.form.AbstractFormComponent
AbstractFormComponent.isRequired()
protected void renderComponent(org.apache.tapestry.IMarkupWriter writer, org.apache.tapestry.IRequestCycle cycle)
renderComponent
in class org.apache.tapestry.form.AbstractFormComponent
AbstractComponent.renderComponent(org.apache.tapestry.IMarkupWriter,
org.apache.tapestry.IRequestCycle)
protected void renderFormComponent(org.apache.tapestry.IMarkupWriter writer, org.apache.tapestry.IRequestCycle cycle)
renderFormComponent
in class org.apache.tapestry.form.AbstractFormComponent
protected void rewindFormComponent(org.apache.tapestry.IMarkupWriter writer, org.apache.tapestry.IRequestCycle cycle)
rewindFormComponent
in class org.apache.tapestry.form.AbstractFormComponent
protected void renderList(org.apache.tapestry.IMarkupWriter writer, org.apache.tapestry.IRequestCycle cycle)
renderComponent(IMarkupWriter, IRequestCycle)
if the response
from this request should be the returned value of whichever search was
performed.
writer
- cycle
- public void trigger(org.apache.tapestry.IRequestCycle cycle)
trigger
in interface org.apache.tapestry.IDirect
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |