Java Doc for TextField.java in  » Ajax » gwtext-2.01 » com » gwtext » client » widgets » form » 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 » gwtext 2.01 » com.gwtext.client.widgets.form 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.gwtext.client.widgets.form.Field
   com.gwtext.client.widgets.form.TextField

All known Subclasses:   com.gwtext.client.widgets.form.NumberField,  com.gwtext.client.widgets.form.TriggerField,  com.gwtext.client.widgets.form.ComboBox,  com.gwtext.client.widgets.form.DateField,  com.gwtext.client.widgets.form.TextArea,
TextField
public class TextField extends Field (Code)
Basic text field.



Constructor Summary
public  TextField()
     Create a new TextField.
public  TextField(String fieldLabel)
     Create a new TextField.
public  TextField(String fieldLabel, String name)
     Create a new TextField.
public  TextField(String fieldLabel, String name, int width)
     Create a new TextField.
public  TextField(String fieldLabel, String name, int width, String value)
     Create a new TextField.
public  TextField(JavaScriptObject jsObj)
    

Method Summary
native public  voidaddListener(TextFieldListener listener)
     Add a TextField listener.
native public  voidautoSize()
     Automatically grows the field to accomodate the width of the text up to the maximum field width allowed.
native protected  JavaScriptObjectcreate(JavaScriptObject jsObj)
    
protected  JavaScriptObjectgetConfigPrototype()
    
public  StringgetText()
     Returns the value of the text field.
public  StringgetXType()
    
native public  voidselectText()
     Selects text in this field.
native public  voidselectText(int start, int end)
     Selects text in this field.
public  voidsetAllowBlank(boolean allowBlank)
     False to validate that the value length > 0 (defaults to true).
public  voidsetBlankText(String blankText)
     Error text to display if the allow blank validation fails (defaults to "This field is required").
public  voidsetDisableKeyFilter(boolean disableKeyFilter)
     True to disable input keystroke filtering (defaults to false).
public  voidsetEmptyClass(String emptyClass)
     The CSS class to apply to an empty field to style the emptyText (defaults to 'x-form-empty-field').
public  voidsetEmptyText(String emptyText)
     The default text to display in an empty field (defaults to null).
public  voidsetGrow(boolean grow)
     True if this field should automatically grow and shrink to its content.
public  voidsetGrowMax(int growMax)
     The maximum width to allow when grow = true (defaults to 800).
public  voidsetGrowMin(int growMin)
     The minimum width to allow when grow = true (defaults to 30).
native public  voidsetMaskRe(String maskRe)
     An input mask regular expression that will be used to filter keystrokes that don't match (defaults to null).
public  voidsetMaxLength(int maxLength)
    
public  voidsetMaxLengthText(String maxLengthText)
     Error text to display if the maximum length validation fails.
public  voidsetMinLength(int minLength)
     Minimum input field length required (defaults to 0).
public  voidsetMinLengthText(String minLengthText)
     Error text to display if the minimum length validation fails.
public  voidsetPassword(boolean password)
     Set true if field is a password field.
public  voidsetRegex(String regex)
     A Regular Expressionto be tested against the field value during validation (defaults to null). If available, this regex will be evaluated only after the basic validators all return true, and will be passed the current field value.
public  voidsetRegexText(String regexText)
     The error text to display if regex is used and the test fails during validation (defaults to "").
public  voidsetSelectOnFocus(boolean selectOnFocus)
     True to automatically select any existing field text when the field receives input focus (defaults to false).
public  voidsetValidator(Validator validator)
     Set a custom Validator for the Field.
public  voidsetVtype(VType vtype)
     A validation type name as defined in VType (defaults to null).
public  voidsetVtypeText(String vtypeText)
     The validation type text if the validation specified by TextField.setVtype(VType) fails.
native public  booleanvalidateValue(String value)
     Validates a value according to the field's validation rules and marks the field as invalid if the validation fails.


Constructor Detail
TextField
public TextField()(Code)
Create a new TextField.



TextField
public TextField(String fieldLabel)(Code)
Create a new TextField.
Parameters:
  fieldLabel - the field label



TextField
public TextField(String fieldLabel, String name)(Code)
Create a new TextField.
Parameters:
  fieldLabel - the field label
Parameters:
  name - the field name



TextField
public TextField(String fieldLabel, String name, int width)(Code)
Create a new TextField.
Parameters:
  fieldLabel - the field label
Parameters:
  name - the field name
Parameters:
  width - the field width



TextField
public TextField(String fieldLabel, String name, int width, String value)(Code)
Create a new TextField.
Parameters:
  fieldLabel - the field label
