org.seasar.uruma.context.impl
クラス WindowContextImpl

java.lang.Object
  上位を拡張 org.seasar.uruma.context.impl.AbstractWidgetHolder
      上位を拡張 org.seasar.uruma.context.impl.WindowContextImpl
すべての実装されたインタフェース:
WidgetHolder, WindowContext

public class WindowContextImpl
extends AbstractWidgetHolder
implements WindowContext

WindowContext の実装クラスです。

作成者:
y-komori

コンストラクタの概要
WindowContextImpl(String windowName, ApplicationContext parent)
          WindowContextImpl を構築します。
 
メソッドの概要
 void addEnablesDependingDef(EnablesDependingDef enablesDependingDef)
          EnablesDependingDef を追加します。
 void addPartContext(PartContext context)
          PartContext オブジェクトを追加します。
 void dispose()
          この WindowContext を親 ApplicationContext から削除します。
 void disposePartContext(String partName)
          PartContext オブジェクトを削除します。
 List<WidgetHandle> findWidgetHandles(String handleId)
          WindowContext 本体および配下のすべての PartContext から、handleId にマッチする WidgetHandle を検索して返します。
 List<WidgetHandle> getAllWidgetHandles(Class<?> clazz)
          WindowContext 本体および配下のすべての PartContext から、指定されたクラスのオブジェクトを持つ WidgetHandle をすべて検索して返します。
 ApplicationContext getApplicationContext()
          親 ApplicationContext を返します。
 List<EnablesDependingDef> getEnablesDependingDefList()
          EnablesDependingDef のリストを返します。
 String getName()
          ウィンドウの名称を取得します。
 PartActionDesc getPartActionDesc()
          PartActionDesc オブジェクトを取得します。
 PartContext getPartContext()
          PartContext を返します。
 PartContext getPartContext(String partName)
          partName で指定された名称を持つ PartContext を取得します。
 List<PartContext> getPartContextList()
          WindowContext が保持する PartContext のリストを返します。
 Object getWorkbenchActionObject()
          ワークベンチウィンドーアクションクラスのオブジェクトを取得します。
 void setPartActionDesc(PartActionDesc desc)
          PartActionDesc オブジェクトを設定します。
 void setWorkbenchActionObject(Object workbenchActionObj)
          ワークベンチアクションクラスのオブジェクトを設定します。
 
クラス org.seasar.uruma.context.impl.AbstractWidgetHolder から継承されたメソッド
getWidgetHandle, getWidgetHandles, getWidgetHandles, hasWidgetHandle, putWidgetHandle
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
インタフェース org.seasar.uruma.context.WidgetHolder から継承されたメソッド
getWidgetHandle, getWidgetHandles, getWidgetHandles, hasWidgetHandle, putWidgetHandle
 

コンストラクタの詳細

WindowContextImpl

public WindowContextImpl(String windowName,
                         ApplicationContext parent)
WindowContextImpl を構築します。

パラメータ:
windowName - ウィンドウ名称
parent - 親 ApplicationContext
メソッドの詳細

getName

public String getName()
インタフェース WindowContext の記述:
ウィンドウの名称を取得します。

定義:
インタフェース WindowContext 内の getName
戻り値:
ウィンドウの名称

getPartContext

public PartContext getPartContext()
インタフェース WindowContext の記述:
PartContext を返します。
PartContext が複数登録されている場合、最初に登録された PartContext を返します。
PartContext が登録されていない場合、null を返します。

定義:
インタフェース WindowContext 内の getPartContext
戻り値:
PartContext オブジェクト

getPartContext

public PartContext getPartContext(String partName)
インタフェース WindowContext の記述:
partName で指定された名称を持つ PartContext を取得します。

定義:
インタフェース WindowContext 内の getPartContext
パラメータ:
partName - パート名称
戻り値:
PartContext オブジェクト。見つからない場合は、null

getPartContextList

public List<PartContext> getPartContextList()
インタフェース WindowContext の記述:
WindowContext が保持する PartContext のリストを返します。
PartContext を1つも保持しない場合、空のリストを返します。

定義:
インタフェース WindowContext 内の getPartContextList
戻り値:
PartContext のリスト

getApplicationContext

public ApplicationContext getApplicationContext()
インタフェース WindowContext の記述:
ApplicationContext を返します。

定義:
インタフェース WindowContext 内の getApplicationContext
戻り値:
ApplicationContext オブジェクト

addPartContext

public void addPartContext(PartContext context)
PartContext オブジェクトを追加します。

パラメータ:
context - PartContext オブジェクト
例外:
DuplicateComponentIdException - パート名称が既に登録されている場合

disposePartContext

public void disposePartContext(String partName)
PartContext オブジェクトを削除します。

定義:
インタフェース WindowContext 内の disposePartContext
パラメータ:
partName - パート名称

dispose

public void dispose()
この WindowContext を親 ApplicationContext から削除します。


findWidgetHandles

public List<WidgetHandle> findWidgetHandles(String handleId)
インタフェース WindowContext の記述:
WindowContext 本体および配下のすべての PartContext から、handleId にマッチする WidgetHandle を検索して返します。

定義:
インタフェース WindowContext 内の findWidgetHandles
パラメータ:
handleId - ハンドルID
戻り値:
見つかった WidgetHandle のリスト

getAllWidgetHandles

public List<WidgetHandle> getAllWidgetHandles(Class<?> clazz)
インタフェース WindowContext の記述:
WindowContext 本体および配下のすべての PartContext から、指定されたクラスのオブジェクトを持つ WidgetHandle をすべて検索して返します。

定義:
インタフェース WindowContext 内の getAllWidgetHandles
パラメータ:
clazz - クラス
戻り値:
見つかった WidgetHandle のリスト
関連項目:
WidgetHolder.getWidgetHandles(Class)

addEnablesDependingDef

public void addEnablesDependingDef(EnablesDependingDef enablesDependingDef)
インタフェース WindowContext の記述:
EnablesDependingDef を追加します。

定義:
インタフェース WindowContext 内の addEnablesDependingDef
パラメータ:
enablesDependingDef - EnablesDependingDef オブジェクト

getEnablesDependingDefList

public List<EnablesDependingDef> getEnablesDependingDefList()
インタフェース WindowContext の記述:
EnablesDependingDef のリストを返します。

定義:
インタフェース WindowContext 内の getEnablesDependingDefList
戻り値:
EnablesDependingDef のリスト

getWorkbenchActionObject

public Object getWorkbenchActionObject()
インタフェース WindowContext の記述:
ワークベンチウィンドーアクションクラスのオブジェクトを取得します。

定義:
インタフェース WindowContext 内の getWorkbenchActionObject
戻り値:
ワークベンチウィンドーアクションクラスのオブジェクト

setWorkbenchActionObject

public void setWorkbenchActionObject(Object workbenchActionObj)
インタフェース WindowContext の記述:
ワークベンチアクションクラスのオブジェクトを設定します。

定義:
インタフェース WindowContext 内の setWorkbenchActionObject
パラメータ:
workbenchActionObj - ワークベンチアクションクラスのオブジェクト

getPartActionDesc

public PartActionDesc getPartActionDesc()
インタフェース WindowContext の記述:
PartActionDesc オブジェクトを取得します。

定義:
インタフェース WindowContext 内の getPartActionDesc
戻り値:
PartActionDesc オブジェクト

setPartActionDesc

public void setPartActionDesc(PartActionDesc desc)
インタフェース WindowContext の記述:
PartActionDesc オブジェクトを設定します。

定義:
インタフェース WindowContext 内の setPartActionDesc
パラメータ:
desc - PartActionDesc オブジェクト


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