net.sf.jacobie.ie
Class Form

java.lang.Object
  |
  +--com.jacob.com.JacobObject
        |
        +--com.jacob.com.Dispatch
              |
              +--net.sf.jacobie.ie.JacobieDispatch
                    |
                    +--net.sf.jacobie.ie.JacobieShared
                          |
                          +--net.sf.jacobie.ie.HTMLElement
                                |
                                +--net.sf.jacobie.ie.Form

public class Form
extends HTMLElement

Defines a form HTML object

Author:
Nick Neuberger

Field Summary
 
Fields inherited from class net.sf.jacobie.ie.JacobieShared
ID_GET_ELEMENTS_BY_TAG_NAME
 
Fields inherited from class net.sf.jacobie.ie.JacobieDispatch
componentName, CRLF, READY_STATE_COMPLETE
 
Fields inherited from class com.jacob.com.Dispatch
DISPID_ABOUTBOX, DISPID_AMBIENT_APPEARANCE, DISPID_AMBIENT_AUTOCLIP, DISPID_AMBIENT_BACKCOLOR, DISPID_AMBIENT_CHARSET, DISPID_AMBIENT_CODEPAGE, DISPID_AMBIENT_DISPLAYASDEFAULT, DISPID_AMBIENT_DISPLAYNAME, DISPID_AMBIENT_FONT, DISPID_AMBIENT_FORECOLOR, DISPID_AMBIENT_LOCALEID, DISPID_AMBIENT_MESSAGEREFLECT, DISPID_AMBIENT_PALETTE, DISPID_AMBIENT_SCALEUNITS, DISPID_AMBIENT_SHOWGRABHANDLES, DISPID_AMBIENT_SHOWHATCHING, DISPID_AMBIENT_SUPPORTSMNEMONICS, DISPID_AMBIENT_TEXTALIGN, DISPID_AMBIENT_TRANSFERPRIORITY, DISPID_AMBIENT_UIDEAD, DISPID_AMBIENT_USERMODE, DISPID_APPEARANCE, DISPID_AUTOSIZE, DISPID_BACKCOLOR, DISPID_BACKSTYLE, DISPID_BORDERCOLOR, DISPID_BORDERSTYLE, DISPID_BORDERVISIBLE, DISPID_BORDERWIDTH, DISPID_CAPTION, DISPID_CLICK, DISPID_COLLECT, DISPID_CONSTRUCTOR, DISPID_DBLCLICK, DISPID_DESTRUCTOR, DISPID_DOCLICK, DISPID_DRAWMODE, DISPID_DRAWSTYLE, DISPID_DRAWWIDTH, DISPID_ENABLED, DISPID_ERROREVENT, DISPID_EVALUATE, DISPID_FILLCOLOR, DISPID_FILLSTYLE, DISPID_FONT, DISPID_FORECOLOR, DISPID_HWND, DISPID_KEYDOWN, DISPID_KEYPRESS, DISPID_KEYUP, DISPID_MOUSEDOWN, DISPID_MOUSEICON, DISPID_MOUSEMOVE, DISPID_MOUSEPOINTER, DISPID_MOUSEUP, DISPID_NEWENUM, DISPID_PICTURE, DISPID_PROPERTYPUT, DISPID_READYSTATE, DISPID_READYSTATECHANGE, DISPID_REFRESH, DISPID_TABSTOP, DISPID_TEXT, DISPID_UNKNOWN, DISPID_VALID, DISPID_VALUE, fdexNameCaseSensitive, Get, LOCALE_SYSTEM_DEFAULT, m_pDispatch, Method, Put, PutRef
 
Constructor Summary
Form(com.jacob.com.Dispatch aDispatch)
           
 
Method Summary
 Input findButton(java.lang.String aButtonID)
          Find the INPUT button from the Form based type attribute of BUTTON and the ID attribute.
 DefaultHTMLElement findElementByName(java.lang.String aName)
          Finds the first with the name.
 java.util.Vector findInputBasedOnType(java.lang.String aTypeAttribute)
          Find the specific INPUT
 java.util.Vector findInputTypeButtons()
           
 java.util.Vector findInputTypeCheckboxs()
           
 java.util.Vector findInputTypeFiles()
           
 java.util.Vector findInputTypeHiddens()
           
 java.util.Vector findInputTypeImages()
           
 java.util.Vector findInputTypePasswords()
           
 java.util.Vector findInputTypeRadios()
           
 java.util.Vector findInputTypeResets()
           
 java.util.Vector findInputTypeSubmits()
           
 java.util.Vector findInputTypeTexts()
           
 Input findSubmitButton(java.lang.String aButtonName)
          Find the INPUT button from the Form based on the type attribute of SUBMIT
 java.util.Vector getElements()
          Gets the Elements collection.
 java.util.Vector getInputs()
          Returns a collection of INPUT elements based on the elements name.
 Select getSelect(java.lang.String aName)
          Gets the Select control based on the name.
 java.util.Vector getSelects()
          Returns a collection of SELECT elements based on the elements name.
 void submit()
          Submits the selected form.
 
