Java Doc for FormControl.java in  » Testing » HttpUnit » com » meterware » httpunit » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Testing » HttpUnit » com.meterware.httpunit 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.meterware.httpunit.HTMLElementBase
      com.meterware.httpunit.FormControl

All known Subclasses:   com.meterware.httpunit.Button,
FormControl
abstract class FormControl extends HTMLElementBase (Code)
Represents a control in an HTML form.
author:
   Russell Gold

Inner Class :class Scriptable extends HTMLElementScriptable implements Input

Field Summary
final public static  StringBUTTON_TYPE
    
final public static  StringCHECKBOX_TYPE
    
final public static  StringFILE_TYPE
    
final public static  StringHIDDEN_TYPE
    
final public static  StringIMAGE_BUTTON_TYPE
    
final public static  StringMULTIPLE_TYPE
    
final static  String[]NO_VALUE
    
final public static  StringPASSWORD_TYPE
    
final public static  StringRADIO_BUTTON_TYPE
    
final public static  StringRESET_BUTTON_TYPE
    
final public static  StringSINGLE_TYPE
    
final public static  StringSUBMIT_BUTTON_TYPE
    
final public static  StringTEXTAREA_TYPE
    
final public static  StringTEXT_TYPE
    
final public static  StringUNDEFINED_TYPE
    

Constructor Summary
 FormControl(WebForm form)
    
 FormControl(WebForm form, Node node)
    

Method Summary
abstract  voidaddValues(ParameterProcessor processor, String characterSet)
    
 voidclaimRequiredValues(List values)
     Remove any required values for this control from the list, throwing an exception if they are missing.
 voidclaimUniqueValue(List values)
     Sets this control to the next compatible value from the list, removing it from the list.
 voidclaimUploadSpecification(List files)
     Specifies a file to be uploaded via this control.
 voidclaimValue(List values)
     Sets this control to the next compatible value from the list, removing it from the list.
final protected  voidclaimValueIsRequired(List values, String value)
     Removes the specified required value from the list of values, throwing an exception if it is missing.
static  String[]getControlElementTags()
    
 ObjectgetDelegate()
     Returns either a single delegate object or potentially an array of delegates as needed, given the form control.
 String[]getDisplayedOptions()
     Returns the list of values displayed by this control, if any.
final protected  WebFormgetForm()
    
public  String[]getOptionValues()
     Returns the values permitted in this control.
protected  ScriptableDelegategetParentDelegate()
    
abstract public  StringgetType()
     Return the type of the control, as seen from JavaScript.
protected  StringgetValueAttribute()
     Returns the default value of this control in the form.
abstract  String[]getValues()
     Returns the current value(s) associated with this control.
 booleanisDisabled()
     Returns true if this control is disabled, meaning that it will not send a value to the server as part of a request.
 booleanisExclusive()
     Returns true if only one control of this kind with this name can have a value.
 booleanisFileParameter()
     Returns true if this control accepts a file for upload.
 booleanisHidden()
     Returns true if this control is hidden.
 booleanisMultiValued()
     Returns true if a single control can have multiple values.
 booleanisReadOnly()
     Returns true if this control is read-only.
 booleanisTextControl()
     Returns true if this control accepts free-form text.
static  FormControlnewFormParameter(WebForm form, Node node)
    
protected  ScriptableDelegatenewScriptable()
     Creates and returns a scriptable object for this control.
static  ScriptableDelegatenewSelectionOption()
    
 voidreset()
     Resets this control to its initial value.
protected  voidsendOnChangeEvent()
     Performs the 'onChange' event defined for this control.
protected  voidsendOnClickEvent()
     Performs the 'onClick' event defined for this control.
 voidsetDisabled(boolean disabled)
    
public  voidsetState(boolean state)
     Sets the state of this boolean control.
public  voidtoggle()
     Toggles the value of this control.

Field Detail
BUTTON_TYPE
final public static String BUTTON_TYPE(Code)



CHECKBOX_TYPE
final public static String CHECKBOX_TYPE(Code)



FILE_TYPE
final public static String FILE_TYPE(Code)



HIDDEN_TYPE
final public static String HIDDEN_TYPE(Code)



IMAGE_BUTTON_TYPE
final public static String IMAGE_BUTTON_TYPE(Code)



MULTIPLE_TYPE
final public static String MULTIPLE_TYPE(Code)



NO_VALUE
final static String[] NO_VALUE(Code)



PASSWORD_TYPE
final public static String PASSWORD_TYPE(Code)



RADIO_BUTTON_TYPE
final public static String RADIO_BUTTON_TYPE(Code)



RESET_BUTTON_TYPE
final public static String RESET_BUTTON_TYPE(Code)



