Java Doc for PropertyEditorNumber.java in  » IDE-Netbeans » vmd.analyzer » org » netbeans » modules » vmd » midp » propertyeditors » 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 » IDE Netbeans » vmd.analyzer » org.netbeans.modules.vmd.midp.propertyeditors 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.netbeans.modules.vmd.midp.propertyeditors.api.usercode.PropertyEditorUserCode
   org.netbeans.modules.vmd.midp.propertyeditors.PropertyEditorNumber

PropertyEditorNumber
public class PropertyEditorNumber extends PropertyEditorUserCode implements PropertyEditorElement(Code)

author:
   Anton Chechel


Field Summary
final public static  StringNON_DIGITS_TEXT
    


Method Summary
final public static  PropertyEditorNumbercreateByteInstance(boolean useSpinner, String label)
    
final public static  PropertyEditorNumbercreateCharInstance(boolean useSpinner, String label)
    
final public static  PropertyEditorNumbercreateDoubleInstance(String label)
    
final public static  PropertyEditorNumbercreateFloatInstance(String label)
    
final public static  PropertyEditorNumbercreateIntegerInstance(boolean useSpinner, String label)
    
final public static  PropertyEditorNumbercreateLongInstance(boolean useSpinner, String label)
    
final public static  PropertyEditorNumbercreateShortInstance(boolean useSpinner, String label)
    
public  voidcustomEditorOKButtonPressed()
    
public  StringgetAsText()
    
public  JComponentgetCustomEditorComponent()
    
public  JRadioButtongetRadioButton()
    
public  StringgetTextForPropertyValue()
    
public  booleanisInitiallySelected()
    
protected  booleanisTextCorrect(String text)
     Checks whether text is in correct format for given property editor.
public  booleanisVerticallyResizable()
    
protected  StringprepareText(String text)
     Removes all incorrect characters for for given property editor.
protected  voidsaveValue(String text)
    
public  voidsetTextForPropertyValue(String text)
    
public  voidupdateState(PropertyValue value)
    

Field Detail
NON_DIGITS_TEXT
final public static String NON_DIGITS_TEXT(Code)
The text to be shown as a warning if user inputs incorrect characters





Method Detail
createByteInstance
final public static PropertyEditorNumber createByteInstance(boolean useSpinner, String label)(Code)
Creates instance of property editor for byte type
Parameters:
  label - localized label with mnemonics for radio button propertyEditor



createCharInstance
final public static PropertyEditorNumber createCharInstance(boolean useSpinner, String label)(Code)
Creates instance of property editor for char type
Parameters:
  label - localized label with mnemonics for radio button propertyEditor



createDoubleInstance
final public static PropertyEditorNumber createDoubleInstance(String label)(Code)
Creates instance of property editor for double type
Parameters:
  label - localized label with mnemonics for radio button propertyEditor



createFloatInstance
final public static PropertyEditorNumber createFloatInstance(String label)(Code)
Creates instance of property editor for float type
Parameters:
  label - localized label with mnemonics for radio button propertyEditor



createIntegerInstance
final public static PropertyEditorNumber createIntegerInstance(boolean useSpinner, String label)(Code)
Creates instance of property editor for integer type
Parameters:
  label - localized label with mnemonics for radio button propertyEditor



createLongInstance
final public static PropertyEditorNumber createLongInstance(boolean useSpinner, String label)(Code)
Creates instance of property editor for long type
Parameters:
  label - localized label with mnemonics for radio button propertyEditor



createShortInstance
final public static PropertyEditorNumber createShortInstance(boolean useSpinner, String label)(Code)
Creates instance of property editor for short type
Parameters:
  label - localized label with mnemonics for radio button propertyEditor



customEditorOKButtonPressed
public void customEditorOKButtonPressed()(Code)



getAsText
public String getAsText()(Code)



getCustomEditorComponent
public JComponent getCustomEditorComponent()(Code)
Returns component to represent custom editor in propertyEditorUserCode component



getRadioButton
public JRadioButton getRadioButton()(Code)
Returns radio button for propertyEditorUserCode radioButton



getTextForPropertyValue
public String getTextForPropertyValue()(Code)
Returns text for additional operations with propertyValue, not used here null



isInitiallySelected
public boolean isInitiallySelected()(Code)
Determines whether radioButton should be selected by default in the propertyEditorUserCode isSelected



isTextCorrect
protected boolean isTextCorrect(String text)(Code)
Checks whether text is in correct format for given property editor. For example for integer property editor text must match [\d\-]+ regex
Parameters:
  text - to be checked result



isVerticallyResizable
public boolean isVerticallyResizable()(Code)
Determines whether custom component resizable vertically in the propertyEditorUserCode isResizable



prepareText
protected String prepareText(String text)(Code)
Removes all incorrect characters for for given property editor. For example for integer property editor removes all chars except [\d\-]+ regex
Parameters:
  text - to be checked result text



saveValue
protected void saveValue(String text)(Code)
Saves text as a proper property value
Parameters:
  text - to be parsed and saved



setTextForPropertyValue
public void setTextForPropertyValue(String text)(Code)
Sets propertyValue from text
Parameters:
  text -
See Also:   java.beans.PropertyEditor.setAsText



updateState
public void updateState(PropertyValue value)(Code)
Sets initial propertyValue before displaying customPropertyEditor
Parameters:
  value -



Fields inherited from org.netbeans.modules.vmd.midp.propertyeditors.api.usercode.PropertyEditorUserCode
final public static String NULL_TEXT(Code)(Java Doc)
final public static PropertyValue NULL_VALUE(Code)(Java Doc)
final public static String USER_CODE_TEXT(Code)(Java Doc)
protected WeakReference<DesignComponent> component(Code)(Java Doc)

Methods inherited from org.netbeans.modules.vmd.midp.propertyeditors.api.usercode.PropertyEditorUserCode
public Boolean canEditAsText()(Code)(Java Doc)
public boolean canWrite()(Code)(Java Doc)
public void clearErrorStatus()(Code)(Java Doc)
public void customEditorOKButtonPressed()(Code)(Java Doc)
public void displayError(String message)(Code)(Java Doc)
public void displayWarning(String message)(Code)(Java Doc)
public String getAsText()(Code)(Java Doc)
final public Component getCustomEditor()(Code)(Java Doc)
public void init(DesignComponent component)(Code)(Java Doc)
protected void initElements(Collection<PropertyEditorElement> elements)(Code)(Java Doc)
protected boolean isCurrentValueANull()(Code)(Java Doc)
protected boolean isCurrentValueAUserCodeType()(Code)(Java Doc)
public boolean isExecuteInsideWriteTransactionUsed()(Code)(Java Doc)
public void setAsText(String text)(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.