pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Brown <gk_br...@verizon.net>
Subject Re: BXML Rendering
Date Wed, 01 Jun 2011 13:53:29 GMT
> So instead of using the serializer like this:
> 
> window = (Window)bxmlSerializer.readObject(IIADashboard.class,
> "iiaDashboard.bxml");
> 
> I would use it something like this? :
> 
> BoxPane = (BoxPane)bxmlSerializer.readObject(IIADashboard.class,
> "iiaDashboard.bxml");
> 
> and then just put that boxpane in the right side of the splitpane? 

If you are pulling the content from a text area on the left side of the split pane, it might
not be a BoxPane. But maybe it would be safe to assume that it is a Component. If so, you
could do something like this:

StringReader reader = new StringReader(textArea.getText());
Component component = bxmlSerializer.readObject(reader);
splitPane.setRight(component); 


Mime
View raw message