“The client is responsible to store the contents of any single-dockable.”
in my case I have 2 frameworks: guts and docking-frames,
which both provide and need persistence;
quiestion:
what is proper demarcation/separation of what is stored by docking-frames, and what is not?
in other, words, in dockable you have a pane:
public class DefaultDockable extends AbstractDockable {
/** the content pane */
private JPanel pane = new JPanel( new BorderLayout() );
so:
does docking-frames map CLocation to this pane? or am I responcible for both pane and below?
or, I can re-phrase the question like this:
how can I properly iterate over all the “stuff” that “grows” from CControl,
and find only those swing components I am responcible to persist?
finally:
should I pay attention only to things inside <? extends AbstractDockable>
or are there some other components inside, say <? extends AbstractDockStation>
which I am also responsible?
History. In the younger versions there was no factory for SingleCDockables. It was first introduced as kind of a backup factory, and it kept that name.
I fear yes. It would not be the first time, the framework was never 100% backwards compatible (although I wished it would).
As I’m getting a bit better organized I intend to do such changes more slowly: e.g. in version 1.1.0 an interface will be deprecated and empty, its content moved to the new replacing interface (the old one extends the new one, to keep old code running). And in 1.1.1 the old interface is removed completely. That is also the way I’ll exchange some of the method names.
when I run docking-frames-demo-layouts, then make bunch of layouts, save them
and then keep doing restore on one of them repeadedly,
the dockable that gets the focus as a result changes all the time
and seems to be random - which one it its;
just curious how did you manage to get this in a deterministic app?
Hm, that is a good question. At least I can confirm that the focused Dockable is not stored anywhere. My best bet is, that the last Dockable that was moved around gets the focus.