Jiffie: Java InterFace For Internet Explorer

net.sf.jiffie
Class IHTMLScriptElement

Package class diagram package IHTMLScriptElement
java.lang.Object
  extended by net.sf.jiffie.IDispatch
      extended by net.sf.jiffie.BrowserDispatch
          extended by net.sf.jiffie.IHTMLDOMNode
              extended by net.sf.jiffie.ElementContainer
                  extended by net.sf.jiffie.IHTMLElement
                      extended by net.sf.jiffie.IHTMLScriptElement
All Implemented Interfaces:
java.lang.Cloneable, Releaseable

public class IHTMLScriptElement
extends IHTMLElement

Implementation of the IHTMLScriptElement interface.


Field Summary
static java.lang.String STATUS_COMPLETE
          Object is completely initialized.
static java.lang.String STATUS_INTERACTIVE
          User can interact with the object even though it is not fully loaded.
static java.lang.String STATUS_LOADED
          Object has finished loading its data.
static java.lang.String STATUS_LOADING
          Object is loading its data.
static java.lang.String STATUS_UNINITIALIZED
          Object is not initialized with data.
 
Fields inherited from class net.sf.jiffie.IHTMLElement
IID
 
Constructor Summary
IHTMLScriptElement(InternetExplorer parentBrowser, Dispatch dispatch)
          Constructor.
 
Method Summary
 ReadyState getReadyState()
          Retrieves a value that indicates the current state of the object.
 java.lang.String getSrc()
          Retrieves the URL to an external file that contains the source code or data.
 java.lang.String getText()
          Retrieves the text of the object as a string.
 java.lang.String getType()
          Retrieves the MIME type for the associated scripting engine.
 void setInnerHtml(java.lang.String html)
          This method is not supported, UnsupportedOperationException will be thrown thrown.
 void setInnerText(java.lang.String text)
          This method is not supported, UnsupportedOperationException will be thrown.
 void setText(java.lang.String text)
          Sets the text of the object as a string.
 
Methods inherited from class net.sf.jiffie.IHTMLElement
click, fireEvent, getClassName, getCurrentStyle, getID, getInnerHtml, getInnerText, getName, getOuterHtml, getOuterText, getParentElement, getStyle, getTagName, setID, waitWhileIncomplete
 
Methods inherited from class net.sf.jiffie.ElementContainer
getElementById, getElementByName, getElementByNameAndTag, getElementByTag, getElementList, getElementListByName, getElementListByNameAndTag, getElementListByTag
 
Methods inherited from class net.sf.jiffie.IHTMLDOMNode
appendChild, createNodeFromProperty, getAttributes, getFirstChild, getLastChild, getNextSibling, getNodeName, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling
 
Methods inherited from class net.sf.jiffie.BrowserDispatch
getElementProperty, getParentBrowser
 
Methods inherited from class net.sf.jiffie.IDispatch
call, call, call, call, call, clone, finalize, getBooleanProperty, getDispatch, getDispatchProperty, getIntegerProperty, getStringProperty, getVariantProperty, isReleased, newDispatch, queryInterface, release, setBooleanProperty, setIntegerProperty, setStringProperty
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STATUS_UNINITIALIZED

public static final java.lang.String STATUS_UNINITIALIZED
Object is not initialized with data.

See Also:
Constant Field Values

STATUS_LOADING

public static final java.lang.String STATUS_LOADING
Object is loading its data.

See Also:
Constant Field Values

STATUS_LOADED

public static final java.lang.String STATUS_LOADED
Object has finished loading its data.

See Also:
Constant Field Values

STATUS_INTERACTIVE

public static final java.lang.String STATUS_INTERACTIVE
User can interact with the object even though it is not fully loaded.

See Also:
Constant Field Values

STATUS_COMPLETE

public static final java.lang.String STATUS_COMPLETE
Object is completely initialized.

See Also:
Constant Field Values
Constructor Detail

IHTMLScriptElement

public IHTMLScriptElement(InternetExplorer parentBrowser,
                          Dispatch dispatch)
Constructor.

Parameters:
parentBrowser - parent browser
dispatch - Jacob dispatch interface
Method Detail

setInnerText

public void setInnerText(java.lang.String text)
This method is not supported, UnsupportedOperationException will be thrown.

When trying to set the innerText of a script tag from javascript, IE will error with the message "Unknown runtime error".

Overrides:
setInnerText in class IHTMLElement
Parameters:
text - inner text

setInnerHtml

public void setInnerHtml(java.lang.String html)
This method is not supported, UnsupportedOperationException will be thrown thrown.

When trying to set the innerHTML of a script tag from javascript, IE will error with the message "Unknown runtime error".

Overrides:
setInnerHtml in class IHTMLElement
Parameters:
html - inner html

setText

public void setText(java.lang.String text)
Sets the text of the object as a string.

Parameters:
text - script text

getText

public java.lang.String getText()
Retrieves the text of the object as a string.

Returns:
script text

getReadyState

public ReadyState getReadyState()
Retrieves a value that indicates the current state of the object.

Returns:
ready state

getSrc

public java.lang.String getSrc()
Retrieves the URL to an external file that contains the source code or data.

Returns:
source URL

getType

public java.lang.String getType()
Retrieves the MIME type for the associated scripting engine.

Returns:
MIME type


Copyright © 2004-2009 Packwood Software. All Rights Reserved.