public class EclipseDockTitleFactory extends Object implements DockTitleFactory
DockTitleFactory
that calls another factory but only
if the method EclipseThemeConnector.getTitleBarKind(bibliothek.gui.DockStation, Dockable)
returns
EclipseThemeConnector.TitleBar.BASIC
for the Dockable
whose title should be
created.Constructor and Description |
---|
EclipseDockTitleFactory(EclipseTheme theme,
DockTitleFactory factory)
Creates a new factory
|
Modifier and Type | Method and Description |
---|---|
void |
install(DockTitleRequest request)
Informs this factory that it might need to create a
DockTitle for
request . |
void |
request(DockTitleRequest request)
Asks this factory to provide a
DockTitle for request ,
this method should call DockTitleRequest.answer(DockTitle) . |
void |
uninstall(DockTitleRequest request)
Informs this factory that it no longer requires to provide any titles
for
request . |
public EclipseDockTitleFactory(EclipseTheme theme, DockTitleFactory factory)
theme
- the theme whose EclipseThemeConnector
is used
to determine whether to create a title for a Dockable
or not.factory
- the factory which creates title when necessarypublic void install(DockTitleRequest request)
DockTitleFactory
DockTitle
for
request
.install
in interface DockTitleFactory
request
- the new requestpublic void uninstall(DockTitleRequest request)
DockTitleFactory
request
.uninstall
in interface DockTitleFactory
request
- the request that is no longer managed by this factorypublic void request(DockTitleRequest request)
DockTitleFactory
DockTitle
for request
,
this method should call DockTitleRequest.answer(DockTitle)
. Note
that this method may be called for requests that are not installed!request
in interface DockTitleFactory
request
- the request to answer