Java Doc for TextField.java in  » Testing » abbot-1.0.1 » abbot » editor » widgets » 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 » abbot 1.0.1 » abbot.editor.widgets 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.swing.JTextField
   abbot.editor.widgets.TextField

TextField
public class TextField extends JTextField (Code)
A better text field with some useful features.
  • Fires when focus leaves the component.
  • Selects all the contents when the action is fired to indicate the contents were accepted.
  • Until the user causes a notify-field-accept (usually with the Enter key), the contents may be reverted to the original value by invoking the field-revert action (bound to ESC by default).
  • Actions are fired on all edits.
  • The field has a fixed height.
  • Pressing Enter when the field is blank will insert a default value, if one has been provided.

This functionality may be applied to any JTextField with the TextField.decorate(JTextField) method.


Inner Class :public static class Decorator

Field Summary
final public static  StringACTION_FOCUS_LOST
     Action command when the field loses focus.
final public static  StringACTION_TEXT_CHANGED
     Action command when the text changes.
final public static  StringACTION_TEXT_INSERTED
     Action command when text is inserted.
final public static  StringACTION_TEXT_REMOVED
     Action command when text is removed.
final public static  StringACTION_TEXT_REVERTED
     Action command when the field reverts to its original value.

Constructor Summary
public  TextField(String value, int columns)
    
public  TextField(String value, String defaultValue, int columns)
    
public  TextField(String value)
    
public  TextField(String value, String defaultValue)
    

Method Summary
public static  voiddecorate(JTextField tf)
    
public static  voiddecorate(JTextField tf, String defaultValue)
    
protected  voidfireActionPerformed()
    
public  DimensiongetMaximumSize()
     Don't allow text field to resize height.
public  DimensiongetMinimumSize()
     Don't allow text field to resize height.
public static  booleanisDocumentAction(String action)
    
public  voidsetDefaultValue(String value)
     The default value will be inserted when the field is blank and ENTER is pressed.
public  voidsetText(String text)
    

Field Detail
ACTION_FOCUS_LOST
final public static String ACTION_FOCUS_LOST(Code)
Action command when the field loses focus.



ACTION_TEXT_CHANGED
final public static String ACTION_TEXT_CHANGED(Code)
Action command when the text changes.



ACTION_TEXT_INSERTED
final public static String ACTION_TEXT_INSERTED(Code)
Action command when text is inserted.



ACTION_TEXT_REMOVED
final public static String ACTION_TEXT_REMOVED(Code)
Action command when text is removed.



ACTION_TEXT_REVERTED
final public static String ACTION_TEXT_REVERTED(Code)
Action command when the field reverts to its original value. The action is equivalent to typing the original text and hitting "enter".




Constructor Detail
TextField
public TextField(String value, int columns)(Code)



TextField
public TextField(String value, String defaultValue, int columns)(Code)



TextField
public TextField(String value)(Code)



TextField
public TextField(String value, String defaultValue)(Code)




Method Detail
decorate
public static void decorate(JTextField tf)(Code)



decorate
public static void decorate(JTextField tf, String defaultValue)(Code)



fireActionPerformed
protected void fireActionPerformed()(Code)



getMaximumSize
public Dimension getMaximumSize()(Code)
Don't allow text field to resize height.



getMinimumSize
public Dimension getMinimumSize()(Code)
Don't allow text field to resize height.



isDocumentAction
public static boolean isDocumentAction(String action)(Code)



setDefaultValue
public void setDefaultValue(String value)(Code)
The default value will be inserted when the field is blank and ENTER is pressed. This behavior is disabled if the value is null.



setText
public void setText(String text)(Code)



Fields inherited from javax.swing.JTextField
final public static String notifyAction(Code)(Java Doc)

Methods inherited from javax.swing.JTextField
protected void actionPropertyChanged(Action action, String propertyName)(Code)(Java Doc)
public synchronized void addActionListener(ActionListener l)(Code)(Java Doc)
protected void configurePropertiesFromAction(Action a)(Code)(Java Doc)
protected PropertyChangeListener createActionPropertyChangeListener(Action a)(Code)(Java Doc)
protected Document createDefaultModel()(Code)(Java Doc)
protected void fireActionPerformed()(Code)(Java Doc)
public AccessibleContext getAccessibleContext()(Code)(Java Doc)
public Action getAction()(Code)(Java Doc)
public synchronized ActionListener[] getActionListeners()(Code)(Java Doc)
public Action[] getActions()(Code)(Java Doc)
protected int getColumnWidth()(Code)(Java Doc)
public int getColumns()(Code)(Java Doc)
public int getHorizontalAlignment()(Code)(Java Doc)
public BoundedRangeModel getHorizontalVisibility()(Code)(Java Doc)
public Dimension getPreferredSize()(Code)(Java Doc)
public int getScrollOffset()(Code)(Java Doc)
public String getUIClassID()(Code)(Java Doc)
public boolean isValidateRoot()(Code)(Java Doc)
protected String paramString()(Code)(Java Doc)
public void postActionEvent()(Code)(Java Doc)
public synchronized void removeActionListener(ActionListener l)(Code)(Java Doc)
public void scrollRectToVisible(Rectangle r)(Code)(Java Doc)
public void setAction(Action a)(Code)(Java Doc)
public void setActionCommand(String command)(Code)(Java Doc)
public void setColumns(int columns)(Code)(Java Doc)
public void setDocument(Document doc)(Code)(Java Doc)
public void setFont(Font f)(Code)(Java Doc)
public void setHorizontalAlignment(int alignment)(Code)(Java Doc)
public void setScrollOffset(int scrollOffset)(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.