|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.apache.tapestry.spec.BaseLocatable
org.apache.tapestry.AbstractComponent
org.apache.tapestry.html.Body
org.asyrinx.brownie.tapestry.components.html.ExBody
コンストラクタの概要 | |
ExBody()
|
メソッドの概要 | |
void |
addBodyScript(java.lang.String script)
Adds additional scripting code to the page. |
void |
addExternalScript(org.apache.tapestry.IResourceLocation scriptLocation)
Used to include a script from an outside URL (the scriptLocation is a URL, probably obtained from an asset. |
void |
addFinalizationScript(java.lang.String script)
Adds other finalization, in the form of additional JavaScript code to execute from the <body>'s onUnload event handler.
|
void |
addInitializationScript(java.lang.String script)
Adds other initialization, in the form of additional JavaScript code to execute from the <body>'s onLoad event handler. |
protected void |
cleanupAfterRender(org.apache.tapestry.IRequestCycle cycle)
|
static org.apache.tapestry.html.Body |
get(org.apache.tapestry.IRequestCycle cycle)
Retrieves the Body that was stored into the request cycle.
|
abstract java.lang.String |
getElement()
|
java.lang.String |
getPreloadedImageReference(java.lang.String URL)
Adds to the script an initialization for the named variable as an Image(), to the given URL. |
protected void |
renderComponent(org.apache.tapestry.IMarkupWriter writer,
org.apache.tapestry.IRequestCycle cycle)
|
abstract void |
setElement(java.lang.String element)
|
protected void |
writeScript()
Writes a single large JavaScript block containing: Any image initializations Any scripting Any initializations The script is written into a nested markup writer. |
クラス org.apache.tapestry.html.Body から継承したメソッド |
finishLoad, getUniqueString |
クラス org.apache.tapestry.AbstractComponent から継承したメソッド |
addAsset, addBody, addComponent, finishLoad, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, format, format, format, format, formatString, formatString, formatString, formatString, generateAttributes, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getChangeObserver, getComponent, getComponents, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, getString, pageEndRender, prepareForRender, render, renderBody, renderInformalParameters, setBinding, setContainer, setId, setNamespace, setPage, setProperty, setSpecification, toString |
クラス org.apache.tapestry.spec.BaseLocatable から継承したメソッド |
getLocation, setLocation |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
インタフェース org.apache.tapestry.IScriptProcessor から継承したメソッド |
getUniqueString |
インタフェース org.apache.tapestry.ILocationHolder から継承したメソッド |
setLocation |
インタフェース org.apache.tapestry.ILocatable から継承したメソッド |
getLocation |
コンストラクタの詳細 |
public ExBody()
メソッドの詳細 |
public java.lang.String getPreloadedImageReference(java.lang.String URL)
Returns a reference, a string that can be used to represent the preloaded image in a JavaScript function.
public void addInitializationScript(java.lang.String script)
onLoad
event handler. The
caller is responsible for adding a semicolon (statement terminator). This
method will add a newline after the script.
org.apache.tapestry.IScriptProcessor
内の addInitializationScript
public void addFinalizationScript(java.lang.String script)
onUnload
event handler.
The caller is responsible for adding a semicolon (statement terminator).
This method will add a newline after the script.
IFinalizableScriptProcessor
内の addFinalizationScript
public void addBodyScript(java.lang.String script)
This is typically used to add some form of JavaScript event handler to a
page. For example, the Rollover
component makes use of this.
Another way this is invoked is by using the Script
component.
The string will be added, as-is, within the <script> block
generated by this Body
component. The script should
not contain HTML comments, those will be supplied by this Body
component.
A frequent use is to add an initialization function using this method,
then cause it to be executed using
#addOtherInitialization(String)
.
org.apache.tapestry.IScriptProcessor
内の addBodyScript
public void addExternalScript(org.apache.tapestry.IResourceLocation scriptLocation)
org.apache.tapestry.IScriptProcessor
内の addExternalScript
public static org.apache.tapestry.html.Body get(org.apache.tapestry.IRequestCycle cycle)
Body
that was stored into the request cycle.
This allows components wrapped by the Body
to locate it
and access the services it provides.
protected void renderComponent(org.apache.tapestry.IMarkupWriter writer, org.apache.tapestry.IRequestCycle cycle)
protected void cleanupAfterRender(org.apache.tapestry.IRequestCycle cycle)
protected void writeScript()
The script is written into a nested markup writer.
If there are any other initializations (see
#addOtherInitialization(String)
), then a function to execute
them is created.
public abstract java.lang.String getElement()
public abstract void setElement(java.lang.String element)
|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |