net.sf.tacos.demo.pages.forms
Class AjaxSubmitExample

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

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

Demonstrates the use of Ajax submissions.

Author:
Leonardo Quijano

Constructor Summary
AjaxSubmitExample()
           
 
Method Summary
 void buildBackwardsName(org.apache.tapestry.IRequestCycle cycle, Name name)
          Builds the full name, backwards (Last Name + First Name).
 void buildNormalName(org.apache.tapestry.IRequestCycle cycle, Name name)
          Builds the full name, in the normal order (First Name + Last Name).
abstract  Name getButtonName()
           
abstract  Name getImageButtonName()
           
abstract  Name getLinkName()
           
abstract  Name getScriptName()
           
abstract  String getSelectedRadio()
           
abstract  boolean isButtonRedirect()
           
abstract  boolean isImageButtonRedirect()
           
abstract  boolean isLinkRedirect()
           
abstract  boolean isScriptRedirect()
           
abstract  void setButtonName(Name name)
          sets the name
abstract  void setImageButtonName(Name name)
          sets the name
abstract  void setLinkName(Name name)
          sets the name
abstract  void setScriptName(Name name)
          sets the name
abstract  void setSelectedRadio(String selectedRadio)
          sets the selected radio
 
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

AjaxSubmitExample

public AjaxSubmitExample()
Method Detail

buildNormalName

public void buildNormalName(org.apache.tapestry.IRequestCycle cycle,
                            Name name)
Builds the full name, in the normal order (First Name + Last Name).

Parameters:
cycle - the Tapestry request cycle.
name - the name to change.

buildBackwardsName

public void buildBackwardsName(org.apache.tapestry.IRequestCycle cycle,
                               Name name)
Builds the full name, backwards (Last Name + First Name).

Parameters:
cycle - the Tapestry request cycle.
name - the name to change.

getButtonName

public abstract Name getButtonName()
Returns:
The button example name.

setButtonName

public abstract void setButtonName(Name name)
sets the name


getImageButtonName

public abstract Name getImageButtonName()
Returns:
The image button example name.

setImageButtonName

public abstract void setImageButtonName(Name name)
sets the name


getLinkName

public abstract Name getLinkName()
Returns:
The link example name.

setLinkName

public abstract void setLinkName(Name name)
sets the name


getScriptName

public abstract Name getScriptName()
Returns:
The script example name.

setScriptName

public abstract void setScriptName(Name name)
sets the name


getSelectedRadio

public abstract String getSelectedRadio()
Returns:
The selected radio.

setSelectedRadio

public abstract void setSelectedRadio(String selectedRadio)
sets the selected radio


isButtonRedirect

public abstract boolean isButtonRedirect()
Returns:
True if the listener must redirect after the button example submission.

isImageButtonRedirect

public abstract boolean isImageButtonRedirect()
Returns:
True if the listener must redirect after the image button example submission.

isLinkRedirect

public abstract boolean isLinkRedirect()
Returns:
True if the listener must redirect after the link example submission.

isScriptRedirect

public abstract boolean isScriptRedirect()
Returns:
True if the listener must redirect after the script example submission.