bibliothek.extension.gui.dock.theme.flat
Class FlatDisplayerFactory

java.lang.Object
  extended by bibliothek.extension.gui.dock.theme.flat.FlatDisplayerFactory
All Implemented Interfaces:
DisplayerFactory

public class FlatDisplayerFactory
extends Object
implements DisplayerFactory

A factory for instances of DockableDisplayer. This factory either sets the border of its created displayers to none or to a FlatBorder.

Author:
Benjamin Sigg

Field Summary
 
Fields inherited from interface bibliothek.gui.dock.station.DisplayerFactory
DISPLAYER_EXTENSION, DISPLAYER_EXTENSION_ID
 
Constructor Summary
FlatDisplayerFactory(boolean border)
          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

FlatDisplayerFactory

public FlatDisplayerFactory(boolean border)
Creates a new factory

Parameters:
border - Whether the displayers should have a border or not
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