|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||
java.lang.Object | +--com.infoteria.asteria.flowbuilder2.plugin.PluginUtil
プラグイン作成で使用するユーティリティメソッド
| コンストラクタの概要 | |
PluginUtil()
|
|
| メソッドの概要 | |
static boolean |
deleteFile(String filepath)
サーバーからファイルを削除します。 |
static InputStream |
downloadFile(String filepath)
サーバーからファイルをダウンロードします。 |
static JFrame |
getApplicationFrame()
デザイナーのメインフレームを返します。 |
static String[] |
getConnectionNames(String type)
現在接続中のサーバーでのコネクション一覧を返します。 |
static JFileChooser |
getFileChooser(String initialDir)
サーバーのファイル選択ダイアログを取得します。 |
static JFileChooser |
getFolderChooser(String initialDir)
サーバーのフォルダ選択ダイアログを取得します。 |
static com.infoteria.asteria.util.rdb.ColumnInfo[] |
getTableFields(String dsname,
String tblname)
現在接続中のサーバーでのdsnameとtblnameに対応するテーブルのフィールド一覧を返します。 |
static String[] |
getTableNames(String dsname)
現在接続中のサーバーでのdsnameに対応するコネクションのテーブル一覧を返します。 |
static File |
getUserDir()
ユーザー情報等のファイルを保存するためのディレクトリを返します。 |
static String |
normalizeFilePath(File f)
サーバーから選択したFileオブジェクトのUSER_HOMEからの相対パスを取得します。 |
static int |
showConfirm(String msg,
int optionType)
確認メッセージのダイアログを表示します。 |
static void |
showError(String msg)
エラーメッセージのダイアログを表示します。 |
static void |
showMessage(String msg)
情報メッセージのダイアログを表示します。 |
static void |
showWarning(String msg)
警告メッセージのダイアログを表示します。 |
static UndoableEdit |
updateCategoryProperty(CategoryProperty dest,
CategoryProperty src)
destのCategoryPropertyにsrcの内容を反映してそのUndo情報を返します。 |
static void |
uploadFile(String filepath,
File f)
ローカルにあるファイルをサーバーにアップロードします。 |
static void |
uploadTextFile(String filepath,
String text,
String enc)
文字列を指定のエンコーディングでサーバーにテキストファイルとしてアップロードします。 |
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
public PluginUtil()
| メソッドの詳細 |
public static File getUserDir()
public static JFrame getApplicationFrame()
public static void showError(String msg)
public static void showWarning(String msg)
public static void showMessage(String msg)
public static int showConfirm(String msg,
int optionType)
public static UndoableEdit updateCategoryProperty(CategoryProperty dest,
CategoryProperty src)
public static String[] getConnectionNames(String type)
throws IOException
public static String[] getTableNames(String dsname)
throws IOException
public static com.infoteria.asteria.util.rdb.ColumnInfo[] getTableFields(String dsname,
String tblname)
throws IOException
public static void uploadFile(String filepath,
File f)
throws IOException
public static void uploadTextFile(String filepath,
String text,
String enc)
throws IOException
filepath - アップロードするファイルパス。(USER_HOMEからの相対)text - 文字列enc - エンコーディング
public static InputStream downloadFile(String filepath)
throws IOException
filepath - ダウンロードするファイルパス。(USER_HOMEからの相対)
public static boolean deleteFile(String filepath)
throws IOException
filepath - 削除するファイルパス。(USER_HOMEからの相対)
public static JFileChooser getFileChooser(String initialDir)
throws IOException
initialDir - 初期ディレクトリ(USER_HOMEからの相対)
public static JFileChooser getFolderChooser(String initialDir)
throws IOException
initialDir - 初期ディレクトリ(USER_HOMEからの相対)
public static String normalizeFilePath(File f)
throws IOException
|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||