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

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

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

Demonstrates some complex possibilities.

Author:
ebin111

Field Summary
static DateFormat DATE_FORMAT
          Format of times
static int MAX_LIST_SIZE
          Maximum fisheyelist row size
 
Constructor Summary
DragAndDropExample()
           
 
Method Summary
 void addCountry(org.apache.tapestry.IRequestCycle cycle)
          Adds a new country
 List getItems()
          Generates list of countries based on locale and sorts them by name.
abstract  Set getSelectedItems()
          selected
 void removeCountry(org.apache.tapestry.IRequestCycle cycle)
          Removes a country from the selected list
abstract  void setSelectedItems(Set selectedItems)
          sets selected
 
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

DATE_FORMAT

public static final DateFormat DATE_FORMAT
Format of times


MAX_LIST_SIZE

public static final int MAX_LIST_SIZE
Maximum fisheyelist row size

See Also:
Constant Field Values
Constructor Detail

DragAndDropExample

public DragAndDropExample()
Method Detail

getItems

public List getItems()
Generates list of countries based on locale and sorts them by name.

Returns:

addCountry

public void addCountry(org.apache.tapestry.IRequestCycle cycle)
Adds a new country

Parameters:
cycle -

removeCountry

public void removeCountry(org.apache.tapestry.IRequestCycle cycle)
Removes a country from the selected list

Parameters:
cycle -

getSelectedItems

public abstract Set getSelectedItems()
selected


setSelectedItems

public abstract void setSelectedItems(Set selectedItems)
sets selected