SINGLE_TYPE
final public static String SINGLE_TYPE(Code)



SUBMIT_BUTTON_TYPE
final public static String SUBMIT_BUTTON_TYPE(Code)



TEXTAREA_TYPE
final public static String TEXTAREA_TYPE(Code)



TEXT_TYPE
final public static String TEXT_TYPE(Code)



UNDEFINED_TYPE
final public static String UNDEFINED_TYPE(Code)




Constructor Detail
FormControl
FormControl(WebForm form)(Code)



FormControl
FormControl(WebForm form, Node node)(Code)




Method Detail
addValues
abstract void addValues(ParameterProcessor processor, String characterSet) throws IOException(Code)



claimRequiredValues
void claimRequiredValues(List values)(Code)
Remove any required values for this control from the list, throwing an exception if they are missing.



claimUniqueValue
void claimUniqueValue(List values)(Code)
Sets this control to the next compatible value from the list, removing it from the list.



claimUploadSpecification
void claimUploadSpecification(List files)(Code)
Specifies a file to be uploaded via this control.



claimValue
void claimValue(List values)(Code)
Sets this control to the next compatible value from the list, removing it from the list.



claimValueIsRequired
final protected void claimValueIsRequired(List values, String value)(Code)
Removes the specified required value from the list of values, throwing an exception if it is missing.



getControlElementTags
static String[] getControlElementTags()(Code)



getDelegate
Object getDelegate()(Code)
Returns either a single delegate object or potentially an array of delegates as needed, given the form control. This default implementation returns the scriptable delegate for the control.



getDisplayedOptions
String[] getDisplayedOptions()(Code)
Returns the list of values displayed by this control, if any.



getForm
final protected WebForm getForm()(Code)



getOptionValues
public String[] getOptionValues()(Code)
Returns the values permitted in this control. Does not apply to text or file controls.



getParentDelegate
protected ScriptableDelegate getParentDelegate()(Code)



getType
abstract public String getType()(Code)
Return the type of the control, as seen from JavaScript.



getValueAttribute
protected String getValueAttribute()(Code)
Returns the default value of this control in the form. If no value is specified, defaults to the empty string.



getValues
abstract String[] getValues()(Code)
Returns the current value(s) associated with this control. These values will be transmitted to the server if the control is 'successful'.



isDisabled
boolean isDisabled()(Code)
Returns true if this control is disabled, meaning that it will not send a value to the server as part of a request.



isExclusive
boolean isExclusive()(Code)
Returns true if only one control of this kind with this name can have a value. This is true for radio buttons.



isFileParameter
boolean isFileParameter()(Code)
Returns true if this control accepts a file for upload.



isHidden
boolean isHidden()(Code)
Returns true if this control is hidden.



isMultiValued
boolean isMultiValued()(Code)
Returns true if a single control can have multiple values.



isReadOnly
boolean isReadOnly()(Code)
Returns true if this control is read-only.



isTextControl
boolean isTextControl()(Code)
Returns true if this control accepts free-form text.



newFormParameter
static FormControl newFormParameter(WebForm form, Node node)(Code)



newScriptable
protected ScriptableDelegate newScriptable()(Code)
Creates and returns a scriptable object for this control. Subclasses should override this if they use a different implementation of Scriptable.



newSelectionOption
static ScriptableDelegate newSelectionOption()(Code)



reset
void reset()(Code)
Resets this control to its initial value.



sendOnChangeEvent
protected void sendOnChangeEvent()(Code)
Performs the 'onChange' event defined for this control.



sendOnClickEvent
protected void sendOnClickEvent()(Code)
Performs the 'onClick' event defined for this control.



setDisabled
void setDisabled(boolean disabled)(Code)



setState
public void setState(boolean state)(Code)
Sets the state of this boolean control.



toggle
public void toggle()(Code)
Toggles the value of this control.



Methods inherited from com.meterware.httpunit.HTMLElementBase
public String getAttribute(String name)(Code)(Java Doc)
protected String getAttribute(String name, String defaultValue)(Code)(Java Doc)
public String getClassName()(Code)(Java Doc)
public String getID()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
protected Node getNode()(Code)(Java Doc)
abstract protected ScriptableDelegate getParentDelegate()(Code)(Java Doc)
public ScriptableDelegate getScriptableDelegate()(Code)(Java Doc)
public String getTagName()(Code)(Java Doc)
public String getText()(Code)(Java Doc)
public String getTitle()(Code)(Java Doc)
public boolean isSupportedAttribute(String name)(Code)(Java Doc)
protected ScriptableDelegate newScriptable()(Code)(Java Doc)
protected void supportAttribute(String name)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.