pivot-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Brown <gk_br...@verizon.net>
Subject Re: Missing Cast?
Date Wed, 08 Dec 2010 12:48:01 GMT
You are correct, a cast is necessary there. Thank you for catching that.

On Dec 8, 2010, at 4:43 AM, Luiz Gustavo wrote:

> Hi!
> 
> in an example, on the BXMLPrimer I noticed that a casting is missing when
> getting reference to a Label.
> 
> public void startup(Display display, Map<String, String> properties)
>    throws Exception {
>    BXMLSerializer bxmlSerializer = new BXMLSerializer();
>    Window window =
>        (Window)bxmlSerializer.readObject(getClass().getResource(
> "window.bxml"));
> 
>   * **Label label = bxmlSerializer.getNamespace().get("label");*
>    label.setText("Welcome to Pivot!");
> 
>    window.open(display);
> }
> 
> 
> Cheers,
> Luiz Gustavo S. de Souza
> 
> http://luizgustavoss.wordpress.com
> http://luizgustavoss.blogspot.com
> http://twitter.com/lugustso


Mime
View raw message