Java Doc for Form.java in  » Ajax » dwr » jsx3 » gui » 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 » Ajax » dwr » jsx3.gui 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.directwebremoting.proxy.io.Context
      jsx3.lang.Object
         jsx3.gui.Form

Form
public class Form extends jsx3.lang.Object (Code)
Mixin interface. Contains methods and constants encapsulating the functionality of an HTML form control.
author:
   Joe Walker [joe at getahead dot org]
author:
   DRAPGEN - Dwr Reverse Ajax Proxy GENerator


Field Summary
final public static  StringDEFAULTDISABLEDBACKGROUNDCOLOR
    
final public static  StringDEFAULTDISABLEDCOLOR
    
final public static  intOPTIONAL
     Value for the required field indicating that the form field is optional.
final public static  intREQUIRED
     Value for the required field indicating that the form field is required.
final public static  intSTATEDISABLED
     Value for the enabled field indicating that the form field is disabled.
final public static  intSTATEENABLED
     Value for the enabled field indicating that the form field is enabled.
final public static  intSTATEINVALID
     Value for the validation state field indicating that the value of the form field is invalid.
final public static  intSTATEVALID
     Value for the validation state field indicating that the value of the form field is valid.

Constructor Summary
public  Form(Context context, String extension, ScriptProxy scriptProxy)
    

Method Summary
public  jsx3.gui.HotKeydoKeyBinding(org.directwebremoting.proxy.CodeBlock fctCallback, String strKeys)
     Binds the given key sequence to a callback function.
public  jsx3.gui.FormdoReset()
     Resets the validation state of this control.
public  TdoReset(Class<T> returnType)
     Resets the validation state of this control.
public  voiddoValidate(org.directwebremoting.proxy.Callback<Integer> callback)
     Abstract method that must be implemented by any class that implements the Form interface.
public  voidgetDisabledBackgroundColor(org.directwebremoting.proxy.Callback<String> callback)
     Returns the background color of this control when it is disabled.
public  voidgetDisabledColor(org.directwebremoting.proxy.Callback<String> callback)
     Returns the font color to use when this control is disabled.
public  voidgetEnabled(org.directwebremoting.proxy.Callback<Integer> callback)
     Returns the state for the form field control.
public  voidgetKeyBinding(org.directwebremoting.proxy.Callback<String> callback)
     Returns the key binding that when keyed will fire the execute event for this control.
public  voidgetRequired(org.directwebremoting.proxy.Callback<Integer> callback)
     Returns whether or not this control is required.
public  voidgetValidationState(org.directwebremoting.proxy.Callback<Integer> callback)
     Returns the validation state of this control.
public  voidgetValue(org.directwebremoting.proxy.Callback<Integer> callback)
     Returns the value of this control.
public  voidreset(jsx3.app.Model objJSXContainer)
     Traverses the DOM branch starting at objJSXContainer and calls doReset() on all nodes of type jsx3.gui.Form.
public  jsx3.gui.FormsetDisabledBackgroundColor(String strColor)
     Sets the background color of this form control when it is disabled.
public  jsx3.gui.FormsetDisabledColor(String strColor)
     Sets the font color to use when this control is disabled.
public  voidsetEnabled(int intEnabled, boolean bRepaint)
     Sets whether this control is enabled.
public  jsx3.gui.FormsetKeyBinding(String strSequence)
     Sets the key binding that when keyed will fire the bound execute (jsx3.gui.Interactive.EXECUTE) event for this control.
public  jsx3.gui.FormsetRequired(int required)
     Sets whether or not this control is required.
Parameters:
  required - {int} REQUIRED or OPTIONAL.
public  jsx3.gui.FormsetValidationState(int intState)
     Sets the validation state of this control.
public  jsx3.gui.FormsetValue(String vntValue)
     Sets the value of this control.
public  jsx3.gui.FormsetValue(Integer vntValue)
     Sets the value of this control.
public  voidvalidate(jsx3.app.Model objJSXContainer, org.directwebremoting.proxy.CodeBlock objHandler, org.directwebremoting.proxy.Callback<Integer> callback)
     Traverses the DOM branch starting at objJSXContainer and calls doValidate() on all nodes of type jsx3.gui.Form.

