|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||
java.lang.Object
|
+--com.infoteria.asteria.flowbuilder2.event.BaseObjectAdapter
|
+--com.infoteria.asteria.flowbuilder2.plugin.LaunchExternalApp
外部アプリケーションを起動するListenerです。
| コンストラクタの概要 | |
LaunchExternalApp()
|
|
| メソッドの概要 | |
Object |
clone()
|
String[] |
getCommandArray()
コマンドの配列(Runtime#execの引数となる)を返します。 |
File |
getExecuteDir()
外部アプリケーションの実行ディレクトリを返します。 |
protected static File |
getToolshedDir()
ワークディレクトリを返します。 |
protected String |
loadStringFromFile(String filename,
String encoding)
文字列をgetToolshedDir()のファイルから読み込むための簡易メソッドです。 |
void |
menuPopup(BaseObjectMenuEvent event)
menuItemが指定されている場合はダブルクリック時の処理をメニューに追加します。 |
void |
onDoubleClick(BaseObjectUndoableEvent e)
ダブルクリック時の処理 1、preExecuteメソッドを実行 2、外部アプリケーションを実行 3、postExecuteメソッドを実行 という処理が実行されます。 |
protected void |
postExecute(BaseObjectUndoableEvent e,
int exitValue)
外部アプリケーション実行後の処理 標準ではSaveProperty要素で定義されたプロパティの内容をファイルから設定します。 |
protected void |
preExecute(BaseObjectUndoableEvent e)
外部アプリケーション実行前の処理 標準ではSaveProperty要素で定義されたプロパティの内容をファイルに保存します。 |
protected void |
saveStringToFile(String filename,
String str,
String encoding)
文字列をgetToolshedDir()のファイルに保存するための簡易メソッドです。 |
void |
setCommandArray(String[] s)
コマンドの配列を設定します。 |
void |
setExecuteDir(File f)
外部アプリケーションの実行ディレクトリを設定します。 |
void |
setup(Element el)
要素から定義内容を読み取ります。 |
| クラス com.infoteria.asteria.flowbuilder2.event.BaseObjectAdapter から継承したメソッド |
added, cloned, created, destroyed, extendedSearch, getDoubleClickAction, getDoubleClickAction, linked, loaded, loading, removed, unlinked |
| クラス java.lang.Object から継承したメソッド |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
public LaunchExternalApp()
| メソッドの詳細 |
protected static File getToolshedDir()
public void setup(Element el)
MetaData 内の setuppublic String[] getCommandArray()
public void setCommandArray(String[] s)
public File getExecuteDir()
public void setExecuteDir(File f)
public Object clone()
throws CloneNotSupportedException
MetaData の記述: MetaData 内の cloneObject 内の clonepublic void menuPopup(BaseObjectMenuEvent event)
BaseObjectAdapter 内の menuPopuppublic void onDoubleClick(BaseObjectUndoableEvent e)
BaseObjectAdapter 内の onDoubleClick
protected void preExecute(BaseObjectUndoableEvent e)
throws Exception
protected void postExecute(BaseObjectUndoableEvent e,
int exitValue)
throws Exception
protected void saveStringToFile(String filename,
String str,
String encoding)
throws IOException
filename - ファイル名str - 文字列
protected String loadStringFromFile(String filename,
String encoding)
throws IOException
filename - ファイル名
|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||