org.apache.tapestry
Class BaseComponent
java.lang.Object
org.apache.hivemind.impl.BaseLocatable
org.apache.tapestry.AbstractComponent
org.apache.tapestry.BaseComponent
- All Implemented Interfaces:
- Locatable, LocationHolder, IComponent, IDirectEvent, IRender, ITemplateComponent
- Direct Known Subclasses:
- AbstractPage, ExceptionDisplay, RequestDisplay
public class BaseComponent
- extends AbstractComponent
- implements ITemplateComponent
Base implementation for most components that use an HTML template.
- Author:
- Howard Lewis Ship
| Methods inherited from class org.apache.tapestry.AbstractComponent |
addAsset, addBody, addComponent, checkActiveLock, cleanupAfterRender, enterActiveState, finishLoad, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getClientId, getComponent, getComponents, getContainedComponent, getContainer, getEventInvoker, getExtendedId, getId, getIdPath, getListeners, getMessages, getNamespace, getPage, getRenderWorker, getSpecification, isInActiveState, isParameterBound, isRendering, isStateful, pageEndRender, prepareForRender, render, renderBody, renderIdAttribute, renderInformalParameters, setBinding, setClientId, setContainedComponent, setContainer, setId, setNamespace, setPage, toString, triggerEvent |
| Methods inherited from interface org.apache.tapestry.IComponent |
addAsset, addBody, addComponent, enterActiveState, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getClientId, getComponent, getComponents, getContainedComponent, getContainer, getEventInvoker, getExtendedId, getId, getIdPath, getListeners, getMessages, getNamespace, getPage, getSpecification, isRendering, renderBody, setBinding, setContainedComponent, setContainer, setId, setNamespace, setPage |
| Methods inherited from interface org.apache.tapestry.IRender |
render |
BaseComponent
public BaseComponent()
addOuter
public void addOuter(IRender element)
- Adds an element as an outer element for the receiver. Outer elements are elements that should
be directly rendered by the receiver's
render() method. That is, they are
top-level elements on the HTML template.
- Specified by:
addOuter in interface ITemplateComponent
renderComponent
protected void renderComponent(IMarkupWriter writer,
IRequestCycle cycle)
- Renders the top level components contained by the receiver.
- Specified by:
renderComponent in class AbstractComponent
- Since:
- 2.0.3
finishLoad
public void finishLoad(IRequestCycle cycle,
IPageLoader loader,
IComponentSpecification specification)
- Loads the template for the component, then invokes
AbstractComponent.finishLoad(IRequestCycle, IPageLoader, IComponentSpecification).
Subclasses must invoke this method first, before adding any additional behavior, though its
usually simpler to override AbstractComponent.finishLoad()instead.
- Specified by:
finishLoad in interface IComponent- Overrides:
finishLoad in class AbstractComponent
Copyright © 2006 Apache Software Foundation. All Rights Reserved.