com.extjs.gxt.ui.client
クラス XDOM

java.lang.Object
  extended by com.extjs.gxt.ui.client.XDOM

public class XDOM
extends java.lang.Object

ブラウザのDocument Object Model (DOM)を操作するための追加の静的なメソッドを提供します。

関連項目:
DOM

フィールド 概要
static boolean isVisibleBox
          ブラウザが可視的なボックスを使用する場合はtrueを返します。
 
メソッド 概要
static com.google.gwt.user.client.Element create(java.lang.String html)
          与えられたマークアップから要素を作成します。
static com.google.gwt.user.client.Element getBody()
          body要素を返します。
static El getBodyEl()
          body Elを返します。
static int getBodyScrollLeft()
          body要素の水平方向のスクロールを返します。
static int getBodyScrollTop()
          body要素の垂直方向のスクロールを返します。
static Rectangle getBounds(com.google.gwt.user.client.Element elem, boolean content)
          要素の境界を返します。
static com.google.gwt.user.client.Element getDocument()
          document要素を返します。
static com.google.gwt.user.client.Element getElementById(java.lang.String id)
          ユニークidで要素を返します。
static com.google.gwt.user.client.Element getHead()
          HTMLのhead要素を返します。
static int getScrollBarWidth()
          スクロールバーの幅を返します。
static int getTopZIndex()
          上方のz-indexの値を増加して返します。
static java.lang.String getUniqueId()
          ユニークidを返します。
static Size getViewportSize()
          ビューポートのサイズを返します。
static void insertAfter(com.google.gwt.user.client.Element elem, com.google.gwt.user.client.Element after)
          DOM内の渡された要素の後にこの要素を挿入します。
static void reload()
          ページをリロードします。
static void setStyleName(com.google.gwt.user.client.Element elem, java.lang.String style)
          要素のスタイル名を設定します。
 
クラスjava.lang.Objectから継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールド 詳細

isVisibleBox

public static boolean isVisibleBox
ブラウザが可視的なボックスを使用する場合はtrueを返します。

メソッド 詳細

create

public static com.google.gwt.user.client.Element create(java.lang.String html)
与えられたマークアップから要素を作成します。

パラメータ:
html - マークアップ
戻り値:
新しい要素

getBody

public static com.google.gwt.user.client.Element getBody()
body要素を返します。

戻り値:
body

getBodyEl

public static El getBodyEl()
body Elを返します。

戻り値:
body

reload

public static void reload()
ページをリロードします。


getBodyScrollLeft

public static int getBodyScrollLeft()
body要素の水平方向のスクロールを返します。

戻り値:
ピクセル単位のスクロールの量

getBodyScrollTop

public static int getBodyScrollTop()
body要素の垂直方向のスクロールを返します。

戻り値:
ピクセル単位のスクロールの量

getBounds

public static Rectangle getBounds(com.google.gwt.user.client.Element elem,
                                  boolean content)
要素の境界を返します。

パラメータ:
elem - 要素
content - ボックスモデルに適用するためにはtrue
戻り値:
要素の境界

getDocument

public static com.google.gwt.user.client.Element getDocument()
document要素を返します。

戻り値:
document

getElementById

public static com.google.gwt.user.client.Element getElementById(java.lang.String id)
ユニークidで要素を返します。

パラメータ:
id - id
戻り値:
要素、もしくは一致しない場合はnull

getHead

public static com.google.gwt.user.client.Element getHead()
HTMLのhead要素を返します。

戻り値:
head

getScrollBarWidth

public static int getScrollBarWidth()
スクロールバーの幅を返します。

戻り値:
スクロールバーの幅

getTopZIndex

public static int getTopZIndex()
上方のz-indexの値を増加して返します。

戻り値:
z-index

getUniqueId

public static java.lang.String getUniqueId()
ユニークidを返します。

戻り値:
id

getViewportSize

public static Size getViewportSize()
ビューポートのサイズを返します。

戻り値:
サイズ

insertAfter

public static void insertAfter(com.google.gwt.user.client.Element elem,
                               com.google.gwt.user.client.Element after)
DOM内の渡された要素の後にこの要素を挿入します。

パラメータ:
elem - 要素
after - 後に挿入する要素

setStyleName

public static void setStyleName(com.google.gwt.user.client.Element elem,
                                java.lang.String style)
要素のスタイル名を設定します。

パラメータ:
elem - 要素
style - スタイル名