Jiffie: Java InterFace For Internet Explorer

net.sf.jiffie
Class IHTMLOptionElement

Package class diagram package IHTMLOptionElement
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.IHTMLOptionElement
All Implemented Interfaces:
java.lang.Cloneable, Releaseable

public class IHTMLOptionElement
extends IHTMLElement

Implementation of the IHTMLFormElement interface.


Field Summary
 
Fields inherited from class net.sf.jiffie.IHTMLElement
IID
 
Constructor Summary
IHTMLOptionElement(InternetExplorer parentBrowser, Dispatch object)
          Constructor
 
Method Summary
 boolean getDefaultSelected()
          Retrieves the default selected property.
 int getIndex()
          Retrieves the ordinal position of the option.
 boolean getSelected()
          Retrieves the selected property.
 java.lang.String getText()
          Retrieves the text string specified by the option tag.
 java.lang.String getValue()
          Retrieves the value which is returned to the server by this option when the form control is submitted.
 void setSelected(boolean selected)
          Sets the selected property.
 void setText(java.lang.String text)
          Sets the text string specified by the option tag.
 
Methods inherited from class net.sf.jiffie.IHTMLElement
click, fireEvent, getClassName, getCurrentStyle, getID, getInnerHtml, getInnerText, getName, getOuterHtml, getOuterText, getParentElement, getStyle, getTagName, setID, setInnerHtml, setInnerText, 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
 

Constructor Detail

IHTMLOptionElement

public IHTMLOptionElement(InternetExplorer parentBrowser,
                          Dispatch object)
Constructor

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

getDefaultSelected

public boolean getDefaultSelected()
Retrieves the default selected property.

Returns:
index of the default select option

getSelected

public boolean getSelected()
Retrieves the selected property.

Returns:
whether the option is selected

setSelected

public void setSelected(boolean selected)
Sets the selected property.

Parameters:
selected - boolean flag

getIndex

public int getIndex()
Retrieves the ordinal position of the option.

Returns:
ordinal index of the option

getText

public java.lang.String getText()
Retrieves the text string specified by the option tag.

Returns:
text string

setText

public void setText(java.lang.String text)
Sets the text string specified by the option tag.

Parameters:
text - text string

getValue

public java.lang.String getValue()
Retrieves the value which is returned to the server by this option when the form control is submitted.

Returns:
option value


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