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

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

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

Provides example of using Editor .

Author:
andyhot

Constructor Summary
EditorExample()
           
 
Method Summary
abstract  String getEditedHtml()
          Gets the value
abstract  boolean isDisabled()
          Gets the value
abstract  boolean isPopupEditorDisabled()
          Gets the value
 void loadInitialData(org.apache.tapestry.IRequestCycle cycle)
          Sets popup editor displayed value?
 void processEdit(String newValue)
          Processes a newly selected value.
abstract  void setDisabled(boolean value)
          Sets the value
abstract  void setEditedHtml(String value)
          Sets the value
abstract  void setPopupEditorDisabled(boolean value)
          Sets the value
 void storeData()
          Process entered data and close the editor.
 void toggleForm()
          Toggles editor
 
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

EditorExample

public EditorExample()
Method Detail

loadInitialData

public void loadInitialData(org.apache.tapestry.IRequestCycle cycle)
Sets popup editor displayed value?

Parameters:
cycle -

processEdit

public void processEdit(String newValue)
Processes a newly selected value.

Parameters:
newValue -

storeData

public void storeData()
Process entered data and close the editor.


toggleForm

public void toggleForm()
Toggles editor


getEditedHtml

public abstract String getEditedHtml()
Gets the value


setEditedHtml

public abstract void setEditedHtml(String value)
Sets the value


isPopupEditorDisabled

public abstract boolean isPopupEditorDisabled()
Gets the value


setPopupEditorDisabled

public abstract void setPopupEditorDisabled(boolean value)
Sets the value


isDisabled

public abstract boolean isDisabled()
Gets the value


setDisabled

public abstract void setDisabled(boolean value)
Sets the value