|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.seasar.uruma.component.base.AbstractUIElement
org.seasar.uruma.component.base.AbstractUIComponent
public abstract class AbstractUIComponent
UIComponent を表す基底クラスです。
| コンストラクタの概要 | |
|---|---|
AbstractUIComponent()
|
|
| メソッドの概要 | |
|---|---|
protected void |
doPreRender(WidgetHandle parent,
WindowContext context)
レンダラ呼び出し中に独自のレンダリング処理を追加するためのメソッドです。 |
protected void |
doRender(WidgetHandle parent,
PartContext context)
レンダラ呼び出し中に独自のレンダリング処理を追加するためのメソッドです。 |
String |
getId()
ID を取得します。 |
UIComponentContainer |
getParent()
親となる UICompositeComponent を取得します。 |
Renderer |
getRenderer()
レンダラを取得します。 |
String |
getStyle()
スタイルを表す文字列を取得します。 |
void |
preRender(WidgetHandle parent,
WindowContext context)
設定されたレンダラを利用して、レンダリングを行います。 |
void |
render(WidgetHandle parent,
PartContext context)
設定されたレンダラを利用して、レンダリングを行います。 |
void |
setId(String id)
ID を設定します。 |
void |
setParent(UIComponentContainer parent)
親となる UICompositeComponent を設定します。 |
void |
setRenderer(Renderer renderer)
レンダラを設定します。 |
void |
setStyle(String style)
スタイルを表す文字列を設定します。 |
String |
toString()
|
| クラス org.seasar.uruma.component.base.AbstractUIElement から継承されたメソッド |
|---|
accept, getBasePath, getLocation, getPath, setBasePath, setLocation, setPath |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| インタフェース org.seasar.uruma.component.UIElement から継承されたメソッド |
|---|
getBasePath, getLocation, getPath, setBasePath, setLocation, setPath |
| インタフェース org.seasar.uruma.component.UIElementVisitorAcceptor から継承されたメソッド |
|---|
accept |
| コンストラクタの詳細 |
|---|
public AbstractUIComponent()
| メソッドの詳細 |
|---|
protected void doPreRender(WidgetHandle parent,
WindowContext context)
本メソッドは preRender(WidgetHandle, WindowContext)
メソッドの中で、レンダラ の
Renderer.preRender(UIComponent, WidgetHandle, WindowContext)
メソッドを呼び出した後に呼び出されます。
このタイミングでサブクラスで独自のレンダリング処理を行う場合、本メソッドをオーバーライドしてください。
parent - 親 WidgetHandle オブジェクトcontext - WindowContext オブジェクト
protected void doRender(WidgetHandle parent,
PartContext context)
本メソッドは renderer メソッドの中で、レンダラ
の
render()
メソッドと
renderAfter()
メソッドを呼び出す間に呼び出されます。
このタイミングでサブクラスで独自のレンダリング処理を行う場合、本メソッドをオーバーライドしてください。
parent - 親 WidgetHandle オブジェクトcontext - PartContext オブジェクト
public void preRender(WidgetHandle parent,
WindowContext context)
UIComponent の記述: 具体的には以下のタイミングです。
UrumaApplicationWindow の場合
UrumaApplicationWindow#init() メソッド内 (createContent()
メソッドよりも前のタイミング
UIComponent 内の preRenderparent - 親となる WidgetHandle オブジェクトcontext - WindowContext オブジェクト
public void render(WidgetHandle parent,
PartContext context)
UIComponent の記述: UrumaApplicationWindow#createContents()
メソッドの中で呼び出されます。
UIComponent 内の renderparent - 親となる WidgetHandle オブジェクトcontext - PartContext オブジェクトpublic String getId()
UIComponent の記述:
UIComponent 内の getIdpublic UIComponentContainer getParent()
UIComponent の記述: UICompositeComponent を取得します。
UIComponent 内の getParentpublic Renderer getRenderer()
UIComponent の記述:
UIComponent 内の getRendererpublic String getStyle()
UIComponent の記述:
UIComponent 内の getStylepublic void setId(String id)
UIComponent の記述:
UIComponent 内の setIdid - IDpublic void setParent(UIComponentContainer parent)
UIComponent の記述: UICompositeComponent を設定します。
UIComponent 内の setParentparent - 親コンポーネントpublic void setRenderer(Renderer renderer)
UIComponent の記述:
UIComponent 内の setRendererrenderer - レンダラオブジェクトpublic void setStyle(String style)
UIComponent の記述:
UIComponent 内の setStylestyle - スタイルpublic String toString()
AbstractUIElement 内の toString
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||