// Update the image
MenusRollupStateHandler.this.menuImageView.setImage(image);
}
});
BXMLSerializer bxmlSerializer = new BXMLSerializer();
try {
this.component = (Component)bxmlSerializer.readObject(KitchenSink.class, "menus.bxml");
} catch(IOException exception) {
throw new RuntimeException(exception);
} catch(SerializationException exception) {
throw new RuntimeException(exception);
}
this.menuImageView = (ImageView)bxmlSerializer.getNamespace().get("menuImageView");
this.helpAboutMenuItem = (Menu.Item)bxmlSerializer.getNamespace().get("helpAboutMenuItem");
rollup.setContent(this.component);
try {
this.menuSection = (Menu.Section)bxmlSerializer.readObject(KitchenSink.class, "menu_section.bxml");
this.imageMenuGroup = (ButtonGroup)bxmlSerializer.getNamespace().get("imageMenuGroup");
} catch(IOException exception) {
throw new RuntimeException(exception);
} catch(SerializationException exception) {
throw new RuntimeException(exception);
}