switch クラス : Handler ゲッタ
説明
イベントを処理するユーザー定義クラスのインスタンスを返します。
構文
instance.Handler
引数
無し。
返り値
| クラス | 説明 |
| user-defined class | ユーザー定義クラス。 |
サンプルコード
次のクラス定義があるとします。
| 1: | class handle |
| 2: | open method void LCHandler(dictionary dic) |
| 3: | ... // event handler code. |
| 4: | endmethod |
| 5: | endclass |
Handler ゲッターの使い方は次のとおりです。
| 1: | browser b = new browser(); |
| 2: | handle h = new handle(); |
| 3: | switch sw = b.LoadCompleted(h,"LCHandler(dictionary)"); // It sets the instance of the handle class. |
| 4: | m.Show(sw.Handler.TypeName); // "handle" |
注意
返り値の型は設定したインスタンスに依存します。
参照リンク
無し。


