F - the type of dockable this factory handles.public abstract class EmptyMultipleCDockableFactory<F extends MultipleCDockable> extends Object implements MultipleCDockableFactory<F,MultipleCDockableLayout>
| Constructor and Description |
|---|
EmptyMultipleCDockableFactory() |
| Modifier and Type | Method and Description |
|---|---|
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. |
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 collectedpublic 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 appliedtrue if dockable would be produced by read(layout).Copyright © 2018. All rights reserved.