pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Bartlett <cbartlet...@gmail.com>
Subject Re: Perspective component
Date Sun, 03 Jul 2011 16:09:20 GMT

Pivot does not have any kind of window 'docking' framework, but you
should be able to achieve something like Eclipse's perspectives.

The only layout container that gives a user control over sizing via
the mouse is a SplitPane

Expanders, Rollups and Accordions are navigation containers which do
allow a user to hide or show content, but not to resize it directly.

If you can build a layout using SplitPanes, the user will be able to
resize them all as they require.  You can save the 'splitRatio' values
for each SplitPane when the user chooses to change to a 'new'
perspective.  Then you would change the 'splitRatio' values to match
the requirement for the 'new' perspective.

This assumes that you would be reusing a single layout when you change

Another option would be to use a CardPane (or TabPane) where each
'card' would be a different perspective.  You would probably still use
SplitPanes in each 'card' to allow the user to resize the sections.

If the different perspectives share common components (like in Eclipse
where the Java editor is shown in Java and Debug perspectives) you
could remove the component from one perspective and add to another
each time you switch perspectives.

More info here


On 3 July 2011 21:45, Eugene Kondrashev <eugene.kondrashev@gmail.com> wrote:
> Hi community!
> I'm interested of the component that is known as Perspectives in Eclipse UI.
> So, in other words it is a component which view(visible areas, size of these
> areas) can be customized by a user.
> Is there any analogue or something similar?
> Thanks,
> Eugene

View raw message