public class FlatDisplayerFactory extends java.lang.Object implements DisplayerFactory
DockableDisplayer
. This
factory either sets the border of its created displayers
to none or to a FlatBorder
.DISPLAYER_EXTENSION, DISPLAYER_EXTENSION_ID
Constructor and Description |
---|
FlatDisplayerFactory(boolean border)
Creates a new factory
|
Modifier and Type | Method and Description |
---|---|
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) . |
public FlatDisplayerFactory(boolean border)
border
- Whether the displayers should have a border or notpublic void request(DisplayerRequest request)
DisplayerFactory
DockableDisplayer
, this method needs to call
DisplayerRequest.answer(DockableDisplayer)
once the new displayer is created.DisplayerRequest.getParent()
, its content
must be DisplayerRequest.getTarget()
and DisplayerRequest.getTitle()
.DockableDisplayer
for the given request,
it can just return
and not call DisplayerRequest.answer(DockableDisplayer)
.request
in interface DisplayerFactory
request
- detailed information about who is going to show the displayer, and callback to
set the new displayer