Page 2 of 3

Working pane is empty !

PostPosted: Tue Sep 08, 2009 12:29 pm
by dskanth
When i expand the Images taskpane and click on a image, it is not shown in the working pane. (But i could see the images in the working pane, from the Projects taskpane).

Re: Task panes instead of Tabs

PostPosted: Sat Sep 12, 2009 8:04 am
by jburel
Hi
This is probably due to the fact that you have not attached listener to the new UI.
in the TreeViewerWin, we register the tab pane with the controller so that we know
which browser is the current one i.e. project, tags etc.
You will have to attach listener to the taskpane and identify which browser is selected.
This is a bit more difficult than with tab pane if you want to allow multiple taskpane expanded at the same.
If you only have one expanded at the time, that's pretty straightforward
You need to add a property listener to the JXtaskPane and listen
to the collapsed property, Unfortunately the property name is not exposed in JXtaskPane
so I have added a static field UIUtilities.COLLAPSED_PROPERTY_JXTASKPANE to identify the property name.
When this is in place,it should work fine

jmarie

Re: Task panes instead of Tabs

PostPosted: Sun Sep 13, 2009 6:03 am
by dskanth
Jmarie, thanks for your reply. I have only one expanded at a time, so it seems ok.

Re: Task panes instead of Tabs

PostPosted: Tue Sep 15, 2009 9:00 am
by jburel
You don't need to create a taskPanelistener
Just taskpane.addPRopertyListener(TreeViewerControl) and do what you want to do when you listen to the property

db =null if you have no browser displaying thumbnail.

jmarie

Re: Task panes instead of Tabs

PostPosted: Tue Sep 15, 2009 12:48 pm
by dskanth
Thanks Jmarie, but when i added: taskpane.addPropertyListener(PropertyChangeListener());
it says: The method addPropertyListener(PropertyChangeListener) is undefined for the type JXTaskPane.
Do i need to add UIListeners to all the taskpanes ?

Re: Task panes instead of Tabs

PostPosted: Fri Sep 18, 2009 6:25 am
by dskanth
It seems the UIListeners are not properly attached to the taskpanes.

Re: Task panes instead of Tabs

PostPosted: Fri Sep 18, 2009 8:22 am
by jburel
Of course you need to attach the listener to the each taskpane.
As I said in a previous post, you should only allow one taskpane expanded at a time
so you can determine the active browser.
So when one is expanded, you close the other ones, then set the active browser..

Re: Task panes instead of Tabs

PostPosted: Sat Sep 19, 2009 7:43 am
by dskanth
Hi, now i have added listeners to each taskpane.
I dont understand how to set the active browser. If it is already available, please let me know.

Re: Task panes instead of Tabs

PostPosted: Mon Sep 21, 2009 8:08 am
by jburel
You should have a browser in each task pane and attach a property listener
When you expand a task pane, the hosted browser should become your selected browser.
To set the selected browser, use the setSelectedBrowser(Browser) method in the TreeViewer. I thought the name was explicit enough.

Re: Task panes instead of Tabs

PostPosted: Mon Sep 21, 2009 9:04 am
by dskanth
Thanks a lot, now iam able to show the selected browser's items in the working pane.