|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.themes.BasicTheme bibliothek.extension.gui.dock.theme.FlatTheme
public class FlatTheme
A theme
that uses very few borders.
Field Summary | |
---|---|
static PropertyKey<ColorScheme> |
FLAT_COLOR_SCHEME
the key to set the ColorScheme of this theme |
protected DisplayerFactory |
splitDisplayFactory
A special factory for the SplitDockStation |
Fields inherited from class bibliothek.gui.dock.themes.BasicTheme |
---|
BASIC_COLOR_SCHEME |
Constructor Summary | |
---|---|
FlatTheme()
Creates a new theme |
Method Summary | |
---|---|
protected MiniButton<BasicButtonModel> |
createTitleMiniButton(BasicTrigger trigger)
Creates a MiniButton in a flat look. |
DisplayerFactory |
getDisplayFactory(DockStation station)
Gets a displayer factory for station . |
DisplayerFactory |
getSplitDisplayFactory()
Gets the special factory for the SplitDockStation . |
void |
install(DockController controller)
Installs the basic items of this theme, ignoring any DockThemeExtension . |
void |
setSplitDisplayFactory(DisplayerFactory splitDisplayFactory)
Sets the DisplayerFactory that is used for the SplitDockStation . |
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 |
---|
protected DisplayerFactory splitDisplayFactory
SplitDockStation
public static final PropertyKey<ColorScheme> FLAT_COLOR_SCHEME
ColorScheme
of this theme
Constructor Detail |
---|
public FlatTheme()
Method Detail |
---|
public void install(DockController controller)
BasicTheme
DockThemeExtension
.
install
in class BasicTheme
controller
- the new owner of this themeprotected MiniButton<BasicButtonModel> createTitleMiniButton(BasicTrigger trigger)
MiniButton
in a flat look.
trigger
- the trigger to invoke when the button has been clicked
public void uninstall(DockController controller)
DockTheme
controller
. The theme
has to remove all listeners it added.
uninstall
in interface DockTheme
uninstall
in class BasicTheme
controller
- the controllerprotected void updateColors()
BasicTheme
ColorManager
have to be updated.
Subclasses should override this method and explicitly call
updateColor
and
updateColorProvider
for all Color
s and UIBridge
s that will be used by
this theme. Since ColorScheme
s 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 ColorManager
s.
updateColors
in class BasicTheme
public void setSplitDisplayFactory(DisplayerFactory splitDisplayFactory)
DisplayerFactory
that is used for the SplitDockStation
.
Normally all displayers do not have any border, but the displayers on
a SplitDockStation may need a small border.
splitDisplayFactory
- the factorypublic DisplayerFactory getSplitDisplayFactory()
SplitDockStation
.
setSplitDisplayFactory(DisplayerFactory)
public DisplayerFactory getDisplayFactory(DockStation station)
DockTheme
station
.
getDisplayFactory
in interface DockTheme
getDisplayFactory
in class BasicTheme
station
- the station on which the created DockableDisplayer
is shown
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |