public class BaseComponent extends AbstractComponent implements ITemplateComponent
Constructor and Description |
---|
BaseComponent() |
Modifier and Type | Method and Description |
---|---|
void |
addOuter(IRender element)
Adds an element as an outer element for the receiver.
|
void |
finishLoad(IRequestCycle cycle,
IPageLoader loader,
IComponentSpecification specification)
Loads the template for the component, then invokes
AbstractComponent.finishLoad(IRequestCycle, IPageLoader, IComponentSpecification) . |
protected void |
renderComponent(IMarkupWriter writer,
IRequestCycle cycle)
Renders the top level components contained by the receiver.
|
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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
public BaseComponent()
public void addOuter(IRender element)
render()
method. That is, they are
top-level elements on the HTML template.addOuter
in interface ITemplateComponent
protected void renderComponent(IMarkupWriter writer, IRequestCycle cycle)
renderComponent
in class AbstractComponent
public void finishLoad(IRequestCycle cycle, IPageLoader loader, IComponentSpecification specification)
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.finishLoad
in interface IComponent
finishLoad
in class AbstractComponent