Parameters:
  name - the field name
Parameters:
  width - the field width
Parameters:
  value - the field value



TextField
public TextField(JavaScriptObject jsObj)(Code)




Method Detail
addListener
native public void addListener(TextFieldListener listener)(Code)
Add a TextField listener.
Parameters:
  listener - the listener



autoSize
native public void autoSize()(Code)
Automatically grows the field to accomodate the width of the text up to the maximum field width allowed. This only takes effect if grow = true, and fires the autosize event.



create
native protected JavaScriptObject create(JavaScriptObject jsObj)(Code)



getConfigPrototype
protected JavaScriptObject getConfigPrototype()(Code)



getText
public String getText()(Code)
Returns the value of the text field. the text field value



getXType
public String getXType()(Code)



selectText
native public void selectText()(Code)
Selects text in this field.



selectText
native public void selectText(int start, int end)(Code)
Selects text in this field.
Parameters:
  start - the index where the selection should start
Parameters:
  end - the index where the selection should end



setAllowBlank
public void setAllowBlank(boolean allowBlank)(Code)
False to validate that the value length > 0 (defaults to true).
Parameters:
  allowBlank - false to disallow blank



setBlankText
public void setBlankText(String blankText)(Code)
Error text to display if the allow blank validation fails (defaults to "This field is required").
Parameters:
  blankText - error message for blank field



setDisableKeyFilter
public void setDisableKeyFilter(boolean disableKeyFilter) throws IllegalStateException(Code)
True to disable input keystroke filtering (defaults to false).
Parameters:
  disableKeyFilter - true to disable
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setEmptyClass
public void setEmptyClass(String emptyClass) throws IllegalStateException(Code)
The CSS class to apply to an empty field to style the emptyText (defaults to 'x-form-empty-field'). This class is automatically added and removed as needed depending on the current field value.
Parameters:
  emptyClass - the empty field CSS class
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setEmptyText
public void setEmptyText(String emptyText)(Code)
The default text to display in an empty field (defaults to null).
Parameters:
  emptyText - the empty field text



setGrow
public void setGrow(boolean grow) throws IllegalStateException(Code)
True if this field should automatically grow and shrink to its content.
Parameters:
  grow - true to allow grow
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setGrowMax
public void setGrowMax(int growMax) throws IllegalStateException(Code)
The maximum width to allow when grow = true (defaults to 800).
Parameters:
  growMax - the max width
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setGrowMin
public void setGrowMin(int growMin) throws IllegalStateException(Code)
The minimum width to allow when grow = true (defaults to 30).
Parameters:
  growMin - the minimum width
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setMaskRe
native public void setMaskRe(String maskRe)(Code)
An input mask regular expression that will be used to filter keystrokes that don't match (defaults to null).

Note: This property cannot be changed after the Component has been rendered.
Parameters:
  maskRe - the mask regular expression



setMaxLength
public void setMaxLength(int maxLength)(Code)



setMaxLengthText
public void setMaxLengthText(String maxLengthText)(Code)
Error text to display if the maximum length validation fails. (defaults to "The maximum length for this field is {maxLength}")
Parameters:
  maxLengthText - the max lenght error text



setMinLength
public void setMinLength(int minLength)(Code)
Minimum input field length required (defaults to 0).
Parameters:
  minLength - the min length



setMinLengthText
public void setMinLengthText(String minLengthText)(Code)
Error text to display if the minimum length validation fails. (defaults to "The minimum length for this field is {minLength}")
Parameters:
  minLengthText - the min length error text



setPassword
public void setPassword(boolean password) throws IllegalStateException(Code)
Set true if field is a password field.
Parameters:
  password - true if passowrd field
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setRegex
public void setRegex(String regex)(Code)
A Regular Expressionto be tested against the field value during validation (defaults to null). If available, this regex will be evaluated only after the basic validators all return true, and will be passed the current field value. If the test fails, the field will be marked invalid using regexText.
Parameters:
  regex - the regular expression



setRegexText
public void setRegexText(String regexText)(Code)
The error text to display if regex is used and the test fails during validation (defaults to "").

Note: This property cannot be changed after the Component has been rendered.
Parameters:
  regexText - the regexp text



setSelectOnFocus
public void setSelectOnFocus(boolean selectOnFocus) throws IllegalStateException(Code)
True to automatically select any existing field text when the field receives input focus (defaults to false).
Parameters:
  selectOnFocus - true to select text on focus
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setValidator
public void setValidator(Validator validator)(Code)
Set a custom Validator for the Field.
Parameters:
  validator - the field validator



