Source Code Cross Referenced for ITheme.java in  » IDE-Eclipse » ui-workbench » org » eclipse » ui » themes » 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 Eclipse » ui workbench » org.eclipse.ui.themes 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*******************************************************************************
002:         * Copyright (c) 2004, 2006 IBM Corporation and others.
003:         * All rights reserved. This program and the accompanying materials
004:         * are made available under the terms of the Eclipse Public License v1.0
005:         * which accompanies this distribution, and is available at
006:         * http://www.eclipse.org/legal/epl-v10.html
007:         *
008:         * Contributors:
009:         *     IBM Corporation - initial API and implementation
010:         *******************************************************************************/package org.eclipse.ui.themes;
011:
012:        import java.util.Set;
013:
014:        import org.eclipse.jface.resource.ColorRegistry;
015:        import org.eclipse.jface.resource.FontRegistry;
016:        import org.eclipse.jface.util.IPropertyChangeListener;
017:
018:        /**
019:         * A theme is a collection of colors, fonts and supporting data that may 
020:         * be used by plugins to help provide uniform look and feel to their components.
021:         * The workbench has a default theme (one whos id has the value {@link org.eclipse.ui.themes.IThemeManager#DEFAULT_THEME}) 
022:         * that defines the initial values for a collection of fonts and colors.  Other
023:         * themes may extend and override the default theme to provide new values.
024:         * 
025:         * <p>
026:         * Clients may obtain themes via {@link org.eclipse.ui.themes.IThemeManager#getTheme(String)}.
027:         * </p>
028:         * 
029:         * <p>
030:         * This interface is not intended to be implemented or extended by clients.
031:         * </p> 
032:         * 
033:         * @see org.eclipse.ui.IWorkbench#getThemeManager()  
034:         * @since 3.0
035:         */
036:        public interface ITheme {
037:
038:            /**
039:             * Adds a property listener to the theme.  Any events fired by the 
040:             * underlying registries will cause an event to be fired.  This event is the
041:             * same event that was fired by the registry.  As such, the "source" 
042:             * attribute of the event will not be this theme, but rather the color or 
043:             * font registry.
044:             * 
045:             * @param listener the listener to add
046:             */
047:            void addPropertyChangeListener(IPropertyChangeListener listener);
048:
049:            /**
050:             * Dispose of this theme.  This method is called by the workbench when
051:             * appropriate and should never be called by a user.
052:             */
053:            void dispose();
054:
055:            /**
056:             * Get arbitrary data associated with this theme.
057:             *
058:             * @param key the key
059:             * @return the data, or the default value <code>false</code> if none exists 
060:             * or if the value cannot be treated as a boolean.
061:             */
062:            boolean getBoolean(String key);
063:
064:            /**
065:             * Return this themes color registry.
066:             * 
067:             * @return this themes color registry
068:             */
069:            ColorRegistry getColorRegistry();
070:
071:            /**
072:             * Return this themes font registry.
073:             * 
074:             * @return this themes font registry
075:             */
076:            FontRegistry getFontRegistry();
077:
078:            /**
079:             * Returns the id of this theme.
080:             * 
081:             * @return the id of this theme.  Guaranteed not to be <code>null</code>.
082:             */
083:            String getId();
084:
085:            /**
086:             * Get arbitrary data associated with this theme.
087:             *
088:             * @param key the key
089:             * @return the data, or the default value <code>0</code> if none exists or 
090:             * if the value cannot be treated as an integer.
091:             */
092:            public int getInt(String key);
093:
094:            /**
095:             * Returns the label of this theme.
096:             * 
097:             * @return the label of this theme.  Guaranteed not be <code>null</code>.
098:             */
099:            String getLabel();
100:
101:            /**
102:             * Get arbitrary data associated with this theme.
103:             *
104:             * @param key the key
105:             * @return the data, or <code>null</code> if none exists.
106:             */
107:            String getString(String key);
108:
109:            /**
110:             * Get the set of keys associated with this theme.
111:             *  
112:             * @return the Set of keys
113:             */
114:            Set keySet();
115:
116:            /**
117:             * Removes a property listener from the theme.
118:             * 
119:             * @param listener the listener to remove
120:             */
121:            void removePropertyChangeListener(IPropertyChangeListener listener);
122:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.