Methods inherited from class net.sf.jacobie.ie.HTMLElement
blur, click, getID, getInnerHTML, getInnerText, getName, getType, getValue, isChecked, setChecked, setInnerHTML, setInnerText, setName, setType, setValue, toString
 
Methods inherited from class net.sf.jacobie.ie.JacobieShared
focus, getElementsByTagName
 
Methods inherited from class net.sf.jacobie.ie.JacobieDispatch
getMaxWaitDispatchCount, getReadyState, getWaitDispatchSleepTime, resetWaitTimes, setMaxWaitDispatchCount, setWaitDispatchSleepTime, waitWhileDispatchBusy
 
Methods inherited from class com.jacob.com.Dispatch
call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, callN_CaseSensitive, callN, callN, callSub, callSub, callSub, callSub, callSub, callSub, callSub, callSub, callSub, callSub, callSub, callSub, callSub, callSub, callSub, callSub, callSub, callSub, callSubN, callSubN, createInstance, finalize, get_CaseSensitive, get, get, getIDOfName, getIDsOfNames, getIDsOfNames, invoke, invoke, invoke, invokeSub, invokeSub, invokeSub, invokeSubv, invokeSubv, invokeSubv, invokev, invokev, invokev, invokev, obj2variant, obj2variant, put_Casesensitive, put, put, putRef, putRef, QueryInterface, release
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Form

public Form(com.jacob.com.Dispatch aDispatch)
Parameters:
aDispatch -
Method Detail

findElementByName

public DefaultHTMLElement findElementByName(java.lang.String aName)
Finds the first with the name. If nothing found, this method returns a null object.

Parameters:
aName - theValue of the name attribute to search for.
Returns:

getElements

public java.util.Vector getElements()
Gets the Elements collection.


getSelect

public Select getSelect(java.lang.String aName)
Gets the Select control based on the name. Returns a null object if the form doesn't contain a select control with that name.

Parameters:
aName - Select with this name attribute.
Returns:

getSelects

public java.util.Vector getSelects()
Returns a collection of SELECT elements based on the elements name.

Returns:
Vector

getInputs

public java.util.Vector getInputs()
Returns a collection of INPUT elements based on the elements name.

Returns:
Vector

findInputTypeTexts

public java.util.Vector findInputTypeTexts()

findInputTypePasswords

public java.util.Vector findInputTypePasswords()

findInputTypeCheckboxs

public java.util.Vector findInputTypeCheckboxs()

findInputTypeRadios

public java.util.Vector findInputTypeRadios()

findInputTypeFiles

public java.util.Vector findInputTypeFiles()

findInputTypeButtons

public java.util.Vector findInputTypeButtons()

findInputTypeImages

public java.util.Vector findInputTypeImages()

findInputTypeHiddens

public java.util.Vector findInputTypeHiddens()

findInputTypeSubmits

public java.util.Vector findInputTypeSubmits()

findInputTypeResets

public java.util.Vector findInputTypeResets()

findInputBasedOnType

public java.util.Vector findInputBasedOnType(java.lang.String aTypeAttribute)
Find the specific INPUT

Parameters:
aTypeAttribute -
Returns:
See Also:
class for type attributes.

findSubmitButton

public Input findSubmitButton(java.lang.String aButtonName)
Find the INPUT button from the Form based on the type attribute of SUBMIT

Returns:
Input class is return if found. If not, this will return null.

findButton

public Input findButton(java.lang.String aButtonID)
Find the INPUT button from the Form based type attribute of BUTTON and the ID attribute.

Parameters:
aButtonID -
Returns:
Input class is return if found. If not, this will return null.

submit

public void submit()
Submits the selected form.



Copyright © 2004-2005 SourceForge. All Rights Reserved.