jp.hishidama.win32.mshtml
クラス IHTMLDocument

java.lang.Object
  上位を拡張 jp.hishidama.win32.com.ComPtr
      上位を拡張 jp.hishidama.win32.com.IUnknown
          上位を拡張 jp.hishidama.win32.com.IDispatch
              上位を拡張 jp.hishidama.win32.mshtml.IHTMLDocument

public class IHTMLDocument
extends IDispatch

IHTMLDocument2〜4クラス.

HTMLドキュメントを扱うクラスです。

導入されたバージョン:
2007.10.22
バージョン:
2008.07.14
作成者:
ひしだま

メソッドの概要
 void clear()
          HTMLクリアー.
 void close()
          HTML書き込み終了.
 IHTMLElement create(String tagName)
          HTML要素生成.
 IHTMLElement create(String tagName, boolean addChild)
          推奨されていません。  
 IHTMLDocument createDocumentFromUrl(String url, String options)
          HTMLドキュメント作成.
 IHTMLDocument createDocumentFromUrl(String url, String options, boolean addChild)
          推奨されていません。  
 IHTMLElement elementFromPoint(int x, int y)
          HTML要素取得.
 IHTMLElement elementFromPoint(int x, int y, boolean addChild)
          推奨されていません。  
 boolean execCommand(String cmdID, boolean showUI, Variant value)
           
 void focus()
          フォーカス設定.
 IHTMLElement getActiveElement()
          アクティブ要素取得.
 IHTMLElement getActiveElement(boolean addChild)
          推奨されていません。  
 Variant getAlinkColor()
           
 IHTMLElementCollection getAll()
          全HTML要素取得.
 IHTMLElementCollection getAll(boolean addChild)
          推奨されていません。  
 IHTMLElementCollection getAnchors()
          アンカー要素取得.
 IHTMLElementCollection getAnchors(boolean addChild)
          推奨されていません。  
 String getBaseUrl()
          ベースURL取得.
 Variant getBgColor()
           
 IHTMLElement getBody()
          ボディー要素取得.
 IHTMLElement getBody(boolean addChild)
          推奨されていません。  
 String getCharset()
          文字セット取得.
 String getCookie()
          クッキー取得.
 String getDefaultCharset()
          デフォルト文字セット設定.
 String getDomain()
          ドメイン取得.
 IHTMLElement getElementById(String id)
          HTML要素取得.
 IHTMLElement getElementById(String id, boolean addChild)
          推奨されていません。  
 IHTMLElement getElementByName(String name)
          HTML要素取得.
 IHTMLElement getElementByName(String name, boolean addChild)
          推奨されていません。  
 IHTMLElementCollection getElementsByName(String name)
          HTML要素取得.
 IHTMLElementCollection getElementsByName(String name, boolean addChild)
          推奨されていません。  
 IHTMLElementCollection getElementsByTagName(String name)
          HTML要素取得.
 IHTMLElementCollection getElementsByTagName(String name, boolean addChild)
          推奨されていません。  
 Variant getFgColor()
           
 String getFileCreatedDate()
          ファイル作成日取得.
 String getFileModifiedDate()
          ファイル変更日取得.
 int getFileSize()
          ファイルサイズ取得.
 String getFileUpdatedDate()
          ファイル更新日取得.
 IHTMLElementCollection getForms()
          フォーム取得.
 IHTMLElementCollection getForms(boolean addChild)
          推奨されていません。  
 IHTMLFramesCollection getFrames()
          フレーム取得.
 IHTMLFramesCollection getFrames(boolean addChild)
          推奨されていません。  
 IHTMLElementCollection getImages()
          画像要素取得.
 IHTMLElementCollection getImages(boolean addChild)
          推奨されていません。  
 String getLastModified()
          最終更新日取得.
 Variant getLinkColor()
           
 IHTMLElementCollection getLinks()
          リンク要素取得.
 IHTMLElementCollection getLinks(boolean addChild)
          推奨されていません。  
 IHTMLLocation getLocation()
           
 IHTMLLocation getLocation(boolean addChild)
          推奨されていません。  
 String getMimeType()
          MIMEタイプ取得.
 String getNameProp()
          NameProp取得.
 IHTMLWindow getParentWindow()
          親ウィンドウ取得.
 IHTMLWindow getParentWindow(boolean addChild)
          推奨されていません。  
 String getProtocol()
          プロトコル取得.
 String getReadyState()
          ReadyState取得.
 String getReferrer()
           
 IDispatch getScript()
           
 String getSecurity()
          セキュリティー取得.
 String getTitle()
          タイトル取得.
 String getUrl()
          URL取得.
 Variant getVlinkColor()
           
 IWebBrowser getWebBrowser()
          WebBrowserコントロール取得.
 IWebBrowser getWebBrowser(boolean addChild)
          推奨されていません。  
 boolean hasFocus()
          フォーカス有無取得.
 IDispatch open(String url, Variant name, Variant features, Variant replace)
           
 boolean queryCommandEnabled(String cmdID)
           
 boolean queryCommandIndeterm(String cmdID)
           
 boolean queryCommandState(String cmdID)
           
 boolean queryCommandSupported(String cmdID)
           
 String queryCommandText(String cmdID)
           
 Variant queryCommandValue(String cmdID)
           
 void setAlinkColor(Variant color)
           
 void setBaseUrl(String url)
          ベースURL設定.
 void setBgColor(Variant color)
           
 void setCharset(String charset)
          文字セット設定.
 void setCookie(String cookie)
          クッキー設定.
 void setDefaultCharset(String charset)
          デフォルト文字セット設定.
 void setDomain(String domain)
          ドメイン設定.
 void setFgColor(Variant color)
           
 void setLinkColor(Variant color)
           
 void setTitle(String title)
          タイトル設定.
 void setUrl(String url)
          URL設定.
 void setVlinkColor(Variant color)
           
 void write(String html)
          HTML書き込み.
 void writeln(String html)
          HTML書き込み.
 