setVtype
public void setVtype(VType vtype)(Code)
A validation type name as defined in VType (defaults to null).
Parameters:
  vtype - the validation type



setVtypeText
public void setVtypeText(String vtypeText)(Code)
The validation type text if the validation specified by TextField.setVtype(VType) fails.
Parameters:
  vtypeText - the vtype



validateValue
native public boolean validateValue(String value)(Code)
Validates a value according to the field's validation rules and marks the field as invalid if the validation fails.
Parameters:
  value - the value to valdiate true if valid



Methods inherited from com.gwtext.client.widgets.form.Field
native public void addListener(FieldListener listener)(Code)(Java Doc)
public void applyTo(String id)(Code)(Java Doc)
native public void applyTo(Element element)(Code)(Java Doc)
native public void clearInvalid()(Code)(Java Doc)
abstract protected JavaScriptObject create(JavaScriptObject config)(Code)(Java Doc)
public String getClearCls()(Code)(Java Doc)
public String getCls()(Code)(Java Doc)
public String getFocusClass()(Code)(Java Doc)
public String getInputType()(Code)(Java Doc)
public String getInvalidClass()(Code)(Java Doc)
public String getInvalidText()(Code)(Java Doc)
public String getLabelSeparator()(Code)(Java Doc)
public String getLabelStyle()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
native public String getRawValue()(Code)(Java Doc)
public int getTabindex()(Code)(Java Doc)
public int getValidationDelay()(Code)(Java Doc)
native public String getValueAsString()(Code)(Java Doc)
public String getXType()(Code)(Java Doc)
public boolean isAutoCreate()(Code)(Java Doc)
native public boolean isDirty()(Code)(Java Doc)
public boolean isHideLabel()(Code)(Java Doc)
public boolean isReadOnly()(Code)(Java Doc)
native public boolean isValid()(Code)(Java Doc)
native public boolean isValid(boolean preventMark)(Code)(Java Doc)
public boolean isValidateOnBlur()(Code)(Java Doc)
native public void markInvalid(String message)(Code)(Java Doc)
native public void reset()(Code)(Java Doc)
public void setAutoCreate(boolean autoCreate) throws IllegalStateException(Code)(Java Doc)
public void setAutoCreate(DomConfig domConfig) throws IllegalStateException(Code)(Java Doc)
public void setClearCls(String clearCls) throws IllegalStateException(Code)(Java Doc)
public void setCls(String cls) throws IllegalStateException(Code)(Java Doc)
public void setDisabled(boolean disabled)(Code)(Java Doc)
public void setFieldClass(String fieldClass) throws IllegalStateException(Code)(Java Doc)
public void setFieldLabel(String fieldLabel)(Code)(Java Doc)
public void setFieldMsgTarget(String msgTarget) throws IllegalStateException(Code)(Java Doc)
public void setFocusClass(String focusClass)(Code)(Java Doc)
public void setHideLabel(boolean hideLabel) throws IllegalStateException(Code)(Java Doc)
public void setInputType(String inputType) throws IllegalStateException(Code)(Java Doc)
public void setInvalidClass(String invalidClass)(Code)(Java Doc)
public void setInvalidText(String invalidText)(Code)(Java Doc)
public void setLabel(String fieldLabel)(Code)(Java Doc)
public void setLabelSeparator(String labelSeparator) throws IllegalStateException(Code)(Java Doc)
public void setLabelStyle(String labelStyle) throws IllegalStateException(Code)(Java Doc)
public void setMsgFx(String msgFx)(Code)(Java Doc)
native public static void setMsgTarget(String msgTarget)(Code)(Java Doc)
public void setName(String name) throws IllegalStateException(Code)(Java Doc)
native public void setRawValue(String value)(Code)(Java Doc)
public void setReadOnly(boolean readOnly) throws IllegalStateException(Code)(Java Doc)
public void setTabIndex(int tabIndex) throws IllegalStateException(Code)(Java Doc)
public void setValidateOnBlur(boolean validateOnBlur)(Code)(Java Doc)
public void setValidationDelay(int validationDelay) throws IllegalStateException(Code)(Java Doc)
public void setValidationEvent(boolean validationEvent) throws IllegalStateException(Code)(Java Doc)
public void setValidationEvent(String validationEvent)(Code)(Java Doc)
public void setValue(String value)(Code)(Java Doc)
public void setWidth(int width) throws IllegalStateException(Code)(Java Doc)
public void setWidth(String width) throws IllegalStateException(Code)(Java Doc)
native public boolean validate()(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.