| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.common.EmptyMultipleCDockableFactory<F>
F - the type of dockable this factory handles.public abstract class EmptyMultipleCDockableFactory<F extends MultipleCDockable>
A factory that does not store anything.
| Constructor Summary | |
|---|---|
EmptyMultipleCDockableFactory()
 | 
|
| Method Summary | |
|---|---|
 MultipleCDockableLayout | 
create()
Creates a new, empty layout.  | 
abstract  F | 
createDockable()
Creates a new instance of the MultipleCDockable that is
 represented by this factory. | 
 boolean | 
match(F dockable,
      MultipleCDockableLayout layout)
Tells whether the meta-data layout belongs to dockable, meaning
 write( dockable ) would produce layout and read( layout )
 would produce dockable. | 
 F | 
read(MultipleCDockableLayout layout)
Creates a MultipleCDockable that gets its layout from layout. | 
 MultipleCDockableLayout | 
write(F dockable)
Collects all the properties of dockable and writes them
 into a new MultipleCDockableLayout. | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public EmptyMultipleCDockableFactory()
| Method Detail | 
|---|
public abstract F createDockable()
MultipleCDockable that is
 represented by this factory.
nullpublic MultipleCDockableLayout create()
MultipleCDockableFactoryread-methods of MultipleCDockableLayout.
create in interface MultipleCDockableFactory<F extends MultipleCDockable,MultipleCDockableLayout>public F read(MultipleCDockableLayout layout)
MultipleCDockableFactoryMultipleCDockable that gets its layout from layout.
read in interface MultipleCDockableFactory<F extends MultipleCDockable,MultipleCDockableLayout>layout - the set of properties that can be used to create the new
 CDockable.
null if the layout can't be readpublic MultipleCDockableLayout write(F dockable)
MultipleCDockableFactorydockable and writes them
 into a new MultipleCDockableLayout.
write in interface MultipleCDockableFactory<F extends MultipleCDockable,MultipleCDockableLayout>dockable - the element whose properties should be collected
public boolean match(F dockable,
                     MultipleCDockableLayout layout)
MultipleCDockableFactorylayout belongs to dockable, meaning
 write( dockable ) would produce layout and read( layout )
 would produce dockable.dockable is shown or known
 to the view and layout has been read from a file. Normally all dockables produced
 by this factory would be removed and replaced by newly created dockables. If however this method
 finds a match between a layout and a dockable, then the dockable can be reused.CVetoClosingListener
 for dockables that just get replaced by a "clone".
match in interface MultipleCDockableFactory<F extends MultipleCDockable,MultipleCDockableLayout>dockable - some element that is shown or known to the viewlayout - some layout that will be applied
true if dockable would be produced by read(layout).
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||