bibliothek.gui.dock.station.toolbar
Class DummyDockFactory<D extends bibliothek.gui.Dockable>

java.lang.Object
  extended by bibliothek.gui.dock.station.toolbar.DummyDockFactory<D>
All Implemented Interfaces:
bibliothek.gui.dock.DockFactory<D,bibliothek.gui.dock.perspective.PerspectiveElement,Object>, bibliothek.gui.dock.layout.DockConverter<D,bibliothek.gui.dock.perspective.PerspectiveElement,Object>
Direct Known Subclasses:
ToolbarItemDockableFactory

public abstract class DummyDockFactory<D extends bibliothek.gui.Dockable>
extends Object
implements bibliothek.gui.dock.DockFactory<D,bibliothek.gui.dock.perspective.PerspectiveElement,Object>

A factory for reading and writing some kind of Dockable which can never be created automatically, and which does not store any kind of information.

Author:
Benjamin Sigg

Constructor Summary
DummyDockFactory()
           
 
Method Summary
 void estimateLocations(Object layout, bibliothek.gui.dock.layout.LocationEstimationMap children)
           
 Object getLayout(D element, Map<bibliothek.gui.Dockable,Integer> children)
           
 Object getPerspectiveLayout(bibliothek.gui.dock.perspective.PerspectiveElement element, Map<bibliothek.gui.dock.perspective.PerspectiveDockable,Integer> children)
           
 D layout(Object layout, Map<Integer,bibliothek.gui.Dockable> children, bibliothek.gui.dock.station.support.PlaceholderStrategy placeholders)
           
 D layout(Object layout, bibliothek.gui.dock.station.support.PlaceholderStrategy placeholders)
           
 bibliothek.gui.dock.perspective.PerspectiveElement layoutPerspective(Object layout, Map<Integer,bibliothek.gui.dock.perspective.PerspectiveDockable> children)
           
 void layoutPerspective(bibliothek.gui.dock.perspective.PerspectiveElement perspective, Object layout, Map<Integer,bibliothek.gui.dock.perspective.PerspectiveDockable> children)
           
 Object read(DataInputStream in, bibliothek.gui.dock.station.support.PlaceholderStrategy placeholders)
           
 Object read(bibliothek.util.xml.XElement element, bibliothek.gui.dock.station.support.PlaceholderStrategy placeholders)
           
 void setLayout(D element, Object layout, Map<Integer,bibliothek.gui.Dockable> children, bibliothek.gui.dock.station.support.PlaceholderStrategy placeholders)
           
 void setLayout(D element, Object layout, bibliothek.gui.dock.station.support.PlaceholderStrategy placeholders)
           
 void write(Object layout, DataOutputStream out)
           
 void write(Object layout, bibliothek.util.xml.XElement element)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface bibliothek.gui.dock.layout.DockConverter
getID
 

Constructor Detail

DummyDockFactory

public DummyDockFactory()
Method Detail

getLayout

public Object getLayout(D element,
                        Map<bibliothek.gui.Dockable,Integer> children)
Specified by:
getLayout in interface bibliothek.gui.dock.layout.DockConverter<D extends bibliothek.gui.Dockable,bibliothek.gui.dock.perspective.PerspectiveElement,Object>

getPerspectiveLayout

public Object 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<D extends bibliothek.gui.Dockable,bibliothek.gui.dock.perspective.PerspectiveElement,Object>

setLayout

public void setLayout(D element,
                      Object layout,
                      Map<Integer,bibliothek.gui.Dockable> children,
                      bibliothek.gui.dock.station.support.PlaceholderStrategy placeholders)
Specified by:
setLayout in interface bibliothek.gui.dock.layout.DockConverter<D extends bibliothek.gui.Dockable,bibliothek.gui.dock.perspective.PerspectiveElement,Object>

setLayout

public void setLayout(D element,
                      Object layout,
                      bibliothek.gui.dock.station.support.PlaceholderStrategy placeholders)
Specified by:
setLayout in interface bibliothek.gui.dock.layout.DockConverter<D extends bibliothek.gui.Dockable,bibliothek.gui.dock.perspective.PerspectiveElement,Object>

write

public void write(Object layout,
                  DataOutputStream out)
           throws IOException
Specified by:
write in interface bibliothek.gui.dock.layout.DockConverter<D extends bibliothek.gui.Dockable,bibliothek.gui.dock.perspective.PerspectiveElement,Object>
Throws:
IOException

write

public void write(Object layout,
                  bibliothek.util.xml.XElement element)
Specified by:
write in interface bibliothek.gui.dock.layout.DockConverter<D extends bibliothek.gui.Dockable,bibliothek.gui.dock.perspective.PerspectiveElement,Object>

read

public Object read(DataInputStream in,
                   bibliothek.gui.dock.station.support.PlaceholderStrategy placeholders)
            throws IOException
Specified by:
read in interface bibliothek.gui.dock.layout.DockConverter<D extends bibliothek.gui.Dockable,bibliothek.gui.dock.perspective.PerspectiveElement,Object>
Throws:
IOException

read

public Object read(bibliothek.util.xml.XElement element,
                   bibliothek.gui.dock.station.support.PlaceholderStrategy placeholders)
Specified by:
read in interface bibliothek.gui.dock.layout.DockConverter<D extends bibliothek.gui.Dockable,bibliothek.gui.dock.perspective.PerspectiveElement,Object>

estimateLocations

public void estimateLocations(Object layout,
                              bibliothek.gui.dock.layout.LocationEstimationMap children)
Specified by:
estimateLocations in interface bibliothek.gui.dock.DockFactory<D extends bibliothek.gui.Dockable,bibliothek.gui.dock.perspective.PerspectiveElement,Object>

layout

public D layout(Object layout,
                Map<Integer,bibliothek.gui.Dockable> children,
                bibliothek.gui.dock.station.support.PlaceholderStrategy placeholders)
Specified by:
layout in interface bibliothek.gui.dock.DockFactory<D extends bibliothek.gui.Dockable,bibliothek.gui.dock.perspective.PerspectiveElement,Object>

layout

public D layout(Object layout,
                bibliothek.gui.dock.station.support.PlaceholderStrategy placeholders)
Specified by:
layout in interface bibliothek.gui.dock.DockFactory<D extends bibliothek.gui.Dockable,bibliothek.gui.dock.perspective.PerspectiveElement,Object>

layoutPerspective

public bibliothek.gui.dock.perspective.PerspectiveElement layoutPerspective(Object layout,
                                                                            Map<Integer,bibliothek.gui.dock.perspective.PerspectiveDockable> children)
Specified by:
layoutPerspective in interface bibliothek.gui.dock.DockFactory<D extends bibliothek.gui.Dockable,bibliothek.gui.dock.perspective.PerspectiveElement,Object>

layoutPerspective

public void layoutPerspective(bibliothek.gui.dock.perspective.PerspectiveElement perspective,
                              Object layout,
                              Map<Integer,bibliothek.gui.dock.perspective.PerspectiveDockable> children)
Specified by:
layoutPerspective in interface bibliothek.gui.dock.DockFactory<D extends bibliothek.gui.Dockable,bibliothek.gui.dock.perspective.PerspectiveElement,Object>