|
Eclipse Platform Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITheme
A theme is a collection of colors, fonts and supporting data that may
be used by plugins to help provide uniform look and feel to their components.
The workbench has a default theme (one whos id has the value IThemeManager.DEFAULT_THEME
)
that defines the initial values for a collection of fonts and colors. Other
themes may extend and override the default theme to provide new values.
Clients may obtain themes via IThemeManager.getTheme(String)
.
This interface is not intended to be implemented or extended by clients.
IWorkbench.getThemeManager()
Method Summary | |
---|---|
void |
addPropertyChangeListener(IPropertyChangeListener listener)
Adds a property listener to the theme. |
void |
dispose()
Dispose of this theme. |
boolean |
getBoolean(java.lang.String key)
Get arbitrary data associated with this theme. |
ColorRegistry |
getColorRegistry()
Return this themes color registry. |
FontRegistry |
getFontRegistry()
Return this themes font registry. |
java.lang.String |
getId()
Returns the id of this theme. |
int |
getInt(java.lang.String key)
Get arbitrary data associated with this theme. |
java.lang.String |
getLabel()
Returns the label of this theme. |
java.lang.String |
getString(java.lang.String key)
Get arbitrary data associated with this theme. |
java.util.Set |
keySet()
Get the set of keys associated with this theme. |
void |
removePropertyChangeListener(IPropertyChangeListener listener)
Removes a property listener from the theme. |
Method Detail |
---|
void addPropertyChangeListener(IPropertyChangeListener listener)
listener
- the listener to addvoid dispose()
boolean getBoolean(java.lang.String key)
key
- the key
false
if none exists
or if the value cannot be treated as a boolean.ColorRegistry getColorRegistry()
FontRegistry getFontRegistry()
java.lang.String getId()
null
.int getInt(java.lang.String key)
key
- the key
0
if none exists or
if the value cannot be treated as an integer.java.lang.String getLabel()
null
.java.lang.String getString(java.lang.String key)
key
- the key
null
if none exists.java.util.Set keySet()
void removePropertyChangeListener(IPropertyChangeListener listener)
listener
- the listener to remove
|
Eclipse Platform Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.