net.sf.tacos.ajax.components
Class Editor

java.lang.Object
  extended by org.apache.hivemind.impl.BaseLocatable
      extended by org.apache.tapestry.AbstractComponent
          extended by net.sf.tacos.ajax.components.Editor
All Implemented Interfaces:
Locatable, LocationHolder, org.apache.tapestry.IComponent, org.apache.tapestry.IDirect, org.apache.tapestry.IRender

public abstract class Editor
extends org.apache.tapestry.AbstractComponent
implements org.apache.tapestry.IDirect


Constructor Summary
Editor()
           
 
Method Summary
abstract  AjaxDirectService getAjaxEngine()
          Injected AjaxDirect engine
abstract  org.apache.tapestry.IActionListener getCancel()
          Listener triggered onCancel
abstract  String getElement()
          The surrounding html element
abstract  String getItems()
          The items to include in the toolbar of the editor
abstract  org.apache.tapestry.IActionListener getListener()
          Listener triggered onSave
abstract  org.apache.tapestry.listener.ListenerInvoker getListenerInvoker()
          Injected listener invoker
abstract  boolean getRefreshContents()
          If editor should refresh contents
abstract  org.apache.tapestry.IScript getScript()
          Editor script
abstract  Collection getUpdateComponents()
          Components to update in request.
abstract  Object getValue()
          Property value parameter
abstract  boolean isDirect()
          Use direct call
abstract  boolean isDisabled()
          If editor is disabled
abstract  boolean isValueUpdate()
          If value updated
protected  void renderComponent(org.apache.tapestry.IMarkupWriter writer, org.apache.tapestry.IRequestCycle cycle)
          
abstract  void setValue(Object value)
          Sets property value parameter
abstract  void setValueUpdate(boolean value)
          Sets if value updated
 void trigger(org.apache.tapestry.IRequestCycle cycle)
          
 
Methods inherited from class org.apache.tapestry.AbstractComponent
addAsset, addBody, addComponent, checkActiveLock, cleanupAfterRender, enterActiveState, finishLoad, finishLoad, format, format, format, format, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getComponent, getComponents, getContainedComponent, getContainer, getExtendedId, getId, getIdPath, 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.IDirect
isStateful
 
Methods inherited from interface org.apache.tapestry.IComponent
addAsset, addBody, addComponent, enterActiveState, finishLoad, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getComponent, getComponents, getContainedComponent, getContainer, getExtendedId, getId, getIdPath, 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

Editor

public Editor()
Method Detail

getAjaxEngine

public abstract AjaxDirectService getAjaxEngine()
Injected AjaxDirect engine


getListenerInvoker

public abstract org.apache.tapestry.listener.ListenerInvoker getListenerInvoker()
Injected listener invoker


getScript

public abstract org.apache.tapestry.IScript getScript()
Editor script


getListener

public abstract org.apache.tapestry.IActionListener getListener()
Listener triggered onSave


getCancel

public abstract org.apache.tapestry.IActionListener getCancel()
Listener triggered onCancel


isDirect

public abstract boolean isDirect()
Use direct call


getElement

public abstract String getElement()
The surrounding html element


getItems

public abstract String getItems()
The items to include in the toolbar of the editor


isDisabled

public abstract boolean isDisabled()
If editor is disabled


getRefreshContents

public abstract boolean getRefreshContents()
If editor should refresh contents


getValue

public abstract Object getValue()
Property value parameter


setValue

public abstract void setValue(Object value)
Sets property value parameter


setValueUpdate

public abstract void setValueUpdate(boolean value)
Sets if value updated


isValueUpdate

public abstract boolean isValueUpdate()
If value updated


getUpdateComponents

public abstract Collection getUpdateComponents()
Components to update in request.


renderComponent

protected void renderComponent(org.apache.tapestry.IMarkupWriter writer,
                               org.apache.tapestry.IRequestCycle cycle)

Specified by:
renderComponent in class org.apache.tapestry.AbstractComponent

trigger

public void trigger(org.apache.tapestry.IRequestCycle cycle)

Specified by:
trigger in interface org.apache.tapestry.IDirect