bibliothek.extension.gui.dock.theme.flat
Class FlatDisplayerFactory
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FlatDisplayerFactory
public FlatDisplayerFactory(boolean border)
- Creates a new factory
- Parameters:
border - Whether the displayers should have a border or not
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