Source Code Cross Referenced for ComponentStateSupport.java in  » Swing-Library » jide-common » com » jidesoft » swing » 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 » jide common » com.jidesoft.swing 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


01:        /*
02:         * @(#)BackgroundSupport.java 1/15/2007
03:         *
04:         * Copyright 2002 - 2007 JIDE Software Inc. All rights reserved.
05:         */
06:
07:        package com.jidesoft.swing;
08:
09:        import java.awt.*;
10:
11:        /**
12:         * A component should implement this interface if it supports various background and foreground
13:         * for different states. Those states are defined in {@link com.jidesoft.plaf.basic.ThemePainter}.
14:         * <p/>
15:         * For components that implements this interface, you can use the methods to change its background
16:         * or foregound for different states such as rollover state, selected state or pressed state. JideButton
17:         * and JideSplitButton are two classes that support this.
18:         * <p/>
19:         * Please note, not all L&Fs support this. Vsnet and Office 2003 style support it but Xerto and Eclipse style don't.
20:         */
21:        public interface ComponentStateSupport {
22:            /**
23:             * Gets the background for different states. The states are defined in ThemePainter as constants.
24:             * Not all states are supported by all components. If the state is not supported or background is never set,
25:             * it will return null.
26:             * <p/>
27:             * Please note, each L&F will have its own way to paint the different backgrounds. This method allows you to customize it
28:             * for each component to use a different background. So if you want the background to be used, don't use a ColorUIResource because
29:             * UIResource is considered as a setting set by the L&F and any L&F can choose to ignore it.
30:             *
31:             * @param state
32:             * @return the background for different states.
33:             */
34:            Color getBackgroundOfState(int state);
35:
36:            /**
37:             * Sets the background for different states.
38:             *
39:             * @param state
40:             * @param color
41:             */
42:            void setBackgroundOfState(int state, Color color);
43:
44:            /**
45:             * Gets the foreground for different states. The states are defined in ThemePainter as constants.
46:             * Not all states are supported by all components. If the state is not supported or foreground is never set,
47:             * it will return null.
48:             * <p/>
49:             * Please note, each L&F will have its own way to paint the different foregrounds. This method allows you to customize it
50:             * for each component to use a different foreground. So if you want the foreground to be used, don't use a ColorUIResource because
51:             * UIResource is considered as a setting set by the L&F and any L&F can choose to ignore it.
52:             *
53:             * @param state
54:             * @return the foreground for different states.
55:             */
56:            Color getForegroundOfState(int state);
57:
58:            /**
59:             * Sets the foreground for different states.
60:             *
61:             * @param state
62:             * @param color
63:             */
64:            void setForegroundOfState(int state, Color color);
65:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.