bibliothek.extension.gui.dock.theme
Class EclipseTheme

java.lang.Object
  extended by bibliothek.gui.dock.themes.BasicTheme
      extended by bibliothek.extension.gui.dock.theme.EclipseTheme
All Implemented Interfaces:
DockTheme

public class EclipseTheme
extends BasicTheme

A theme imitating the look and feel of the Eclipse-IDE.

Author:
Janni Kovacs

Field Summary
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.
 
Constructor Summary
EclipseTheme()
          Creates a new theme
 
Method Summary
protected  MiniButton<BasicButtonModel> createTitleMiniButton(BasicTrigger trigger)
          Creates a MiniButton in a flat look.
 EclipseThemeConnector getThemeConnector(DockController controller)
          Gets the connector which is used for decisions which are normally altered by the client.
 void install(DockController controller)
          Install this theme at controller.
 void uninstall(DockController controller)
          Uninstalls this theme from controller.
 
Methods inherited from class bibliothek.gui.dock.themes.BasicTheme
getCombiner, getDisplayFactory, getMovingImageFactory, getPaint, getTitleFactory, setCombiner, setDisplayerFactory, setMovingImageFactory, setPaint, setStackDockComponentFactory, setTitleFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PAINT_ICONS_WHEN_DESELECTED

public static final PropertyKey<Boolean> PAINT_ICONS_WHEN_DESELECTED
Tells whether icons on tabs that are not selected should be painted or not.


TAB_PAINTER

public static final PropertyKey<TabPainter> TAB_PAINTER
Tells in which way the tabs should be painted.

See Also:
ShapedGradientPainter, RectGradientPainter

THEME_CONNECTOR

public static final PropertyKey<EclipseThemeConnector> THEME_CONNECTOR
Provides additional dockable-wise information used to layout components in the EclipseTheme. Note that changing this property will show full effect only after re-installing the EclipseTheme.

See Also:
DefaultEclipseThemeConnector

TAB_DOCK_TITLE

public static final String TAB_DOCK_TITLE
The id of the 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 );

See Also:
Constant Field Values
Constructor Detail

EclipseTheme

public EclipseTheme()
Creates a new theme

Method Detail

install

public void install(DockController controller)
Description copied from interface: DockTheme
Install this theme at controller. The theme may change any properties it likes.

Specified by:
install in interface DockTheme
Overrides:
install in class BasicTheme
Parameters:
controller - the controller

createTitleMiniButton

protected MiniButton<BasicButtonModel> createTitleMiniButton(BasicTrigger trigger)
Creates a MiniButton in a flat look.

Parameters:
trigger - the trigger to invoke when the button has been clicked
Returns:
the new button

uninstall

public void uninstall(DockController controller)
Description copied from interface: DockTheme
Uninstalls this theme from controller. The theme has to remove all listeners it added.

Specified by:
uninstall in interface DockTheme
Overrides:
uninstall in class BasicTheme
Parameters:
controller - the controller

getThemeConnector

public EclipseThemeConnector getThemeConnector(DockController controller)
Gets the connector which is used for decisions which are normally altered by the client.

Parameters:
controller - the controller in whose realm the decisions will take effect.
Returns:
the connector, either the connector that is installed in the DockProperties under THEME_CONNECTOR or a default-value.