クラス jp.hishidama.win32.com.IDispatch から継承されたメソッド
getIDOfName, getTypeInfo, getTypeInfo, getTypeInfoCount, getTypeName
 
クラス jp.hishidama.win32.com.ComPtr から継承されたメソッド
dispose, dispose, dispose, dispose, dispose, dispose, dispose, disposeChild
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

メソッドの詳細

getScript

public IDispatch getScript()

getAll

public IHTMLElementCollection getAll()
全HTML要素取得.

戻り値:
コレクション

getAll

public IHTMLElementCollection getAll(boolean addChild)
推奨されていません。 

関連項目:
ComPtr.disposeChild(), getAll()

getBody

public IHTMLElement getBody()
ボディー要素取得.

戻り値:
HTML要素

getBody

public IHTMLElement getBody(boolean addChild)
推奨されていません。 

関連項目:
ComPtr.disposeChild(), getBody()

getActiveElement

public IHTMLElement getActiveElement()
アクティブ要素取得.

戻り値:
HTML要素

getActiveElement

public IHTMLElement getActiveElement(boolean addChild)
推奨されていません。 

関連項目:
ComPtr.disposeChild(), getActiveElement()

getImages

public IHTMLElementCollection getImages()
画像要素取得.

戻り値:
コレクション

getImages

public IHTMLElementCollection getImages(boolean addChild)
推奨されていません。 

関連項目:
ComPtr.disposeChild(), getImages()

getLinks

public IHTMLElementCollection getLinks()
リンク要素取得.

戻り値:
コレクション

getLinks

public IHTMLElementCollection getLinks(boolean addChild)
推奨されていません。 

関連項目:
ComPtr.disposeChild(), getLinks()

getForms

public IHTMLElementCollection getForms()
フォーム取得.

戻り値:
コレクション

getForms

public IHTMLElementCollection getForms(boolean addChild)
推奨されていません。 

