Jiffie: Java InterFace For Internet Explorer

net.sf.jiffie
Class IHTMLSelectElement

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

public class IHTMLSelectElement
extends IHTMLElement

Implementation of the IHTMLSelectElement interface.


Field Summary
 
Fields inherited from class net.sf.jiffie.IHTMLElement
IID
 
Constructor Summary
IHTMLSelectElement(InternetExplorer parentBrowser, Dispatch object)
          Constructor
 
Method Summary
 IHTMLFormElement getForm()
          Retrieves the form property
 int getLength()
          Retrieves the number of items in the drop down box.
 int getSelectedIndex()
          Retrieves the value of the currently selected index
 java.lang.String getValue()
          Retrieves the current value
 void setSelectedIndex(int index)
          Sets the value of the currently selected index.
 void setValue(java.lang.String value)
          Sets the value property
 
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

IHTMLSelectElement

public IHTMLSelectElement(InternetExplorer parentBrowser,
                          Dispatch object)
Constructor

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

getLength

public int getLength()
Retrieves the number of items in the drop down box.

Returns:
number of items in the drop down box

getSelectedIndex

public int getSelectedIndex()
Retrieves the value of the currently selected index

Returns:
selected index value

setSelectedIndex

public void setSelectedIndex(int index)
Sets the value of the currently selected index. Note that this does not raise an "onchange" event. The fireEvent method must be called explicitly if the event is required.

Parameters:
index - new selected index value

getValue

public java.lang.String getValue()
Retrieves the current value

Returns:
value

setValue

public void setValue(java.lang.String value)
Sets the value property

Parameters:
value - new value

getForm

public IHTMLFormElement getForm()
Retrieves the form property

Returns:
input type


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