org.boxed_economy.components.file
クラス FileManager

java.lang.Object
  拡張org.boxed_economy.besp.presentation.AbstractPresentationComponent
      拡張org.boxed_economy.components.file.FileManager
すべての実装インタフェース:
java.util.EventListener, ModelContainerListener, PresentationComponent, SimulationStateListener, UpdateEventDeliverer

public class FileManager
extends AbstractPresentationComponent
implements ModelContainerListener, SimulationStateListener

ファイル(メニュー)を管理するクラスです

バージョン:
$Id: FileManager.java,v 1.1 2004/03/21 12:07:52 macchan Exp $
作成者:
macchan

フィールドの概要
 Action exitAction
           
 ActionGroup exitGroup
           
 Menu fileMenu
          メニュー関連
 Action fileOpenAction
           
 ActionGroup fileOperationGroup
           
 Action fileSaveAction
           
 Action fileSaveAsAction
           
 ActionGroup importGroup
           
 Menu importMenu
           
 Action importWorldAction
           
static java.util.ResourceBundle resource
           
 
コンストラクタの概要
FileManager()
          Constructor for FileManager.
 
メソッドの概要
 void initialize()
          このコンポーネントの初期化処理を記述するメソッドです。
 void prepareWorldClose(ModelContainerEvent ev)
          現在のモデルが破棄される直前に呼ばれます
 void prepareWorldOpen(ModelContainerEvent ev)
          世界(モデル)が設定され、初期化される前のタイミングで呼ばれます
 void simulationStarted(SimulationStateEvent ev)
          シミュレーションが開始されたことを通知します
 void simulationStopped(SimulationStateEvent ev)
          シミュレーションが停止されたことを通知します
 void simulationStopping(SimulationStateEvent ev)
          シミュレーションが停止処理にはいったことを通知します
 void terminate()
          このプレゼンテーションコンポーネントを終了します。
 void worldClosed(ModelContainerEvent ev)
          現在のモデルが破棄された直後に呼ばれます
 void worldOpened(ModelContainerEvent ev)
          世界(モデル)が設定され、初期化された後のタイミングで呼ばれます
 
クラス org.boxed_economy.besp.presentation.AbstractPresentationComponent から継承したメソッド
addTradeListener, addUpdateAgentListener, addUpdateBehaviorListener, addUpdateChannelListener, addUpdateClockListener, addUpdateInformationListener, addUpdateRelationListener, addUpdateStepListener, addUpdateWorldListener, getPresentationContainer, getWorld, removeTradeListener, removeUpdateAgentListener, removeUpdateBehaviorListener, removeUpdateChannelListener, removeUpdateClockListener, removeUpdateInformationListener, removeUpdateRelationListener, removeUpdateStepListener, removeUpdateWorldListener, setPresentationContainer
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

resource

public static java.util.ResourceBundle resource

fileMenu

public Menu fileMenu
メニュー関連


fileOperationGroup

public ActionGroup fileOperationGroup

importGroup

public ActionGroup importGroup

importMenu

public Menu importMenu

exitGroup

public ActionGroup exitGroup

fileOpenAction

public Action fileOpenAction

fileSaveAction

public Action fileSaveAction

fileSaveAsAction

public Action fileSaveAsAction

importWorldAction

public Action importWorldAction

exitAction

public Action exitAction
コンストラクタの詳細

FileManager

public FileManager()
Constructor for FileManager.

メソッドの詳細

initialize

public void initialize()
インタフェース PresentationComponent の記述:
このコンポーネントの初期化処理を記述するメソッドです。 プレゼンテーションコンポーネントがコンテナーに追加された後に呼ばれます。

定義:
インタフェース PresentationComponent 内の initialize
関連項目:
PresentationComponent.initialize()

terminate

public void terminate()
インタフェース PresentationComponent の記述:
このプレゼンテーションコンポーネントを終了します。 コンテナーのremoveメソッドから呼ばれます。(modelが存在していれば、 先にcloseWorldが呼ばれます。)

定義:
インタフェース PresentationComponent 内の terminate
関連項目:
PresentationComponent.terminate()

prepareWorldOpen

public void prepareWorldOpen(ModelContainerEvent ev)
インタフェース ModelContainerListener の記述:
世界(モデル)が設定され、初期化される前のタイミングで呼ばれます

定義:
インタフェース ModelContainerListener 内の prepareWorldOpen
関連項目:
ModelContainerListener.prepareWorldOpen(ModelContainerEvent)

worldOpened

public void worldOpened(ModelContainerEvent ev)
インタフェース ModelContainerListener の記述:
世界(モデル)が設定され、初期化された後のタイミングで呼ばれます

定義:
インタフェース ModelContainerListener 内の worldOpened
関連項目:
ModelContainerListener.worldOpened(ModelContainerEvent)

prepareWorldClose

public void prepareWorldClose(ModelContainerEvent ev)
インタフェース ModelContainerListener の記述:
現在のモデルが破棄される直前に呼ばれます

定義:
インタフェース ModelContainerListener 内の prepareWorldClose
関連項目:
ModelContainerListener.prepareWorldClose(ModelContainerEvent)

worldClosed

public void worldClosed(ModelContainerEvent ev)
インタフェース ModelContainerListener の記述:
現在のモデルが破棄された直後に呼ばれます

定義:
インタフェース ModelContainerListener 内の worldClosed
関連項目:
ModelContainerListener.worldClosed(ModelContainerEvent)

simulationStarted

public void simulationStarted(SimulationStateEvent ev)
インタフェース SimulationStateListener の記述:
シミュレーションが開始されたことを通知します

定義:
インタフェース SimulationStateListener 内の simulationStarted
関連項目:
SimulationStateListener.simulationStarted(SimulationStateEvent)

simulationStopped

public void simulationStopped(SimulationStateEvent ev)
インタフェース SimulationStateListener の記述:
シミュレーションが停止されたことを通知します

定義:
インタフェース SimulationStateListener 内の simulationStopped
関連項目:
SimulationStateListener.simulationStopped(SimulationStateEvent)

simulationStopping

public void simulationStopping(SimulationStateEvent ev)
インタフェース SimulationStateListener の記述:
シミュレーションが停止処理にはいったことを通知します

定義:
インタフェース SimulationStateListener 内の simulationStopping
関連項目:
SimulationStateListener.simulationStopping(SimulationStateEvent)