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