|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjp.carabiner.treeeditor.js.JSUtils
public class JSUtils
JavaScript用のユーティリティ関数群です。
| コンストラクタの概要 | |
|---|---|
JSUtils()
|
|
| メソッドの概要 | |
|---|---|
static void |
alert(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
メッセージを出力します。 |
static boolean |
confirm(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
確認メッセージを出力します。 |
static void |
createNewWindow(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
新規ウィンドウを生成します。 |
static TreeEditorFrame |
getFrame(org.mozilla.javascript.Scriptable scope)
フレームを取得します。 |
static JSDocument |
getJSDocument(org.mozilla.javascript.Scriptable scope)
ドキュメントを取得します。 |
static JSWindow |
getJSWindow(org.mozilla.javascript.Scriptable scope)
ウィンドウを取得します。 |
static void |
importFile(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
JavaScriptコードをインポートします。 |
static void |
importScript(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
JavaScriptコードをインポートします。 |
static void |
initGlobal(JSRunner runner,
org.mozilla.javascript.Context context,
org.mozilla.javascript.Scriptable scope,
TreeEditorFrame frame)
グローバルオブジェクトを初期化します。 |
static void |
initGlobal(ScriptEngine scriptEngine,
JSWindow windowObj,
JSDocument documentObj,
JSBeitel beitelObj)
スクリプトエンジンを初期化します。 |
static void |
registerFunction(org.mozilla.javascript.Context context,
org.mozilla.javascript.Scriptable scope,
String name)
引数を持たない関数を登録します。 |
static void |
registerFunction(org.mozilla.javascript.Context context,
org.mozilla.javascript.Scriptable scope,
String name,
Class<?>[] types)
関数を登録します。 |
static String |
toString(Object[] args)
文字列化します。 |
static void |
trace(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
メッセージをログに出力します。 |
static Object |
unwrap(Object o)
オブジェクトのコアオブジェクトを取得します。 |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public JSUtils()
| メソッドの詳細 |
|---|
public static void alert(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
cx - コンテキスト。nullは不可。thisObj - このオブジェクト。nullは不可。args - 引数。nullは不可。funObj - 関数。nullは不可。
public static boolean confirm(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
cx - コンテキスト。nullは不可。thisObj - このオブジェクト。nullは不可。args - 引数。nullは不可。funObj - 関数。nullは不可。
public static TreeEditorFrame getFrame(org.mozilla.javascript.Scriptable scope)
scope - グローバルスコープ。nullは不可。
public static JSWindow getJSWindow(org.mozilla.javascript.Scriptable scope)
scope - グローバルスコープ。nullは不可。
public static JSDocument getJSDocument(org.mozilla.javascript.Scriptable scope)
scope - グローバルスコープ。nullは不可。
public static void trace(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
cx - コンテキスト。nullは不可。thisObj - このオブジェクト。nullは不可。args - 引数。nullは不可。funObj - 関数。nullは不可。
public static void createNewWindow(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
throws InterruptedException
cx - コンテキスト。nullは不可。thisObj - このオブジェクト。nullは不可。args - 引数。nullは不可。funObj - 関数。nullは不可。
InterruptedException - 割り込み関係のエラー。
public static void initGlobal(JSRunner runner,
org.mozilla.javascript.Context context,
org.mozilla.javascript.Scriptable scope,
TreeEditorFrame frame)
throws NoSuchMethodException
runner - 実行エンジン。nullは不可。context - コンテキスト。nullは不可。scope - スコープ。nullは不可。frame - フレーム。nullは不可。
NoSuchMethodException - メソッドが存在しない場合のエラー。
public static void registerFunction(org.mozilla.javascript.Context context,
org.mozilla.javascript.Scriptable scope,
String name)
throws NoSuchMethodException
context - コンテキスト。nullは不可。scope - スコープ。nullは不可。name - 名前。nullは不可。
NoSuchMethodException - メソッドが存在しない場合のエラー。
public static void registerFunction(org.mozilla.javascript.Context context,
org.mozilla.javascript.Scriptable scope,
String name,
Class<?>[] types)
throws NoSuchMethodException
context - コンテキスト。nullは不可。scope - スコープ。nullは不可。name - 名前。nullは不可。types - タイプ。nullは不可。
NoSuchMethodExceptionpublic static String toString(Object[] args)
args - 引数。null可。
public static Object unwrap(Object o)
o - コアオブジェクトの取得対象。null可。
public static void importScript(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
throws IOException
cx - コンテキスト。nullは不可。thisObj - このオブジェクト。nullは不可。args - 引数。nullは不可。funObj - 関数。nullは不可。
IOException
public static void importFile(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.Function funObj)
throws IOException
cx - コンテキスト。nullは不可。thisObj - このオブジェクト。nullは不可。args - 引数。nullは不可。funObj - 関数。nullは不可。
IOException
public static void initGlobal(ScriptEngine scriptEngine,
JSWindow windowObj,
JSDocument documentObj,
JSBeitel beitelObj)
scriptEngine - スクリプトエンジン。nullは不可。windowObj - window。nullは不可。documentObj - document。nullは不可。beitelObj - beitel。nullは不可。
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||