関連項目:
ComPtr.disposeChild(), getForms()

getAnchors

public IHTMLElementCollection getAnchors()
アンカー要素取得.

戻り値:
コレクション

getAnchors

public IHTMLElementCollection getAnchors(boolean addChild)
推奨されていません。 

関連項目:
ComPtr.disposeChild(), getAnchors()

setTitle

public void setTitle(String title)
タイトル設定.

パラメータ:
title - タイトル

getTitle

public String getTitle()
タイトル取得.

戻り値:
タイトル

getReadyState

public String getReadyState()
ReadyState取得.

戻り値:
ReadyState

getFrames

public IHTMLFramesCollection getFrames()
フレーム取得.

戻り値:
コレクション

getFrames

public IHTMLFramesCollection getFrames(boolean addChild)
推奨されていません。 

関連項目:
ComPtr.disposeChild(), getFrames()

setAlinkColor

public void setAlinkColor(Variant color)

getAlinkColor

public Variant getAlinkColor()

setBgColor

public void setBgColor(Variant color)

getBgColor

public Variant getBgColor()

setFgColor

public void setFgColor(Variant color)

getFgColor

public Variant getFgColor()

setLinkColor

public void setLinkColor(Variant color)

getLinkColor

public Variant getLinkColor()

setVlinkColor

public void setVlinkColor(Variant color)

getVlinkColor

public Variant getVlinkColor()

getReferrer

public String getReferrer()

getLocation

public IHTMLLocation getLocation()

getLocation

public IHTMLLocation getLocation(boolean addChild)
推奨されていません。 

関連項目:
ComPtr.disposeChild(), getLocation()

getLastModified

public String getLastModified()
最終更新日取得.

戻り値:
日付

setUrl

public void setUrl(String url)
URL設定.

パラメータ:
url - URL

getUrl

public String getUrl()
URL取得.

戻り値:
URL

setDomain

public void setDomain(String domain)
ドメイン設定.

パラメータ:
domain - ドメイン

getDomain

public String getDomain()
ドメイン取得.

戻り値:
ドメイン

setCookie

public void setCookie(String cookie)
クッキー設定.

パラメータ:
cookie - クッキー

getCookie

public String getCookie()
クッキー取得.

戻り値:
クッキー

setCharset

public void setCharset(String charset)
文字セット設定.

パラメータ:
charset - キャラセット

getCharset

public String getCharset()
文字セット取得.

戻り値:
キャラセット

setDefaultCharset

public void setDefaultCharset(String charset)
デフォルト文字セット設定.

パラメータ:
charset - キャラセット

getDefaultCharset

public String getDefaultCharset()
デフォルト文字セット設定.

戻り値:
キャラセット

getMimeType

public String getMimeType()
MIMEタイプ取得.

戻り値:
MIMEタイプ

getFileSize

public int getFileSize()
ファイルサイズ取得.

戻り値:
ファイルサイズ

getFileCreatedDate

public String getFileCreatedDate()
ファイル作成日取得.

戻り値:
日付

getFileModifiedDate

public String getFileModifiedDate()
ファイル変更日取得.

戻り値:
日付

getFileUpdatedDate

public String getFileUpdatedDate()
ファイル更新日取得.

戻り値:
日付

getSecurity

public String getSecurity()
セキュリティー取得.

戻り値:
セキュリティー

getProtocol

public String getProtocol()
プロトコル取得.

戻り値:
プロトコル

getNameProp

public String getNameProp()
NameProp取得.

戻り値:
NameProp

write

public void write(String html)
HTML書き込み.

パラメータ:
html - HTML

writeln

public void writeln(String html)
HTML書き込み.

パラメータ:
html - HTML

open

public IDispatch open(String url,
                      Variant name,
                      Variant features,
                      Variant replace)

close

public void close()
HTML書き込み終了.


clear

public void clear()
HTMLクリアー.


queryCommandSupported

public boolean queryCommandSupported(String cmdID)

