|
From: Rogan D. <ro...@da...> - 2007-09-06 12:06:52
|
Jan Hoskens wrote:
> Sounds good, though I haven't yet used a docking framework.
>
> I guess a user can choose the needed framework and the dependencies are
> listed optional (user has to choose one in its own dependencies)?
>
> Thanks for looking at this. I hope I can find some time to finish some
> of my rcp changes that I had to delay (yet again).
>
> Regards,
> Jan
Yes, that would be the idea.
Rogan
>
> On Wed, 2007-09-05 at 18:31 +0200, Rogan Dawes wrote:
>> Hi folks,
>>
>> I am looking at refactoring the docking code to include some generic
>> interfaces and supporting classes, along with specialised classes for
>> the various docking frameworks.
>>
>> I have come up with the following, from examining the JIDE docking and
>> VLDocking support libs. Comments are welcome.
>>
>> Create a package org.springframework.richclient.application.docking,
>> under which common docking support interfaces and classes reside:
>>
>> Each framework will have a custom implementation of DockingApplicationPage.
>>
>> interface DockingApplicationPage extends ApplicationPage {
>>
>> public PerspectiveManager getPerspectiveManager();
>>
>> public void setPerspectiveManager(PerspectiveManager
>> perspectiveManager);
>>
>> }
>>
>> PerspectiveManager will be responsible for organising the available
>> Perspectives.
>>
>> public interface PerspectiveManager {
>>
>> void setPerspectives(Perspective[] perspectives);
>>
>> void setDefaultPerspective(Perspective perspective);
>>
>> Perspective getDefaultPerspective();
>>
>> Perspective getCurrentPerspective();
>>
>> void setCurrentPerspective(Perspective perspective);
>>
>> }
>>
>> Perspective will be responsible for applying and saving itself on a
>> particular DockingApplicationPage:
>>
>> public interface Perspective extends BeanNameAware {
>>
>> String getId();
>>
>> void activate(DockingApplicationPage dockingPage);
>>
>> boolean saveLayout(DockingApplicationPage dockingPage);
>>
>> }
>>
>> Each framework will have a custom implementation of Perspective.
>> Obviously, the custom versions will only be able to operate with the
>> corresponding version of DockingApplicationPage.
>>
>> I have also created a common implementation of DockingViewDescriptor,
>> that adds "hideable", "closeable", "maximizeable", "floatable"
>> attributes. These should be common to all docking frameworks.
>>
>> Then implementations for specific frameworks would fall under the
>> .docking package.
>>
>> e.g. org.springframework.richclient.application.docking.vldocking
>>
>> What do you think?
>>
>> Rogan
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by: Splunk Inc.
>> Still grepping through log files to find problems? Stop.
>> Now Search log events and configuration files using AJAX and a browser.
>> Download your FREE copy of Splunk now >> http://get.splunk.com/
>> _______________________________________________
>> Springframework-rcp-dev mailing list
>> Spr...@li...
>> https://lists.sourceforge.net/lists/listinfo/springframework-rcp-dev
>
>
> **** DISCLAIMER ****
> http://www.schaubroeck.be/maildisclaimer.htm
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Springframework-rcp-dev mailing list
> Spr...@li...
> https://lists.sourceforge.net/lists/listinfo/springframework-rcp-dev
>
>
|