org.seasar.uruma.component.impl
クラス MenuComponent

java.lang.Object
  上位を拡張 org.seasar.uruma.component.impl.AbstractUIElement
      上位を拡張 org.seasar.uruma.component.impl.AbstractUIComponent
          上位を拡張 org.seasar.uruma.component.impl.AbstractItemComponent
              上位を拡張 org.seasar.uruma.component.impl.MenuItemComponent
                  上位を拡張 org.seasar.uruma.component.impl.MenuComponent
すべての実装されたインタフェース:
EnablesDependable, UIComponent, UIContainer, UIElement

public class MenuComponent
extends MenuItemComponent
implements UIContainer

メニュー情報を保持するためのコンポーネントです。

作成者:
bskuroneko, y-komori

フィールドの概要
 
クラス org.seasar.uruma.component.impl.MenuItemComponent から継承されたフィールド
accelerator, CHECK, description, disabledImage, enabled, enablesDependingId, enablesFor, hoverImage, PUSH, RADIO, selection
 
コンストラクタの概要
MenuComponent()
           
 
メソッドの概要
 void addChild(UIComponent child)
          子となる UIComponent を追加します。
protected  void doPreRender(WidgetHandle parent, PartContext context)
          レンダラ呼び出し中に独自のレンダリング処理を追加するためのメソッドです。
 List<UIComponent> getChildren()
          子コンポーネントのリストを取得します。
 String getDefaultItemId()
          デフォルトアイテムIDを取得します。
 String getVisible()
          可視状態を取得します。
 String getX()
          X 座標を取得します。
 String getY()
          Y 座標を取得します。
 void setDefaultItemId(String defaultItemId)
          デフォルトアイテムIDを設定します。
 void setVisible(String visible)
          可視状態を設定します。
 void setX(String x)
          X 座標を設定します。
 void setY(String y)
          Y 座標を設定します。
 
クラス org.seasar.uruma.component.impl.MenuItemComponent から継承されたメソッド
getEnablesDependingId, getEnablesFor
 
クラス org.seasar.uruma.component.impl.AbstractItemComponent から継承されたメソッド
getImage, getText, setImage, setText
 
クラス org.seasar.uruma.component.impl.AbstractUIComponent から継承されたメソッド
doRender, getId, getParent, getRenderer, getStyle, getWidgetHandle, preRender, render, setId, setParent, setRenderer, setStyle, setWidgetHandle
 
クラス org.seasar.uruma.component.impl.AbstractUIElement から継承されたメソッド
getBasePath, getLocation, setBasePath, setLocation
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
インタフェース org.seasar.uruma.component.UIComponent から継承されたメソッド
getId, getParent, getRenderer, getStyle, getWidgetHandle, preRender, render, setId, setParent, setRenderer, setStyle, setWidgetHandle
 
インタフェース org.seasar.uruma.component.UIElement から継承されたメソッド
getBasePath, getLocation, setBasePath, setLocation
 

コンストラクタの詳細

MenuComponent

public MenuComponent()
メソッドの詳細

getDefaultItemId

public String getDefaultItemId()
デフォルトアイテムIDを取得します。

戻り値:
デフォルトアイテムID

setDefaultItemId

public void setDefaultItemId(String defaultItemId)
デフォルトアイテムIDを設定します。

パラメータ:
defaultItemId - デフォルトアイテムID

getVisible

public String getVisible()
可視状態を取得します。

戻り値:
可視状態

setVisible

public void setVisible(String visible)
可視状態を設定します。

パラメータ:
visible - 可視状態

getX

public String getX()
X 座標を取得します。

戻り値:
X 座標

setX

public void setX(String x)
X 座標を設定します。

パラメータ:
x - X 座標

getY

public String getY()
Y 座標を取得します。

戻り値:
Y 座標

setY

public void setY(String y)
Y 座標を設定します。

パラメータ:
y - Y 座標

addChild

public void addChild(UIComponent child)
インタフェース UIContainer の記述:
子となる UIComponent を追加します。

定義:
インタフェース UIContainer 内の addChild
パラメータ:
child - 子コンポーネント

getChildren

public List<UIComponent> getChildren()
インタフェース UIContainer の記述:
子コンポーネントのリストを取得します。

定義:
インタフェース UIContainer 内の getChildren
戻り値:
子コンポーネントのリスト

doPreRender

protected void doPreRender(WidgetHandle parent,
                           PartContext context)
クラス AbstractUIComponent の記述:
レンダラ呼び出し中に独自のレンダリング処理を追加するためのメソッドです。

本メソッドは AbstractUIComponent.preRender(WidgetHandle, PartContext) メソッドの中で、レンダラpreRender() メソッドを呼び出した後に呼び出されます。

このタイミングでサブクラスで独自のレンダリング処理を行う場合、本メソッドをオーバーライドしてください。

オーバーライド:
クラス AbstractUIComponent 内の doPreRender
パラメータ:
parent - 親 WidgetHandle オブジェクト
context - PartContext オブジェクト


Copyright © 2006-2007 The Seasar Foundation. All Rights Reserved.