概要 | パッケージ | クラス | 使用 | 階層ツリー | 非推奨 API | 索引 | ヘルプ
前のクラス 次のクラス | フレームあり フレームなし
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド

## org.asyrinx.brownie.tapestry.components.html
クラス ExBody

    java.lang.Object
      org.apache.tapestry.spec.BaseLocatable
          org.apache.tapestry.AbstractComponent
              org.apache.tapestry.html.Body
                  org.asyrinx.brownie.tapestry.components.html.ExBody

すべての実装インタフェース:
  org.apache.tapestry.IComponent, IFinalizableScriptProcessor, org.apache.tapestry.ILocatable, org.apache.tapestry.ILocationHolder, org.apache.tapestry.IRender, org.apache.tapestry.IScriptProcessor

public abstract class ExBody
extends org.apache.tapestry.html.Body
implements IFinalizableScriptProcessor

作成者:
  akima

コンストラクタの概要
`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`

コンストラクタの詳細

### ExBody

    public ExBody()

メソッドの詳細

### getPreloadedImageReference

    public 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.

  Returns a reference, a string that can be used to represent the preloaded image in a JavaScript function.

  導入されたバージョン:
    1.0.2

### addInitializationScript

    public 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. The caller is responsible for adding a semicolon (statement terminator). This method will add a newline after the script.

  定義:
    インタフェース `org.apache.tapestry.IScriptProcessor` 内の `addInitializationScript`

### addFinalizationScript

    public 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. The caller is responsible for adding a semicolon (statement terminator). This method will add a newline after the script.

  定義:
    インタフェース `IFinalizableScriptProcessor` 内の `addFinalizationScript`

### addBodyScript

    public void addBodyScript(java.lang.String script)

  Adds additional scripting code to the page. This code will be added to a large block of scripting code at the top of the page (i.e., the before the <body> tag).

  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`

### addExternalScript

    public 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. This adds an <script src="..."> tag before the main <script> tag. The Body component ensures that each URL is included only once.

  定義:
    インタフェース `org.apache.tapestry.IScriptProcessor` 内の `addExternalScript`
  導入されたバージョン:
    1.0.5

### get

    public static org.apache.tapestry.html.Body get(org.apache.tapestry.IRequestCycle cycle)

  Retrieves the `Body` that was stored into the request cycle. This allows components wrapped by the `Body` to locate it and access the services it provides.

### renderComponent

    protected void renderComponent(org.apache.tapestry.IMarkupWriter writer,
                                   org.apache.tapestry.IRequestCycle cycle)

### cleanupAfterRender

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

### writeScript

    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.

  If there are any other initializations (see `#addOtherInitialization(String)`), then a function to execute them is created.

### getElement

    public abstract java.lang.String getElement()

### setElement

    public abstract void setElement(java.lang.String element)

概要 | パッケージ | クラス | 使用 | 階層ツリー | 非推奨 API | 索引 | ヘルプ
前のクラス 次のクラス | フレームあり フレームなし
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド

Copyright © 2004 asyrinx organization. All Rights Reserved.