You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pivot.apache.org by sarahr <re...@hotmail.com> on 2011/12/01 21:33:22 UTC

open detail in new tab

I have a tab that is a search screen that displays results in a tableview. 
When I double click on a row in the tableview, I need to open the detail in
a new tab. 

I used ComponentMouseButtonListener to get the double click and the
following code to add a tab. 

TabPane tab = new TabPane(); 
tabpane.getTabs().add(tab);
TabPane.setTabData(tab, "Document " + tabpane.getTabs().getLength());
tabpane.setSelectedIndex(tabpane.getTabs().getLength() - 1);

But this is an empty tab. How do I open a tab with my bxml for the detail?

--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/open-detail-in-new-tab-tp3552769p3552769.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

Re: open detail in new tab

Posted by Chris Bartlett <cb...@gmail.com>.
Noel's recent BXMLExplorer demo might be a useful reference for you.
It loads BXML files for easy visualization, and creates and populates
new tabs for each one.

The source can be checked out of the SVN repository here
http://svn.apache.org/repos/asf/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/bxmlexplorer/

I haven't checked but it might depend on new features added since the
2.0 release, so you might need a full checkout of 'trunk' to run it.
http://svn.apache.org/repos/asf/pivot/trunk/

Instructions for building it are here
http://svn.apache.org/repos/asf/pivot/trunk/BUILD

Chris

On 2 December 2011 03:09, sarahr <re...@hotmail.com> wrote:
> I used the menu bars tutorial and figured out how to use the bxml.
>
> Now I have to figure out how to pass detail data to that tab.
>
>
> --
> View this message in context: http://apache-pivot-users.399431.n3.nabble.com/open-detail-in-new-tab-tp3552769p3553642.html
> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

Re: open detail in new tab

Posted by sarahr <re...@hotmail.com>.
I used the menu bars tutorial and figured out how to use the bxml.

Now I have to figure out how to pass detail data to that tab. 


--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/open-detail-in-new-tab-tp3552769p3553642.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.