F - the kind of dockable that is managed by this factoryL - the kind of meta-data this factory reads and writes about Fpublic interface MultipleCDockableFactory<F extends MultipleCDockable,L extends MultipleCDockableLayout>
MultipleCDockables. This factory
converts a MultipleCDockable in a MultipleCDockableLayout and
then writes the layout in various forms (like xml).| Modifier and Type | Method and Description |
|---|---|
L |
create()
Creates a new, empty layout.
|
boolean |
match(F dockable,
L layout)
Tells whether the meta-data
layout belongs to dockable, meaning
write( dockable ) would produce layout and read( layout )
would produce dockable. |
F |
read(L layout)
Creates a
MultipleCDockable that gets its layout from layout. |
L |
write(F dockable)
Collects all the properties of
dockable and writes them
into a new MultipleCDockableLayout. |
L write(F dockable)
dockable and writes them
into a new MultipleCDockableLayout.dockable - the element whose properties should be collectedF read(L layout)
MultipleCDockable that gets its layout from layout.layout - the set of properties that can be used to create the new
CDockable.null if the layout can't be readboolean match(F dockable, L layout)
layout 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".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).L create()
read-methods of MultipleCDockableLayout.Copyright © 2018. All rights reserved.