Class: SubWindow

SubWindow

SubWindow サブウィンドウ

サブウィンドウを操作する

Constructor

src/util/util-SubWindow.js, line 1

new SubWindow(nameopt)

Parameters:
  • name String <optional> "HJN_subwindow"
    サブウィンドウの名前(ウィンドウをユニークに指定する名前)
Example
// TopHogeBottom と表示するサブウィンドウを表示し、閉じる<br>
         var sub = new SubWindow("SUB_NAME");
         sub.openHtml("hoge").appendHtml("Bottom").prependHtml("Top");
         sub.close();

Methods

src/util/util-SubWindow.js, line 49

(static) SubWindow.createSubWindow(iHtmlopt, elementopt, idopt, wopt, hopt, styleopt)

サブウィンドウを表示する(HTML指定)
Element.createDialog と同一引数
Parameters:
  • iHtml String <optional> "no message"
    サブウィンドウのbodyに設定する文字列
  • element DOM <optional> window
    サブウィンドウの位置とサイズを指定する際の基準となるウィンドウ
  • id String <optional> "HJN_subwindow"
    サブウィンドウのid名、同一名称のダイアログを閉じて作成する
  • w Number <optional> 40
    ウィンドウに対するサブウィンドウの幅の比率%
  • h Number <optional> 40
    ウィンドウに対するサブウィンドウの高さの比率%
  • style Object <optional> {bgColor: "rgba(255, 255, 255, 0.8)"}
    ダイアログ背景のCSSスタイル
src/util/util-SubWindow.js, line 155

(static) SubWindow#append(htmlopt) → {Object}

サブウィンドウのHTML body の末尾にHTMLを追記する
Parameters:
  • html String <optional> ""
    追記するHTML文字列
Returns:
  • Object
    this 自オブジェクト
src/util/util-SubWindow.js, line 142

(static) SubWindow#close()

サブウィンドウを閉じる
src/util/util-SubWindow.js, line 126

(static) SubWindow#openHtml(bodyopt, [opt="width=600, height=450 ,menubar=no, toolbar=no, location=no, status=yes, resizable=yes, scrollbars=yes"]) → {Object}

サブウィンドウを表示する(HTML指定)
Parameters:
  • body String <optional> ""
    サブウィンドウに表示するHTML
  • [opt="width=600, height=450 ,menubar=no, toolbar=no, location=no, status=yes, resizable=yes, scrollbars=yes"] String
    サブウィンドウ生成時に指定するオプション
Returns:
  • Object
    this 自オブジェクト
src/util/util-SubWindow.js, line 95

(static) SubWindow#openUri(uriopt, [opt="width=600, height=450 ,menubar=no, toolbar=no, location=no, status=yes, resizable=yes, scrollbars=yes"]) → {Object}

サブウィンドウを表示する(URI指定)
Parameters:
  • uri String <optional> "about:blank"
    サブウィンドウに表示するURI
  • [opt="width=600, height=450 ,menubar=no, toolbar=no, location=no, status=yes, resizable=yes, scrollbars=yes"] String
    サブウィンドウ生成時に指定するオプション
Returns:
  • Object
    Window サブウィンドウ
src/util/util-SubWindow.js, line 171

(static) SubWindow#prepend(htmlopt) → {Object}

サブウィンドウのHTML body の先頭にHTMLを追記する
Parameters:
  • html String <optional> ""
    追記するHTML文字列
Returns:
  • Object
    this 自オブジェクト