net.sf.tacos.demo.pages.bugs
Class Bug58

java.lang.Object
  extended by org.apache.hivemind.impl.BaseLocatable
      extended by org.apache.tapestry.AbstractComponent
          extended by org.apache.tapestry.BaseComponent
              extended by org.apache.tapestry.AbstractPage
                  extended by org.apache.tapestry.html.BasePage
                      extended by net.sf.tacos.demo.pages.bugs.BaseBugPage
                          extended by net.sf.tacos.demo.pages.bugs.Bug58
All Implemented Interfaces:
Locatable, LocationHolder, org.apache.tapestry.IComponent, org.apache.tapestry.IPage, org.apache.tapestry.IRender, org.apache.tapestry.ITemplateComponent

public abstract class Bug58
extends BaseBugPage

For bug 58: Allow Autocompleter to work in a loop & Duplicated list elements in Autocompleter

Author:
andyhot

Constructor Summary
Bug58()
           
 
Method Summary
 Collection getAllCountries()
          Returns all countries
 ListItemRenderer getListRenderer()
          The renderer
abstract  Collection getLocaleList()
          Set by invocation of searchCountries(String)
abstract  String getNoteValue()
          form note value
abstract  Collection getSearchList()
          Set by invocation of searchCountries(String)
abstract  boolean getShowForm()
          read visibility of the form
 void searchCountries(String search)
          Invoked by ajax request to perform autocomplete search.
abstract  void setLocaleList(Collection values)
          Sets the search list return
abstract  void setSearchList(Collection values)
          Sets the search list return
abstract  void setShowForm(boolean show)
          set visibility of the form
 void storeNote(org.apache.tapestry.IRequestCycle cycle)
          Stores a new note
 void toggleForm()
          Toggles form visibility
 
Methods inherited from class net.sf.tacos.demo.pages.bugs.BaseBugPage
doNothing
 
Methods inherited from class org.apache.tapestry.html.BasePage
getResponseContentType
 
Methods inherited from class org.apache.tapestry.AbstractPage
addPageAttachListener, addPageBeginRenderListener, addPageDetachListener, addPageEndRenderListener, addPageRenderListener, addPageValidateListener, attach, beginPageRender, beginResponse, detach, endPageRender, firePageAttached, firePageBeginRender, firePageDetached, firePageEndRender, firePageValidate, getChangeObserver, getEngine, getExtendedId, getGlobal, getIdPath, getLocale, getNestedComponent, getOutputEncoding, getPageName, getRequestCycle, getVisit, initialize, removePageAttachListener, removePageBeginRenderListener, removePageDetachListener, removePageEndRenderListener, removePageRenderListener, removePageValidateListener, renderPage, setChangeObserver, setLocale, setPageName, validate
 
Methods inherited from class org.apache.tapestry.BaseComponent
addOuter, finishLoad, renderComponent
 
Methods inherited from class org.apache.tapestry.AbstractComponent
addAsset, addBody, addComponent, checkActiveLock, cleanupAfterRender, enterActiveState, finishLoad, format, format, format, format, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getComponent, getComponents, getContainedComponent, getContainer, getId, 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.IComponent
addAsset, addBody, addComponent, enterActiveState, finishLoad, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getComponent, getComponents, getContainedComponent, getContainer, getId, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, isRendering, renderBody, setBinding, setContainedComponent, setContainer, setId, setNamespace, setPage, setProperty
 
Methods inherited from interface org.apache.tapestry.IRender
render
 
Methods inherited from interface org.apache.hivemind.LocationHolder
setLocation
 
Methods inherited from interface org.apache.hivemind.Locatable
getLocation
 

Constructor Detail

Bug58

public Bug58()
Method Detail

setShowForm

public abstract void setShowForm(boolean show)
set visibility of the form


getShowForm

public abstract boolean getShowForm()
read visibility of the form


toggleForm

public void toggleForm()
Toggles form visibility


getListRenderer

public ListItemRenderer getListRenderer()
The renderer

Returns:

storeNote

public void storeNote(org.apache.tapestry.IRequestCycle cycle)
Stores a new note

Parameters:
cycle -

searchCountries

public void searchCountries(String search)
Invoked by ajax request to perform autocomplete search.

Parameters:
search - The value to search on

getAllCountries

public Collection getAllCountries()
Returns all countries

Returns:

getSearchList

public abstract Collection getSearchList()
Set by invocation of searchCountries(String)


setSearchList

public abstract void setSearchList(Collection values)
Sets the search list return


getLocaleList

public abstract Collection getLocaleList()
Set by invocation of searchCountries(String)


setLocaleList

public abstract void setLocaleList(Collection values)
Sets the search list return


getNoteValue

public abstract String getNoteValue()
form note value