bibliothek.gui.dock.title
Class ControllerTitleFactory

java.lang.Object
  extended by bibliothek.gui.dock.title.ControllerTitleFactory
All Implemented Interfaces:
DockTitleFactory

public class ControllerTitleFactory
extends java.lang.Object
implements DockTitleFactory

This factory delegates every call to the methods to the factory provided by the theme of the involved controller

Author:
Benjamin Sigg

Field Summary
static ControllerTitleFactory INSTANCE
          An instance of this factory.
 
Constructor Summary
ControllerTitleFactory()
           
 
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
 

Field Detail

INSTANCE

public static final ControllerTitleFactory INSTANCE
An instance of this factory.
Note: it is safe to use install(DockTitleRequest) and uninstall(DockTitleRequest) on this singleton, the call will be forwarded to the DockController of the calling DockTitleRequest.

Constructor Detail

ControllerTitleFactory

public ControllerTitleFactory()
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

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

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