public class BasicDisplayerFactory extends Object implements DisplayerFactory
DisplayerFactory that creates DockableDisplayer with
no special settings.DISPLAYER_EXTENSION, DISPLAYER_EXTENSION_ID| Constructor and Description |
|---|
BasicDisplayerFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected BasicDockableDisplayer |
create(DockStation station,
Dockable dockable,
DockTitle title,
DockableDisplayer.Location location)
Creates a new displayer.
|
DockableDisplayer.Location |
getDockableLocation()
Gets the location where the
DockTitle will be shown on the
DockableDisplayer, if a Dockable is used as child. |
DockableDisplayer.Location |
getStationLocation()
Gets the location where the
DockTitle will be shown on the
DockableDisplayer, if a DockStation is used as child. |
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). |
void |
setDockableLocation(DockableDisplayer.Location dockableLocation)
Sets the location where the
DockTitle will be shown on a
DockableDisplayer if a Dockable is used as child. |
void |
setStationLocation(DockableDisplayer.Location stationLocation)
Sets the location where the
DockTitle will be shown on a
DockableDisplayer if a DockStation is used as child. |
public void request(DisplayerRequest request)
DisplayerFactoryDockableDisplayer, 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 DisplayerFactoryrequest - detailed information about who is going to show the displayer, and callback to
set the new displayerprotected BasicDockableDisplayer create(DockStation station, Dockable dockable, DockTitle title, DockableDisplayer.Location location)
station - the station for which this displayer is neededdockable - the element that is shown on the displayertitle - the title of the displayerlocation - the location of titlepublic DockableDisplayer.Location getDockableLocation()
DockTitle will be shown on the
DockableDisplayer, if a Dockable is used as child.setDockableLocation(bibliothek.gui.dock.station.DockableDisplayer.Location)public void setDockableLocation(DockableDisplayer.Location dockableLocation)
DockTitle will be shown on a
DockableDisplayer if a Dockable is used as child.dockableLocation - the locationpublic DockableDisplayer.Location getStationLocation()
DockTitle will be shown on the
DockableDisplayer, if a DockStation is used as child.setDockableLocation(bibliothek.gui.dock.station.DockableDisplayer.Location)public void setStationLocation(DockableDisplayer.Location stationLocation)
DockTitle will be shown on a
DockableDisplayer if a DockStation is used as child.stationLocation - the locationCopyright © 2017 Docking Frames. All rights reserved.