|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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>
A factory that can create and store MultipleCDockables. This factory
converts a MultipleCDockable in a MultipleCDockableLayout and
then writes the layout in various forms (like xml).
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
L write(F dockable)
dockable and writes them
into a new MultipleCDockableLayout.
dockable - the element whose properties should be collected
F 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 read
boolean 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 applied
true if dockable would be produced by read(layout).L create()
read-methods of MultipleCDockableLayout.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||