Field Detail
DEFAULTDISABLEDBACKGROUNDCOLOR
final public static String DEFAULTDISABLEDBACKGROUNDCOLOR(Code)
#d8d8e5 (default)



DEFAULTDISABLEDCOLOR
final public static String DEFAULTDISABLEDCOLOR(Code)
#a8a8b5 (default)



OPTIONAL
final public static int OPTIONAL(Code)
Value for the required field indicating that the form field is optional.



REQUIRED
final public static int REQUIRED(Code)
Value for the required field indicating that the form field is required.



STATEDISABLED
final public static int STATEDISABLED(Code)
Value for the enabled field indicating that the form field is disabled.



STATEENABLED
final public static int STATEENABLED(Code)
Value for the enabled field indicating that the form field is enabled.



STATEINVALID
final public static int STATEINVALID(Code)
Value for the validation state field indicating that the value of the form field is invalid.



STATEVALID
final public static int STATEVALID(Code)
Value for the validation state field indicating that the value of the form field is valid.




Constructor Detail
Form
public Form(Context context, String extension, ScriptProxy scriptProxy)(Code)
All reverse ajax proxies need context to work from
Parameters:
  scriptProxy - The place we are writing scripts to
Parameters:
  context - The script that got us to where we are now




Method Detail
doKeyBinding
public jsx3.gui.HotKey doKeyBinding(org.directwebremoting.proxy.CodeBlock fctCallback, String strKeys)(Code)
Binds the given key sequence to a callback function. Any object that has a key binding (specified with setKeyBinding()) will call this method when painted to register the key sequence with an appropriate ancestor of this form control. Any key down event that bubbles up to the ancestor without being intercepted and matches the given key sequence will invoke the given callback function. As of 3.2: The hot key will be registered with the first ancestor found that is either a jsx3.gui.Window, a jsx3.gui.Dialog, or the root block of a jsx3.app.Server.
Parameters:
  fctCallback - JavaScript function to execute when the given sequence is keyed by the user.
Parameters:
  strKeys - a plus-delimited ('+') key sequence such as ctrl+s orctrl+shift+alt+h or shift+a, etc. Any combination of shift, ctrl, and alt aresupported, including none. Also supported as the final token are enter, esc,tab, del, and space. To specify the final token as a key code, thelast token can be the key code contained in brackets, [13]. the registered hot key.



doReset
public jsx3.gui.Form doReset()(Code)
Resets the validation state of this control. this object.



doReset
public T doReset(Class<T> returnType)(Code)
Resets the validation state of this control.
Parameters:
  returnType - The expected return type this object.



doValidate
public void doValidate(org.directwebremoting.proxy.Callback<Integer> callback)(Code)
Abstract method that must be implemented by any class that implements the Form interface.
Parameters:
  callback - STATEINVALID or STATEVALID.



