bibliothek.extension.gui.dock.theme.eclipse
Class EclipseDockTitleFactory

java.lang.Object
  extended by bibliothek.extension.gui.dock.theme.eclipse.EclipseDockTitleFactory
All Implemented Interfaces:
DockTitleFactory

public class EclipseDockTitleFactory
extends Object
implements DockTitleFactory

A DockTitleFactory that calls another factory but only if the method EclipseThemeConnector.getTitleBarKind(Dockable) returns EclipseThemeConnector.TitleBar.BASIC for the Dockable whose title should be created.

Author:
Benjamin Sigg

Constructor Summary
EclipseDockTitleFactory(EclipseTheme theme, DockTitleFactory factory)
          Creates a new factory
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EclipseDockTitleFactory

public EclipseDockTitleFactory(EclipseTheme theme,
                               DockTitleFactory factory)
Creates a new factory

Parameters:
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 necessary
Method Detail

install

public void install(DockTitleRequest request)
Description copied from interface: DockTitleFactory
Informs this factory that it might need to create a DockTitle for request.

Specified by:
install in interface DockTitleFactory
Parameters:
request - the new request

uninstall

public void uninstall(DockTitleRequest request)
Description copied from interface: DockTitleFactory
Informs this factory that it no longer requires to provide any titles for request.

Specified by:
uninstall in interface DockTitleFactory
Parameters:
request - the request that is no longer managed by this factory

request

public void request(DockTitleRequest request)
Description copied from interface: DockTitleFactory
Asks this factory to provide a DockTitle for request, this method should call DockTitleRequest.answer(DockTitle). Note that this method may be called for requests that are not installed!

Specified by:
request in interface DockTitleFactory
Parameters:
request - the request to answer