net.sf.tacos.ajax.components
Class Dialog

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

public abstract class Dialog
extends org.apache.tapestry.BaseComponent

Wrapper around dojo's Dialog widget.

Author:
jkuhnert

Constructor Summary
Dialog()
           
 
Method Summary
protected  String generateHide(boolean renderHide)
          Creates the javascript that will hide the dialog widget.
abstract  AjaxWebRequest getAjaxRequest()
          injected
abstract  org.apache.tapestry.IScript getScript()
          Injected
 void hide()
          Sets the state of the dialog such that it will be hidden if it exists and is currently shown on a page.
protected  String initializeScript()
          Should only be generated during a valid ajax request.
abstract  boolean isHidden()
          is hidden
protected  void renderComponent(org.apache.tapestry.IMarkupWriter writer, org.apache.tapestry.IRequestCycle cycle)
           
abstract  void setHidden(boolean value)
          value for hidden
 void show()
          Sets dialog state so that it is shown.
 
Methods inherited from class org.apache.tapestry.BaseComponent
addOuter, finishLoad
 
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, 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.IComponent
addAsset, addBody, addComponent, enterActiveState, 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

Dialog

public Dialog()
Method Detail

getScript

public abstract org.apache.tapestry.IScript getScript()
Injected


getAjaxRequest

public abstract AjaxWebRequest getAjaxRequest()
injected


setHidden

public abstract void setHidden(boolean value)
value for hidden


isHidden

public abstract boolean isHidden()
is hidden


hide

public void hide()
Sets the state of the dialog such that it will be hidden if it exists and is currently shown on a page.


show

public void show()
Sets dialog state so that it is shown.


generateHide

protected String generateHide(boolean renderHide)
Creates the javascript that will hide the dialog widget.

Returns:

initializeScript

protected String initializeScript()
Should only be generated during a valid ajax request.

Returns:

renderComponent

protected void renderComponent(org.apache.tapestry.IMarkupWriter writer,
                               org.apache.tapestry.IRequestCycle cycle)
Overrides:
renderComponent in class org.apache.tapestry.BaseComponent
See Also:
AbstractComponent.renderComponent(org.apache.tapestry.IMarkupWriter, org.apache.tapestry.IRequestCycle)