settingsMenu.addItem("Test de Inversor", perfil);
settingsMenu.addSeparator();
settingsMenu.addItem("Mi Cuenta", cmd);
addComponent(settings);
Button exit = new NativeButton("Exit");
exit.addStyleName("icon-cancel");
exit.setDescription("Sign Out");
addComponent(exit);
exit.addClickListener(new ClickListener() {
@Override
public void buttonClick(ClickEvent event) {
buildLoginView(true);
}
});
}
});
}
});
// Content
addComponent(content);
content.setSizeFull();
content.addStyleName("view-content");
setExpandRatio(content, 1);
}
});
menu.removeAllComponents();
for (final String view : new String[] { "dashboard", "Cartera",
"Especies" }) {
Button b = new NativeButton(view.substring(0, 1).toUpperCase()
+ view.substring(1).replace('-', ' '));
if(view.equals("Cartera")){
b.addStyleName("icon-transactions");
}else{
if(view.equals("Especies"))
b.addStyleName("icon-sales");
else{
b.addStyleName("icon-" + view);
}
}
// b.addStyleName("icon-" + view);
b.addClickListener(new ClickListener() {
/**
*
*/
private static final long serialVersionUID = -5785295456511540486L;