getDisabledBackgroundColor
public void getDisabledBackgroundColor(org.directwebremoting.proxy.Callback<String> callback)(Code)
Returns the background color of this control when it is disabled.
Parameters:
  callback - valid CSS property value, (i.e., red, #ff0000)



getDisabledColor
public void getDisabledColor(org.directwebremoting.proxy.Callback<String> callback)(Code)
Returns the font color to use when this control is disabled.
Parameters:
  callback - valid CSS property value, (i.e., red, #ff0000)



getEnabled
public void getEnabled(org.directwebremoting.proxy.Callback<Integer> callback)(Code)
Returns the state for the form field control. If no enabled state is set, this method returns STATEENABLED.
Parameters:
  callback - STATEDISABLED or STATEENABLED.



getKeyBinding
public void getKeyBinding(org.directwebremoting.proxy.Callback<String> callback)(Code)
Returns the key binding that when keyed will fire the execute event for this control.
Parameters:
  callback - plus-delimited (e.g.,'+') key sequence such as ctrl+s or ctrl+shift+alt+h or shift+a, etc



getRequired
public void getRequired(org.directwebremoting.proxy.Callback<Integer> callback)(Code)
Returns whether or not this control is required. If the required property has never been set, this method returns OPTIONAL.
Parameters:
  callback - REQUIRED or OPTIONAL.



getValidationState
public void getValidationState(org.directwebremoting.proxy.Callback<Integer> callback)(Code)
Returns the validation state of this control. If the validationState property has never been set, this method returns STATEVALID.
Parameters:
  callback - STATEINVALID or STATEVALID.



getValue
public void getValue(org.directwebremoting.proxy.Callback<Integer> callback)(Code)
Returns the value of this control.



reset
public void reset(jsx3.app.Model objJSXContainer)(Code)
Traverses the DOM branch starting at objJSXContainer and calls doReset() on all nodes of type jsx3.gui.Form.
Parameters:
  objJSXContainer - JSX GUI object containing all form fields that need to be reset (the 'reset' process will start with this item and be applied to all descendants, not just direct children)



setDisabledBackgroundColor
public jsx3.gui.Form setDisabledBackgroundColor(String strColor)(Code)
Sets the background color of this form control when it is disabled.
Parameters:
  strColor - valid CSS property value, (i.e., red, #ff0000) this object.



setDisabledColor
public jsx3.gui.Form setDisabledColor(String strColor)(Code)
Sets the font color to use when this control is disabled.
Parameters:
  strColor - valid CSS property value, (i.e., red, #ff0000) this object.



setEnabled
public void setEnabled(int intEnabled, boolean bRepaint)(Code)
Sets whether this control is enabled. Disabled controls do not respond to user interaction.
Parameters:
  intEnabled - STATEDISABLED or STATEENABLED. null isequivalent to STATEENABLED.
Parameters:
  bRepaint - if true this control is immediately repainted to reflect the new setting.



setKeyBinding
public jsx3.gui.Form setKeyBinding(String strSequence)(Code)
Sets the key binding that when keyed will fire the bound execute (jsx3.gui.Interactive.EXECUTE) event for this control.
Parameters:
  strSequence - plus-delimited (e.g.,'+') key sequence such as ctrl+s or ctrl+shift+alt+h or shift+a, etc this object.



setRequired
public jsx3.gui.Form setRequired(int required)(Code)
Sets whether or not this control is required.
Parameters:
  required - {int} REQUIRED or OPTIONAL. this object.



setValidationState
public jsx3.gui.Form setValidationState(int intState)(Code)
Sets the validation state of this control. The validation state of a control is not serialized.
Parameters:
  intState - STATEINVALID or STATEVALID. this object.



setValue
public jsx3.gui.Form setValue(String vntValue)(Code)
Sets the value of this control.
Parameters:
  vntValue - string/int value for the component this object.



setValue
public jsx3.gui.Form setValue(Integer vntValue)(Code)
Sets the value of this control.
Parameters:
  vntValue - string/int value for the component this object.



validate
public void validate(jsx3.app.Model objJSXContainer, org.directwebremoting.proxy.CodeBlock objHandler, org.directwebremoting.proxy.Callback<Integer> callback)(Code)
Traverses the DOM branch starting at objJSXContainer and calls doValidate() on all nodes of type jsx3.gui.Form. A custom function handler, objHandler, can be passed that will be called once for each encountered form control.
Parameters:
  objJSXContainer - JSX GUI object containing all form fields that need to be validated (recursive validation will start with this item and be applied to all descendants, not just direct children)
Parameters:
  objHandler - a JavaScript function (as object). This function will be passed two parameters: the object reference to the JSX Form object (textbox, selectbox, checkbox, etc) being validated as well as a constant denoting whether or not it validated (0 or 1)—1 meaning true
Parameters:
  callback - STATEINVALID or STATEVALID.



Methods inherited from jsx3.lang.Object
public void ignoreReturn()(Code)(Java Doc)

Methods inherited from org.directwebremoting.proxy.io.Context
protected String getContextPath()(Code)(Java Doc)
protected ScriptBuffer getInitScript()(Code)(Java Doc)
protected ScriptProxy getScriptProxy()(Code)(Java Doc)
protected void setInitScript(ScriptBuffer initScript)(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.