bibliothek.gui.dock.station.toolbar
Class ToolbarDockStationFactory
java.lang.Object
bibliothek.gui.dock.station.toolbar.ToolbarDockStationFactory
- All Implemented Interfaces:
- bibliothek.gui.dock.DockFactory<ToolbarDockStation,bibliothek.gui.dock.perspective.PerspectiveElement,ToolbarDockStationLayout>, bibliothek.gui.dock.layout.DockConverter<ToolbarDockStation,bibliothek.gui.dock.perspective.PerspectiveElement,ToolbarDockStationLayout>
public class ToolbarDockStationFactory
- extends Object
- implements bibliothek.gui.dock.DockFactory<ToolbarDockStation,bibliothek.gui.dock.perspective.PerspectiveElement,ToolbarDockStationLayout>
A factory for reading and writing ToolbarDockStation
s.
- Author:
- Benjamin Sigg
Field Summary |
static String |
ID
the unique, unmodifiable identifier of this factory |
Method Summary |
protected ToolbarDockStation |
createStation()
Creates a new ToolbarDockStation . |
void |
estimateLocations(ToolbarDockStationLayout layout,
bibliothek.gui.dock.layout.LocationEstimationMap children)
|
String |
getID()
|
ToolbarDockStationLayout |
getLayout(ToolbarDockStation element,
Map<bibliothek.gui.Dockable,Integer> children)
|
ToolbarDockStationLayout |
getPerspectiveLayout(bibliothek.gui.dock.perspective.PerspectiveElement element,
Map<bibliothek.gui.dock.perspective.PerspectiveDockable,Integer> children)
|
ToolbarDockStation |
layout(ToolbarDockStationLayout layout,
Map<Integer,bibliothek.gui.Dockable> children,
bibliothek.gui.dock.station.support.PlaceholderStrategy placeholders)
|
ToolbarDockStation |
layout(ToolbarDockStationLayout layout,
bibliothek.gui.dock.station.support.PlaceholderStrategy placeholders)
|
void |
layoutPerspective(bibliothek.gui.dock.perspective.PerspectiveElement perspective,
ToolbarDockStationLayout layout,
Map<Integer,bibliothek.gui.dock.perspective.PerspectiveDockable> children)
|
bibliothek.gui.dock.perspective.PerspectiveElement |
layoutPerspective(ToolbarDockStationLayout layout,
Map<Integer,bibliothek.gui.dock.perspective.PerspectiveDockable> children)
|
ToolbarDockStationLayout |
read(DataInputStream in,
bibliothek.gui.dock.station.support.PlaceholderStrategy placeholders)
|
ToolbarDockStationLayout |
read(bibliothek.util.xml.XElement element,
bibliothek.gui.dock.station.support.PlaceholderStrategy strategy)
|
void |
setLayout(ToolbarDockStation element,
ToolbarDockStationLayout layout,
Map<Integer,bibliothek.gui.Dockable> children,
bibliothek.gui.dock.station.support.PlaceholderStrategy placeholders)
|
void |
setLayout(ToolbarDockStation element,
ToolbarDockStationLayout layout,
bibliothek.gui.dock.station.support.PlaceholderStrategy placeholders)
|
void |
write(ToolbarDockStationLayout layout,
DataOutputStream out)
|
void |
write(ToolbarDockStationLayout layout,
bibliothek.util.xml.XElement element)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ID
public static final String ID
- the unique, unmodifiable identifier of this factory
- See Also:
- Constant Field Values
ToolbarDockStationFactory
public ToolbarDockStationFactory()
getID
public String getID()
- Specified by:
getID
in interface bibliothek.gui.dock.layout.DockConverter<ToolbarDockStation,bibliothek.gui.dock.perspective.PerspectiveElement,ToolbarDockStationLayout>
getLayout
public ToolbarDockStationLayout getLayout(ToolbarDockStation element,
Map<bibliothek.gui.Dockable,Integer> children)
- Specified by:
getLayout
in interface bibliothek.gui.dock.layout.DockConverter<ToolbarDockStation,bibliothek.gui.dock.perspective.PerspectiveElement,ToolbarDockStationLayout>
getPerspectiveLayout
public ToolbarDockStationLayout getPerspectiveLayout(bibliothek.gui.dock.perspective.PerspectiveElement element,
Map<bibliothek.gui.dock.perspective.PerspectiveDockable,Integer> children)
- Specified by:
getPerspectiveLayout
in interface bibliothek.gui.dock.layout.DockConverter<ToolbarDockStation,bibliothek.gui.dock.perspective.PerspectiveElement,ToolbarDockStationLayout>
setLayout
public void setLayout(ToolbarDockStation element,
ToolbarDockStationLayout layout,
Map<Integer,bibliothek.gui.Dockable> children,
bibliothek.gui.dock.station.support.PlaceholderStrategy placeholders)
- Specified by:
setLayout
in interface bibliothek.gui.dock.layout.DockConverter<ToolbarDockStation,bibliothek.gui.dock.perspective.PerspectiveElement,ToolbarDockStationLayout>
setLayout
public void setLayout(ToolbarDockStation element,
ToolbarDockStationLayout layout,
bibliothek.gui.dock.station.support.PlaceholderStrategy placeholders)
- Specified by:
setLayout
in interface bibliothek.gui.dock.layout.DockConverter<ToolbarDockStation,bibliothek.gui.dock.perspective.PerspectiveElement,ToolbarDockStationLayout>
write
public void write(ToolbarDockStationLayout layout,
DataOutputStream out)
throws IOException
- Specified by:
write
in interface bibliothek.gui.dock.layout.DockConverter<ToolbarDockStation,bibliothek.gui.dock.perspective.PerspectiveElement,ToolbarDockStationLayout>
- Throws:
IOException
write
public void write(ToolbarDockStationLayout layout,
bibliothek.util.xml.XElement element)
- Specified by:
write
in interface bibliothek.gui.dock.layout.DockConverter<ToolbarDockStation,bibliothek.gui.dock.perspective.PerspectiveElement,ToolbarDockStationLayout>
read
public ToolbarDockStationLayout read(DataInputStream in,
bibliothek.gui.dock.station.support.PlaceholderStrategy placeholders)
throws IOException
- Specified by:
read
in interface bibliothek.gui.dock.layout.DockConverter<ToolbarDockStation,bibliothek.gui.dock.perspective.PerspectiveElement,ToolbarDockStationLayout>
- Throws:
IOException
read
public ToolbarDockStationLayout read(bibliothek.util.xml.XElement element,
bibliothek.gui.dock.station.support.PlaceholderStrategy strategy)
- Specified by:
read
in interface bibliothek.gui.dock.layout.DockConverter<ToolbarDockStation,bibliothek.gui.dock.perspective.PerspectiveElement,ToolbarDockStationLayout>
estimateLocations
public void estimateLocations(ToolbarDockStationLayout layout,
bibliothek.gui.dock.layout.LocationEstimationMap children)
- Specified by:
estimateLocations
in interface bibliothek.gui.dock.DockFactory<ToolbarDockStation,bibliothek.gui.dock.perspective.PerspectiveElement,ToolbarDockStationLayout>
layout
public ToolbarDockStation layout(ToolbarDockStationLayout layout,
Map<Integer,bibliothek.gui.Dockable> children,
bibliothek.gui.dock.station.support.PlaceholderStrategy placeholders)
- Specified by:
layout
in interface bibliothek.gui.dock.DockFactory<ToolbarDockStation,bibliothek.gui.dock.perspective.PerspectiveElement,ToolbarDockStationLayout>
layout
public ToolbarDockStation layout(ToolbarDockStationLayout layout,
bibliothek.gui.dock.station.support.PlaceholderStrategy placeholders)
- Specified by:
layout
in interface bibliothek.gui.dock.DockFactory<ToolbarDockStation,bibliothek.gui.dock.perspective.PerspectiveElement,ToolbarDockStationLayout>
layoutPerspective
public bibliothek.gui.dock.perspective.PerspectiveElement layoutPerspective(ToolbarDockStationLayout layout,
Map<Integer,bibliothek.gui.dock.perspective.PerspectiveDockable> children)
- Specified by:
layoutPerspective
in interface bibliothek.gui.dock.DockFactory<ToolbarDockStation,bibliothek.gui.dock.perspective.PerspectiveElement,ToolbarDockStationLayout>
layoutPerspective
public void layoutPerspective(bibliothek.gui.dock.perspective.PerspectiveElement perspective,
ToolbarDockStationLayout layout,
Map<Integer,bibliothek.gui.dock.perspective.PerspectiveDockable> children)
- Specified by:
layoutPerspective
in interface bibliothek.gui.dock.DockFactory<ToolbarDockStation,bibliothek.gui.dock.perspective.PerspectiveElement,ToolbarDockStationLayout>
createStation
protected ToolbarDockStation createStation()
- Creates a new
ToolbarDockStation
.
- Returns:
- the new station, not
null