bibliothek.gui.dock.themes
Class ThemeDisplayerFactory

java.lang.Object
  extended by bibliothek.gui.dock.themes.ThemeDisplayerFactory
All Implemented Interfaces:
DisplayerFactory

public class ThemeDisplayerFactory
extends Object
implements DisplayerFactory

A DisplayerFactory that forwards all calls to the DisplayerFactory of the current DockTheme.

Author:
Benjamin Sigg

Field Summary
 
Fields inherited from interface bibliothek.gui.dock.station.DisplayerFactory
DISPLAYER_EXTENSION, DISPLAYER_EXTENSION_ID
 
Constructor Summary
ThemeDisplayerFactory(DockController controller)
          Creates a new factory.
 
Method Summary
 void request(DisplayerRequest request)
          Creates a new DockableDisplayer, this method needs to call DisplayerRequest.answer(DockableDisplayer) once the new displayer is created.
The new displayer will be shown on DisplayerRequest.getParent(), its content must be DisplayerRequest.getTarget() and DisplayerRequest.getTitle().
If this factory does not want to provide a DockableDisplayer for the given request, it can just return and not call DisplayerRequest.answer(DockableDisplayer).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThemeDisplayerFactory

public ThemeDisplayerFactory(DockController controller)
Creates a new factory.

Parameters:
controller - the owner of this factory
Method Detail

request

public void request(DisplayerRequest request)
Description copied from interface: DisplayerFactory
Creates a new DockableDisplayer, this method needs to call DisplayerRequest.answer(DockableDisplayer) once the new displayer is created.
The new displayer will be shown on DisplayerRequest.getParent(), its content must be DisplayerRequest.getTarget() and DisplayerRequest.getTitle().
If this factory does not want to provide a DockableDisplayer for the given request, it can just return and not call DisplayerRequest.answer(DockableDisplayer).

Specified by:
request in interface DisplayerFactory
Parameters:
request - detailed information about who is going to show the displayer, and callback to set the new displayer