queryCommandEnabled

public boolean queryCommandEnabled(String cmdID)

queryCommandState

public boolean queryCommandState(String cmdID)

queryCommandIndeterm

public boolean queryCommandIndeterm(String cmdID)

queryCommandText

public String queryCommandText(String cmdID)

queryCommandValue

public Variant queryCommandValue(String cmdID)

execCommand

public boolean execCommand(String cmdID,
                           boolean showUI,
                           Variant value)

create

public IHTMLElement create(String tagName)
HTML要素生成.

戻り値:
HTML要素

create

public IHTMLElement create(String tagName,
                           boolean addChild)
推奨されていません。 

関連項目:
ComPtr.disposeChild(), create(String)

elementFromPoint

public IHTMLElement elementFromPoint(int x,
                                     int y)
HTML要素取得.

パラメータ:
x - X
y - Y
戻り値:
HTML要素

elementFromPoint

public IHTMLElement elementFromPoint(int x,
                                     int y,
                                     boolean addChild)
推奨されていません。 

関連項目:
ComPtr.disposeChild(), create(String)

getParentWindow

public IHTMLWindow getParentWindow()
親ウィンドウ取得.

戻り値:
HTMLウィンドウ

getParentWindow

public IHTMLWindow getParentWindow(boolean addChild)
推奨されていません。 

関連項目:
ComPtr.disposeChild(), getParentWindow()

setBaseUrl

public void setBaseUrl(String url)
ベースURL設定.

パラメータ:
url - URL

getBaseUrl

public String getBaseUrl()
ベースURL取得.

戻り値:
URL

getElementById

public IHTMLElement getElementById(String id)
HTML要素取得.

パラメータ:
id - ID
戻り値:
HTMLウィンドウ

getElementById

public IHTMLElement getElementById(String id,
                                   boolean addChild)
推奨されていません。 

関連項目:
ComPtr.disposeChild(), getElementById(String)

getElementsByName

public IHTMLElementCollection getElementsByName(String name)
HTML要素取得.

パラメータ:
name - 名称
戻り値:
コレクション

getElementsByName

public IHTMLElementCollection getElementsByName(String name,
                                                boolean addChild)
推奨されていません。 

関連項目:
ComPtr.disposeChild(), getElementsByName(String)

getElementByName

public IHTMLElement getElementByName(String name)
HTML要素取得.

複数の名前がある場合、先頭の1つを返す。

パラメータ:
name - 名称
戻り値:
HTML要素

getElementByName

public IHTMLElement getElementByName(String name,
                                     boolean addChild)
推奨されていません。 

関連項目:
ComPtr.disposeChild(), getElementByName(String)

getElementsByTagName

public IHTMLElementCollection getElementsByTagName(String name)
HTML要素取得.

パラメータ:
name - タグ名
戻り値:
コレクション

getElementsByTagName

public IHTMLElementCollection getElementsByTagName(String name,
                                                   boolean addChild)
推奨されていません。 

関連項目:
ComPtr.disposeChild(), getElementsByTagName(String)

focus

public void focus()
フォーカス設定.


hasFocus

public boolean hasFocus()
フォーカス有無取得.

戻り値:
フォーカス有無

createDocumentFromUrl

public IHTMLDocument createDocumentFromUrl(String url,
                                           String options)
HTMLドキュメント作成.

パラメータ:
url - URL
options - オプション
戻り値:
HTMLドキュメント

createDocumentFromUrl

public IHTMLDocument createDocumentFromUrl(String url,
                                           String options,
                                           boolean addChild)
推奨されていません。 

関連項目:
ComPtr.disposeChild(), createDocumentFromUrl(String, String)

getWebBrowser

public IWebBrowser getWebBrowser()
WebBrowserコントロール取得.

戻り値:
WebBrowserコントロール

getWebBrowser

public IWebBrowser getWebBrowser(boolean addChild)
推奨されていません。 

関連項目:
ComPtr.disposeChild(), getWebBrowser()