net.sf.tacos.components
Class IdBean

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

public abstract class IdBean
extends org.apache.tapestry.AbstractComponent

A component that can substitute for any HTML element. It dynamically emulates any element (including attributes provided as informal parameters) while always appending an additional html id attribute.


Constructor Summary
IdBean()
           
 
Method Summary
protected  void generateId(org.apache.tapestry.IRequestCycle cycle)
           
abstract  String getAfterId()
          Get the true html id
 String getBeforeId()
           
abstract  String getClientId()
          Get the true html id
abstract  String getElement()
           
abstract  String getIdParameter()
          The user specified id
protected  void renderComponent(org.apache.tapestry.IMarkupWriter writer, org.apache.tapestry.IRequestCycle cycle)
           
abstract  void setAfterId(String id)
          Set the true html id
abstract  void setClientId(String id)
          Set the true html id
 
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.hivemind.LocationHolder
setLocation
 
Methods inherited from interface org.apache.hivemind.Locatable
getLocation
 

Constructor Detail

IdBean

public IdBean()
Method Detail

renderComponent

protected void renderComponent(org.apache.tapestry.IMarkupWriter writer,
                               org.apache.tapestry.IRequestCycle cycle)
Specified by:
renderComponent in class org.apache.tapestry.AbstractComponent

generateId

protected void generateId(org.apache.tapestry.IRequestCycle cycle)

getBeforeId

public String getBeforeId()

getElement

public abstract String getElement()

getIdParameter

public abstract String getIdParameter()
The user specified id


getClientId

public abstract String getClientId()
Get the true html id


setClientId

public abstract void setClientId(String id)
Set the true html id


getAfterId

public abstract String getAfterId()
Get the true html id


setAfterId

public abstract void setAfterId(String id)
Set the true html id