tabLayoutPanel.setSize("1000px", "600px");
AbsolutePanel absolutePanel_1 = new AbsolutePanel();
tabLayoutPanel.add(absolutePanel_1, "Detección", false);
final ToggleButton btnComunidades = new ToggleButton("Comunidades");
btnComunidades.setDown(true);
absolutePanel_1.add(btnComunidades, 10, 10);
final ToggleButton btnFamilias = new ToggleButton("Familias");
absolutePanel_1.add(btnFamilias, 111, 10);
TextBox textBox = new TextBox();
absolutePanel_1.add(textBox, 699, 10);
textBox.setSize("212px", "15px");
Button btnBuscar = new Button("Buscar");
absolutePanel_1.add(btnBuscar, 931, 10);
final AbsolutePanel comunidadesPanel = new AbsolutePanel();
absolutePanel_1.add(comunidadesPanel, 10, 50);
comunidadesPanel.setSize("978px", "520px");
DecoratedTabPanel decoratedTabPanel = new DecoratedTabPanel();
comunidadesPanel.add(decoratedTabPanel, 10, 10);
decoratedTabPanel.setSize("958px", "500px");
AbsolutePanel absolutePanel_9 = new AbsolutePanel();
decoratedTabPanel.add(absolutePanel_9, "Listado de comunidades", false);
decoratedTabPanel.selectTab(0);
absolutePanel_9.setSize("946px", "458px");
AbsolutePanel absolutePanel_10 = new AbsolutePanel();
decoratedTabPanel.add(absolutePanel_10, "Panoramas", false);
absolutePanel_10.setSize("947px", "458px");
AbsolutePanel absolutePanel_11 = new AbsolutePanel();
decoratedTabPanel.add(absolutePanel_11, "Insertar ficha de comunidad", false);
absolutePanel_11.setSize("948px", "460px");
AbsolutePanel absolutePanel_12 = new AbsolutePanel();
decoratedTabPanel.add(absolutePanel_12, "Mapa", false);
absolutePanel_12.setSize("946px", "460px");
AbsolutePanel absolutePanel_13 = new AbsolutePanel();
decoratedTabPanel.add(absolutePanel_13, "Fotos", false);
absolutePanel_13.setSize("947px", "462px");
AbsolutePanel absolutePanel_14 = new AbsolutePanel();
decoratedTabPanel.add(absolutePanel_14, "Bitacora", false);
absolutePanel_14.setSize("948px", "462px");
AbsolutePanel absolutePanel_2 = new AbsolutePanel();
tabLayoutPanel.add(absolutePanel_2, "Eventos", false);
AbsolutePanel absolutePanel_3 = new AbsolutePanel();
tabLayoutPanel.add(absolutePanel_3, "Investigación", false);
AbsolutePanel absolutePanel_4 = new AbsolutePanel();
tabLayoutPanel.add(absolutePanel_4, "New Widget", false);
AbsolutePanel absolutePanel_5 = new AbsolutePanel();
tabLayoutPanel.add(absolutePanel_5, "Estadísticas", false);
AbsolutePanel absolutePanel_6 = new AbsolutePanel();
tabLayoutPanel.add(absolutePanel_6, "Vinculaciones", false);
AbsolutePanel absolutePanel_7 = new AbsolutePanel();
tabLayoutPanel.add(absolutePanel_7, "Documentos", false);
AbsolutePanel absolutePanel = new AbsolutePanel();
tabLayoutPanel.add(absolutePanel, "Inicio", false);
tabLayoutPanel.selectTab(0);
rootPanel.add(tabLayoutPanel, 0, 35);
signInLink.getElement().setClassName("login-area");
signInLink.setText("Iniciar Sesión");
signInLink.setTitle("Click para finalizar sesión");
loginImage.getElement().setClassName("login-area");
loginPanel.add(signInLink);
RootPanel.get("loginPanelContainer").add(loginPanel);
final StringBuilder userEmail = new StringBuilder();
greetingService.login(GWT.getHostPageBaseURL(), new AsyncCallback<LoginInfo>() {
@Override
public void onFailure(final Throwable caught) {
GWT.log("login -> onFailure");
}
@Override
public void onSuccess(final LoginInfo result) {
if (result.getName() != null && !result.getName().isEmpty()) {
addGoogleAuthHelper();
loadLogout(result);
} else {
loadLogin(result);
}
userEmail.append(result.getEmailAddress());
}
});
// Click handler for showing the Comunidades panel
btnComunidades.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
if ( ! comunidadesPanel.isVisible() ){
comunidadesPanel.setVisible(true);
btnFamilias.setDown(false);
btnComunidades.setDown(true);
}
else {
comunidadesPanel.setVisible(false);
btnFamilias.setDown(true);
btnComunidades.setDown(false);
}
}
});