Java Doc for NumberField.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
      com.gwtext.client.widgets.form.NumberField

NumberField
public class NumberField extends TextField (Code)
Numeric text field that provides automatic keystroke filtering and numeric validation.



Constructor Summary
public  NumberField()
     Creates a new NumberField.
public  NumberField(String fieldLabel)
    
public  NumberField(String fieldLabel, String name)
    
public  NumberField(String fieldLabel, String name, int width)
    
public  NumberField(String fieldLabel, String name, int width, float value)
    
public  NumberField(JavaScriptObject jsObj)
    

Method Summary
native protected  JavaScriptObjectcreate(JavaScriptObject jsObj)
    
native public  NumbergetValue()
     Returns the field value.
public  StringgetXType()
    
public  voidsetAllowDecimals(boolean allowDecimals)
     False to disallow decimal values (defaults to true).
public  voidsetAllowNegative(boolean allowNegative)
     False to prevent entering a negative sign (defaults to true).
public  voidsetDecimalPrecision(int decimalPrecision)
     The maximum precision to display after the decimal separator (defaults to 2).
public  voidsetDecimalSeparator(String decimalSeparator)
     Character(s) to allow as the decimal separator (defaults to '.').
public  voidsetMaxText(String maxText)
     Error text to display if the maximum value validation fails (defaults to "The maximum value for this field is {maxValue}").
public  voidsetMaxValue(int maxValue)
     The maximum allowed value (defaults to Number.MAX_VALUE).
public  voidsetMinText(String minText)
     Error text to display if the minimum value validation fails (defaults to "The minimum value for this field is {minValue}").
public  voidsetMinValue(int minValue)
     The minimum allowed value (defaults to Number.NEGATIVE_INFINITY).
public  voidsetNanText(String nanText)
     Error text to display if the value is not a valid number.
native public  voidsetValue(float value)
     Sets the fields value.
public  voidsetValue(Number value)
     Sets the fields value.
public  booleanvalidateValue(Number value)
     Validates a value according to the field's validation rules and marks the field as invalid if the validation fails.
native public  booleanvalidateValue(float value)
     Validates a value according to the field's validation rules and marks the field as invalid if the validation fails.


Constructor Detail
NumberField
public NumberField()(Code)
Creates a new NumberField.



NumberField
public NumberField(String fieldLabel)(Code)



NumberField
public NumberField(String fieldLabel, String name)(Code)



NumberField
public NumberField(String fieldLabel, String name, int width)(Code)



NumberField
public NumberField(String fieldLabel, String name, int width, float value)(Code)



NumberField
public NumberField(JavaScriptObject jsObj)(Code)




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



getValue
native public Number getValue()(Code)
Returns the field value. the field value



getXType
public String getXType()(Code)



setAllowDecimals
public void setAllowDecimals(boolean allowDecimals) throws IllegalStateException(Code)
False to disallow decimal values (defaults to true).
Parameters:
  allowDecimals - false to disallow decimal values
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setAllowNegative
public void setAllowNegative(boolean allowNegative) throws IllegalStateException(Code)
False to prevent entering a negative sign (defaults to true).
Parameters:
  allowNegative - false to prevent entering a negative sign
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setDecimalPrecision
public void setDecimalPrecision(int decimalPrecision) throws IllegalStateException(Code)
The maximum precision to display after the decimal separator (defaults to 2).
Parameters:
  decimalPrecision - the decimal precision
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setDecimalSeparator
public void setDecimalSeparator(String decimalSeparator) throws IllegalStateException(Code)
Character(s) to allow as the decimal separator (defaults to '.').
Parameters:
  decimalSeparator - decimal separator
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setMaxText
public void setMaxText(String maxText)(Code)
Error text to display if the maximum value validation fails (defaults to "The maximum value for this field is {maxValue}").
Parameters:
  maxText - the max error text



setMaxValue
public void setMaxValue(int maxValue)(Code)
The maximum allowed value (defaults to Number.MAX_VALUE).
Parameters:
  maxValue - the max value



setMinText
public void setMinText(String minText)(Code)
Error text to display if the minimum value validation fails (defaults to "The minimum value for this field is {minValue}").
Parameters:
  minText - the min error text



setMinValue
public void setMinValue(int minValue)(Code)
The minimum allowed value (defaults to Number.NEGATIVE_INFINITY).
Parameters:
  minValue - the min value



setNanText
public void setNanText(String nanText)(Code)
Error text to display if the value is not a valid number. For example, this can happen if a valid character like '.' or '-' is left in the field with no number (defaults to "throws IllegalArgumentException {value} is not a valid number").
Parameters:
  nanText - the Nan text



setValue
native public void setValue(float value)(Code)
Sets the fields value.
Parameters:
  value - the field value



setValue
public void setValue(Number value)(Code)
Sets the fields value.
Parameters:
  value - the field value



validateValue
public boolean validateValue(Number 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 validate true if valid



validateValue
native public boolean validateValue(float 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 validate true if valid



Methods inherited from com.gwtext.client.widgets.form.TextField
native public void addListener(TextFieldListener listener)(Code)(Java Doc)
native public void autoSize()(Code)(Java Doc)
native protected JavaScriptObject create(JavaScriptObject jsObj)(Code)(Java Doc)
protected JavaScriptObject getConfigPrototype()(Code)(Java Doc)
public String getText()(Code)(Java Doc)
public String getXType()(Code)(Java Doc)
native public void selectText()(Code)(Java Doc)
native public void selectText(int start, int end)(Code)(Java Doc)
public void setAllowBlank(boolean allowBlank)(Code)(Java Doc)
public void setBlankText(String blankText)(Code)(Java Doc)
public void setDisableKeyFilter(boolean disableKeyFilter) throws IllegalStateException(Code)(Java Doc)
public void setEmptyClass(String emptyClass) throws IllegalStateException(Code)(Java Doc)
public void setEmptyText(String emptyText)(Code)(Java Doc)
public void setGrow(boolean grow) throws IllegalStateException(Code)(Java Doc)
public void setGrowMax(int growMax) throws IllegalStateException(Code)(Java Doc)
public void setGrowMin(int growMin) throws IllegalStateException(Code)(Java Doc)
native public void setMaskRe(String maskRe)(Code)(Java Doc)
public void setMaxLength(int maxLength)(Code)(Java Doc)
public void setMaxLengthText(String maxLengthText)(Code)(Java Doc)
public void setMinLength(int minLength)(Code)(Java Doc)
public void setMinLengthText(String minLengthText)(Code)(Java Doc)
public void setPassword(boolean password) throws IllegalStateException(Code)(Java Doc)
public void setRegex(String regex)(Code)(Java Doc)
public void setRegexText(String regexText)(Code)(Java Doc)
public void setSelectOnFocus(boolean selectOnFocus) throws IllegalStateException(Code)(Java Doc)
public void setValidator(Validator validator)(Code)(Java Doc)
public void setVtype(VType vtype)(Code)(Java Doc)
public void setVtypeText(String vtypeText)(Code)(Java Doc)
native public boolean validateValue(String value)(Code)(Java Doc)

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.