net.sf.tacos.demo.pages.ajax
Class FloatingPaneExample

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.ajax.FloatingPaneExample
All Implemented Interfaces:
Locatable, LocationHolder, org.apache.tapestry.IComponent, org.apache.tapestry.IPage, org.apache.tapestry.IRender, org.apache.tapestry.ITemplateComponent

public abstract class FloatingPaneExample
extends org.apache.tapestry.html.BasePage

demonstrate the floating pane including the component and AjaxDirectLink parameter.

Author:
Felix Sun

Field Summary
protected static org.apache.commons.logging.Log logger
          logger
 
Constructor Summary
FloatingPaneExample()
           
 
Method Summary
 void doNothing()
          Dummy listener
 List getCountryItems()
          Gets the items
abstract  String getPopupSelectedCountryIndex()
          popup selected country index
abstract  String getSelectedCountry()
          selected country for the parent TextField
abstract  boolean isClosePopup()
          indicate if we should close the popup.
 void popupCountrySelect(org.apache.tapestry.IRequestCycle cycle)
          Popup the country select dialog.
 void selectCountry(org.apache.tapestry.IRequestCycle cycle)
          Popup the country select dialog.
abstract  void setClosePopup(boolean closePopup)
          set if we should close the popup.
abstract  void setPopupSelectedCountryIndex(String popupSelectedCountryIndex)
          set popup selected country index
abstract  void setSelectedCountry(String selectedCountry)
          set selected country for the parent TextField
 
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
 

Field Detail

logger

protected static final org.apache.commons.logging.Log logger
logger

Constructor Detail

FloatingPaneExample

public FloatingPaneExample()
Method Detail

getSelectedCountry

public abstract String getSelectedCountry()
selected country for the parent TextField

Returns:
selected country.

setSelectedCountry

public abstract void setSelectedCountry(String selectedCountry)
set selected country for the parent TextField


getPopupSelectedCountryIndex

public abstract String getPopupSelectedCountryIndex()
popup selected country index

Returns:
index

setPopupSelectedCountryIndex

public abstract void setPopupSelectedCountryIndex(String popupSelectedCountryIndex)
set popup selected country index


isClosePopup

public abstract boolean isClosePopup()
indicate if we should close the popup.

Returns:
boolean

setClosePopup

public abstract void setClosePopup(boolean closePopup)
set if we should close the popup.


popupCountrySelect

public void popupCountrySelect(org.apache.tapestry.IRequestCycle cycle)
Popup the country select dialog.

Parameters:
cycle -

selectCountry

public void selectCountry(org.apache.tapestry.IRequestCycle cycle)
Popup the country select dialog.

Parameters:
cycle -

getCountryItems

public List getCountryItems()
Gets the items

Returns:
country items

doNothing

public void doNothing()
Dummy listener