|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.themes.BasicTheme
bibliothek.extension.gui.dock.theme.EclipseTheme
public class EclipseTheme
A theme imitating the look and feel of the Eclipse-IDE.
| Field Summary | |
|---|---|
static PropertyKey<ColorScheme> |
ECLIPSE_COLOR_SCHEME
Access to the ColorScheme used for this theme |
static PropertyKey<Boolean> |
PAINT_ICONS_WHEN_DESELECTED
Tells whether icons on tabs that are not selected should be painted or not. |
static String |
TAB_DOCK_TITLE
The id of the DockTitleVersion that is intended to create
DockTitles used as tabs by the DockTitleTab. |
static PropertyKey<TabPainter> |
TAB_PAINTER
Tells in which way the tabs should be painted. |
static PropertyKey<EclipseThemeConnector> |
THEME_CONNECTOR
Provides additional dockable-wise information used to layout components in the EclipseTheme. |
| Fields inherited from class bibliothek.gui.dock.themes.BasicTheme |
|---|
BASIC_COLOR_SCHEME |
| Constructor Summary | |
|---|---|
EclipseTheme()
Creates a new theme |
|
| Method Summary | |
|---|---|
EclipseThemeConnector |
getThemeConnector(DockController controller)
Gets the connector which is used for decisions which are normally altered by the client. |
void |
install(DockController controller)
Installs the basic items of this theme, ignoring any DockThemeExtension. |
void |
uninstall(DockController controller)
Uninstalls this theme from controller. |
protected void |
updateColors()
Called when the the colors of the ColorManager have to be updated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final PropertyKey<Boolean> PAINT_ICONS_WHEN_DESELECTED
public static final PropertyKey<TabPainter> TAB_PAINTER
ArchGradientPainter,
RectGradientPainterpublic static final PropertyKey<EclipseThemeConnector> THEME_CONNECTOR
DefaultEclipseThemeConnectorpublic static final PropertyKey<ColorScheme> ECLIPSE_COLOR_SCHEME
ColorScheme used for this theme
public static final String TAB_DOCK_TITLE
DockTitleVersion that is intended to create
DockTitles used as tabs by the DockTitleTab. Clients
which want to use DockTitles as tabs, should exchange the
TabPainter by executing this code:controller.getProperties().set( EclipseTheme.TAB_PAINTER, DockTitleTab.FACTORY );
| Constructor Detail |
|---|
public EclipseTheme()
| Method Detail |
|---|
public void install(DockController controller)
BasicThemeDockThemeExtension.
install in class BasicThemecontroller - the new owner of this themeprotected void updateColors()
BasicThemeColorManager have to be updated.
Subclasses should override this method and explicitly call
updateColor and
updateColorProvider
for all Colors and UIBridges that will be used by
this theme. Since ColorSchemes can create new colors and providers
lazily, just reading out all colors will ensure that all colors
and providers exists and are registered at the ColorManagers.
updateColors in class BasicThemepublic void uninstall(DockController controller)
DockThemecontroller. The theme
has to remove all listeners it added.
uninstall in interface DockThemeuninstall in class BasicThemecontroller - the controllerpublic EclipseThemeConnector getThemeConnector(DockController controller)
controller - the controller in whose realm the decisions will take
effect.
DockProperties under THEME_CONNECTOR or
a default-value.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||