Java Doc for WindowsSpinnerUI.java in  » Swing-Library » jgoodies-looks » com » jgoodies » looks » windows » 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 » Swing Library » jgoodies looks » com.jgoodies.looks.windows 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.jgoodies.looks.windows.WindowsSpinnerUI

WindowsSpinnerUI
final public class WindowsSpinnerUI extends com.sun.java.swing.plaf.windows.WindowsSpinnerUI (Code)
The JGoodies Windows L&F implementation of SpinnerUI. Configures the default editor to adjust font baselines and component bounds, by setting an empty border with the default text insets.
author:
   Karsten Lentzsch
version:
   $Revision: 1.4 $




Method Summary
protected  JComponentcreateEditor()
     This method is called by installUI to get the editor component of the JSpinner.
protected  LayoutManagercreateLayout()
     Create a LayoutManager that manages the editor, nextButton, and previousButton children of the JSpinner.
protected  ComponentcreateNextButton()
     Create a component that will replace the spinner models value with the object returned by spinner.getNextValue.
protected  ComponentcreatePreviousButton()
     Create a component that will replace the spinner models value with the object returned by spinner.getPreviousValue.
public static  ComponentUIcreateUI(JComponent b)
    
protected  voidreplaceEditor(JComponent oldEditor, JComponent newEditor)
     Called by the PropertyChangeListener when the JSpinner editor property changes.



Method Detail
createEditor
protected JComponent createEditor()(Code)
This method is called by installUI to get the editor component of the JSpinner. By default it just returns JSpinner.getEditor(). Subclasses can override createEditor to return a component that contains the spinner's editor or null, if they're going to handle adding the editor to the JSpinner in an installUI override.

Typically this method would be overridden to wrap the editor with a container with a custom border, since one can't assume that the editors border can be set directly.

The replaceEditor method is called when the spinners editor is changed with JSpinner.setEditor. If you've overriden this method, then you'll probably want to override replaceEditor as well. the JSpinners editor JComponent, spinner.getEditor() by default
See Also:   WindowsSpinnerUI.installUI
See Also:   WindowsSpinnerUI.replaceEditor
See Also:   JSpinner.getEditor




createLayout
protected LayoutManager createLayout()(Code)
Create a LayoutManager that manages the editor, nextButton, and previousButton children of the JSpinner. These three children must be added with a constraint that identifies their role: "Editor", "Next", and "Previous". The default layout manager can handle the absence of any of these children. a LayoutManager for the editor, next button, and previousbutton.
See Also:   WindowsSpinnerUI.createNextButton
See Also:   WindowsSpinnerUI.createPreviousButton
See Also:   WindowsSpinnerUI.createEditor



createNextButton
protected Component createNextButton()(Code)
Create a component that will replace the spinner models value with the object returned by spinner.getNextValue. By default the nextButton is a JButton who's ActionListener updates it's JSpinner ancestors model. If a nextButton isn't needed (in a subclass) then override this method to return null. a component that will replace the spinners model with the nextvalue in the sequence, or null
See Also:   WindowsSpinnerUI.installUI
See Also:   WindowsSpinnerUI.createPreviousButton



createPreviousButton
protected Component createPreviousButton()(Code)
Create a component that will replace the spinner models value with the object returned by spinner.getPreviousValue. By default the previousButton is a JButton who's ActionListener updates it's JSpinner ancestors model. If a previousButton isn't needed (in a subclass) then override this method to return null. a component that will replace the spinners model with the nextvalue in the sequence, or null
See Also:   WindowsSpinnerUI.installUI
See Also:   WindowsSpinnerUI.createNextButton



createUI
public static ComponentUI createUI(JComponent b)(Code)



replaceEditor
protected void replaceEditor(JComponent oldEditor, JComponent newEditor)(Code)
Called by the PropertyChangeListener when the JSpinner editor property changes. It's the responsibility of this method to remove the old editor and add the new one. By default this operation is just:
 spinner.remove(oldEditor); spinner.add(newEditor, "Editor");
 
The implementation of replaceEditor should be coordinated with the createEditor method.
See Also:   WindowsSpinnerUI.createEditor
See Also:   WindowsSpinnerUI.createPropertyChangeListener



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.