NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Saving and recalling window/mode layouts?

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users
View previous topic :: View next topic  
Author Message
phipma



Joined: 04 Aug 2009
Posts: 4

PostPosted: Fri Apr 21, 2017 1:40 pm    Post subject: Saving and recalling window/mode layouts? Reply with quote

Hi all,

I am porting our application to the NetBeans platform with great
success, however I have come across this show-stopping problem.

For a number of good reasons, our application allows the user to
manipulate panels of various kinds and then save the layout as a named
configuration, which can be recalled at any time. This is not a
complicated scenario.

The problem I have is the same as Mark J Koch described back in 2012,
where the "Anonymous" modes that are generated when the user moves
TopComponents around, cannot be re-created. Nor can a TopComponent be
dragged onto a predefined mode that is not currently showing.

The "Role" and "Group" concepts in Netbeans are just not flexible
enough, because these predefine what the user will see.

I can programatically find the modes that my TopComponents are in.
Dragging a TopComponent to a different location creates an "Anonymous"
mode, so there is certainly a mechanism inside the platform which does
this but why can we not access this through the api?

Thanks
Mark Phipps

On 21/11/12 23:19, Geertjan Wielenga wrote:
Quote:
On 11/22/2012 12:15 AM, Mark J. Koch wrote:
Quote:

I have a feature request for our app where the user would be able to
reconfigure the TopComponents, sliding them wherever they want.
Right now NetBeans does that and remembers the window configuration
from the previous run. But what we want to do is let the user Save
the current window layout, give it a name, and be able to recall it
from a list of saved layouts.

The barrier I see at the moment is that when the user starts sliding
windows around, new "Anonymous" modes are created. But the API does
not allow us to programatically create new modes. It seems that Modes
must be pre-defined in the layer.xml at build time.

We've been able to create pre-defined layouts that we can load as
needed. But how might we capture a user configured layout and bring
it back on demand?


Any ideas or pointers?

Mark

Do some research "roles", which is a newish concept in the NetBeans
Platform.

https://blogs.oracle.com/geertjan/entry/roles_profiles_perspectives_in_netbeans


Gj


[/url][url=http://www.sucdenfinancial.com/]www.sucdenfinancial.com
Sucden Financial Limited, Plantation Place South, 60 Great Tower Street, London EC3R 5AZTelephone +44 203 207 5000Registered in England no. 1095841VAT registration no. GB 446 9061 33
Authorised and Regulated by the Financial Conduct Authority (FCA) and entered in the FCA register under no. 114239This email, including any files transmitted with it, is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you are not the intended recipient of this message, please notify address-removed ([email]address-removed[/email]) immediately and delete it from your computer system.


We believe, but do not warrant, that this email and its attachments are virus-free, but you should check.



Sucden Financial Limited may monitor traffic data of both business and personal emails. By replying to this email, you consent to Sucden Financial's monitoring the content of any emails you send to or receive from Sucden Financial. Sucden Financial is not liable for any opinions expressed by the sender where this is a non-business email.



The contents of this e-mail do not constitute advice and should not be regarded as a recommendation to buy, sell or otherwise deal with any particular investment.Where any trade ideas are made by an employee of Sucden Financial in an electronic communication, these are made incidentally to your dealing relationship with us and are provided solely to enable you to make your own investment decisions and do not amount to advice. Please note that the employee may have had many, varied trade ideas over the past 12 months, including contrary ideas. Any trade ideas are solely based on the employee’s market knowledge and experience and may not be tailored to your specific circumstances or investment objectives. Please contact the employee who made the trade idea if you would like to see any of his/her trade ideas made in the previous 12 months for comparative purposes. Please visit our website to view our full risk warnings and disclaimers: [/url][url=http://www.sucdenfinancial.com/]www.sucdenfinancial.com



[/url]This message has been scanned for viruses by [url=http://www.mimecast.com/]Mimecast
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo