public abstract class Script extends AbstractComponent
Body
component to add a script (and perhaps some initialization) to the
HTML response. [ Component Reference
]Constructor and Description |
---|
Script() |
Modifier and Type | Method and Description |
---|---|
protected void |
cleanupAfterRender(IRequestCycle cycle)
Invoked by
AbstractComponent.render(IMarkupWriter, IRequestCycle) after the component renders. |
abstract java.util.Map |
getBaseSymbols() |
abstract IAsset |
getScriptAsset() |
abstract java.lang.String |
getScriptPath() |
abstract IScriptSource |
getScriptSource()
Injected
|
java.util.Map |
getSymbols()
Returns the complete set of symbols (input and output) from the script execution.
|
protected void |
renderComponent(IMarkupWriter writer,
IRequestCycle cycle)
Invoked by
AbstractComponent.render(IMarkupWriter, IRequestCycle) to actually render the component
(with any parameter values already set). |
addAsset, addBody, addComponent, checkActiveLock, 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
public Script()
public abstract IScriptSource getScriptSource()
protected void renderComponent(IMarkupWriter writer, IRequestCycle cycle)
AbstractComponent
AbstractComponent.render(IMarkupWriter, IRequestCycle)
to actually render the component
(with any parameter values already set). This is the method that subclasses must implement.renderComponent
in class AbstractComponent
public abstract java.lang.String getScriptPath()
public abstract IAsset getScriptAsset()
public abstract java.util.Map getBaseSymbols()
public java.util.Map getSymbols()
protected void cleanupAfterRender(IRequestCycle cycle)
AbstractComponent
AbstractComponent.render(IMarkupWriter, IRequestCycle)
after the component renders. This
implementation does nothing.cleanupAfterRender
in class AbstractComponent