Example usage for com.google.gwt.user.client.ui Label addClickHandler

List of usage examples for com.google.gwt.user.client.ui Label addClickHandler

Introduction

In this page you can find the example usage for com.google.gwt.user.client.ui Label addClickHandler.

Prototype

public HandlerRegistration addClickHandler(ClickHandler handler) 

Source Link

Usage

From source file:fr.gael.dhus.gwt.client.page.OverviewPage.java

License:Open Source License

private static void refresh() {
    Label registerLink = Label.wrap(RootPanel.get("overview_registerLink").getElement());
    registerLink.setVisible(GWTClient.getCurrentUser() == null);
    registerLink.addClickHandler(new ClickHandler() {
        @Override/*w  ww . j  av a  2 s. co m*/
        public void onClick(ClickEvent event) {
            Page.REGISTER.load();
        }
    });
}

From source file:fr.gael.dhus.gwt.client.page.SearchViewPage.java

License:Open Source License

private static void generateDownloadLink() {
    Label downloadLink = Label.wrap(RootPanel.get("searchView_download").getElement());
    if (GWTClient.getCurrentUser().getRoles().contains(RoleData.DOWNLOAD)) {
        downloadLink.setText("Download the product");
        downloadLink.getElement().setClassName("searchView_download");
        downloadLink.addClickHandler(new ClickHandler() {
            @Override/*from www .jav a 2 s  .c  o  m*/
            public void onClick(ClickEvent event) {
                openUrl(displayedProduct.getOdataDownaloadPath(GWT.getHostPageBaseURL()));
            }
        });
    } else {
        downloadLink.setText("Explore the product");
        downloadLink.getElement().setClassName("");
    }
}

From source file:gov.nist.spectrumbrowser.client.SensorInfoDisplay.java

License:Open Source License

/**
 * Show the sensor summary information in the side of the map.
 * //from  w w  w. java  2 s.  c om
 */

void buildSummary() {
    logger.finer("SensorInfoDisplay: buildSummary " + getId());

    try {

        info = sensorInfo.getSensorDescriptionNoBands();
        sensorDescriptionPanel.add(info);
        for (final String bandName : sensorInfo.getBandNames()) {
            final BandInfo bandInfo = sensorInfo.getBandInfo(bandName);
            if (bandInfo != null) {
                VerticalPanel bandDescriptionPanel = new VerticalPanel();
                HTML bandDescription = sensorInfo.getBandDescription(bandName);

                bandDescriptionPanel.add(bandDescription);

                if (sensorInfo.getMeasurementType().equals(Defines.SWEPT_FREQUENCY)) {
                    HorizontalPanel showAdvancedPanel = new HorizontalPanel();
                    showAdvancedPanel.add(new Label("Advanced     "));
                    CheckBox advancedCheckBox = new CheckBox();

                    advancedCheckBox.setValue(false);
                    showAdvancedPanel.add(advancedCheckBox);
                    bandDescriptionPanel.add(showAdvancedPanel);

                    final VerticalPanel advancedPanel = new VerticalPanel();

                    advancedPanel.add(new Label("Specify Sub-band :"));
                    Grid grid = new Grid(2, 2);

                    grid.setText(0, 0, "Min Freq (MHz):");
                    minFreqBox = new TextBox();
                    minFreqBox.setText(Double.toString(bandInfo.getSelectedMinFreq() / 1E6));
                    minFreqBox.addValueChangeHandler(new ValueChangeHandler<String>() {
                        @Override
                        public void onValueChange(ValueChangeEvent<String> event) {
                            try {
                                double newFreq = Double.parseDouble(event.getValue());
                                if (!bandInfo.setSelectedMinFreq((long) (newFreq * 1E6))) {
                                    Window.alert("Illegal value entered");
                                    minFreqBox.setText(Double.toString(bandInfo.getSelectedMinFreq() / 1E6));
                                }
                            } catch (NumberFormatException ex) {
                                Window.alert("Illegal Entry");
                                minFreqBox.setText(Double.toString(bandInfo.getMinFreq() / 1E6));
                            }

                        }
                    });
                    minFreqBox.setTitle("Enter value >= " + bandInfo.getMinFreq() / 1E6);
                    grid.setWidget(0, 1, minFreqBox);

                    grid.setText(1, 0, "Max Freq (MHz):");
                    maxFreqBox = new TextBox();
                    maxFreqBox.addValueChangeHandler(new ValueChangeHandler<String>() {
                        @Override
                        public void onValueChange(ValueChangeEvent<String> event) {
                            try {
                                double newFreq = Double.parseDouble(event.getValue());

                                if (!bandInfo.setSelectedMaxFreq((long) (newFreq * 1E6))) {

                                    Window.alert("Illegal value entered");
                                    maxFreqBox.setText(Double.toString(bandInfo.getSelectedMaxFreq() / 1E6));
                                }
                            } catch (NumberFormatException ex) {
                                Window.alert("Illegal Entry");
                                maxFreqBox.setText(Double.toString(bandInfo.getSelectedMaxFreq() / 1E6));
                            }

                        }
                    });
                    maxFreqBox.setText(Double.toString(bandInfo.getSelectedMaxFreq() / 1E6));
                    maxFreqBox.setTitle("Enter value <= " + bandInfo.getMaxFreq() / 1E6);
                    grid.setWidget(1, 1, maxFreqBox);
                    advancedPanel.add(grid);
                    advancedPanel.add(new Label("Changing to non-default values increases compute time"));

                    Grid updateGrid = new Grid(1, 2);
                    Button changeButton = new Button("Change");
                    updateGrid.setWidget(0, 0, changeButton);
                    final Label label = new Label();
                    updateGrid.setWidget(0, 1, label);
                    changeButton.addClickHandler(new ClickHandler() {

                        @Override
                        public void onClick(ClickEvent event) {
                            double minFreq = Double.parseDouble(minFreqBox.getText());
                            double maxFreq = Double.parseDouble(maxFreqBox.getText());

                            if (!bandInfo.setSelectedMaxFreq((long) (maxFreq * 1E6))
                                    || !bandInfo.setSelectedMinFreq((long) (minFreq * 1E6))) {
                                Window.alert("Illegal value entered");
                                minFreqBox.setText(Double.toString(bandInfo.getMinFreq() / 1E6));
                                maxFreqBox.setText(Double.toString(bandInfo.getSelectedMaxFreq() / 1E6));
                            } else {
                                updateAcquistionCount();
                                label.setText("Changes Updated");
                                Timer timer = new Timer() {
                                    @Override
                                    public void run() {
                                        label.setText(null);
                                    }
                                };
                                timer.schedule(2000);
                            }
                        }
                    });
                    advancedPanel.add(updateGrid);
                    bandDescriptionPanel.add(advancedPanel);
                    advancedPanel.setVisible(false);
                    advancedCheckBox.addValueChangeHandler(new ValueChangeHandler<Boolean>() {

                        @Override
                        public void onValueChange(ValueChangeEvent<Boolean> event) {
                            if (event.getValue()) {
                                advancedPanel.setVisible(true);
                            } else {
                                advancedPanel.setVisible(false);
                            }

                        }
                    });

                }

                final Label bandSelectionButton = new Label(bandInfo.getFreqRange().toString());
                bandSelectionButton.getElement().getStyle().setCursor(Cursor.POINTER);
                if (bandInfo.isActive()) {
                    bandSelectionButton.setStyleName("activeBandSelectionButton");
                    bandSelectionButton.setTitle("Enabled for data collection");
                } else {
                    bandSelectionButton.setTitle("Disabled for data collection");
                    bandSelectionButton.setStyleName("bandSelectionButton");
                }
                sensorDescriptionPanel.add(bandSelectionButton);
                sensorDescriptionPanel.add(bandDescriptionPanel);
                bandDescriptionPanel.setVisible(false);
                selectionButtons.add(bandSelectionButton);
                bandInfo.setSelectionButton(bandSelectionButton);
                bandDescriptionPanels.add(bandDescriptionPanel);
                bandSelectionButton.addClickHandler(
                        new SelectBandClickHandler(bandDescriptionPanel, bandSelectionButton, bandInfo));
            }
        }

    } catch (Exception ex) {
        logger.log(Level.SEVERE, "Error in updating data summary ", ex);
        ex.printStackTrace();
    } finally {
    }

}

From source file:gwtuploadsample.client.ChismesUploadSample.java

License:Apache License

void setupLanguageLinks() {
    final Label english = new Label("English");
    final Label spanish = new Label("Spanish");
    final Label german = new Label("German");
    final ClickHandler changeLocale = new ClickHandler() {
        public void onClick(ClickEvent event) {
            Widget sender = (Widget) event.getSource();
            String qs = Window.Location.getQueryString().replaceAll("^[&?]+", "").replaceAll("locale=..&*", "");
            if (sender == english) {
                Window.Location.assign("?locale=en&" + qs);
            } else if (sender == spanish) {
                Window.Location.assign("?locale=es&" + qs);
            } else if (sender == german) {
                Window.Location.assign("?locale=de&" + qs);
            }/*www .j  av  a 2  s  . c  o m*/
        }
    };

    HorizontalPanel langPanel = new HorizontalPanel();
    langPanel.setStyleName("langPanel");
    String loc = Window.Location.getParameter("locale");
    if (loc != null && !"en".equals(loc)) {
        langPanel.add(english);
    }
    if (!"es".equals(loc)) {
        langPanel.add(spanish);
    }
    if (!"de".equals(loc)) {
        langPanel.add(german);
    }
    english.addClickHandler(changeLocale);
    spanish.addClickHandler(changeLocale);
    german.addClickHandler(changeLocale);

    RootPanel.get().add(langPanel);
}

From source file:ibeans.client.IBeansConsole2.java

License:Open Source License

protected InlineFlowPanel createHeaderOptions() {

    InlineFlowPanel options = new InlineFlowPanel();
    options.setStyleName("header-right-options");

    if (user.getUser() != null) {
        Label l = new Label("Welcome, " + user.getUser());
        options.add(l);//from w  ww .  j av a 2 s  .  com

        options.add(newSpacerPipe());

        Label l2 = new Label("Log Out");
        l2.setStyleName("faux-link");
        options.add(l2);
        l2.addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent clickEvent) {
                clearUserInfo();
                rightHeaderPanel.remove(0);
                rightHeaderPanel.add(createHeaderOptions());
            }
        });
    } else {
        Label l = new Label("Log In");
        l.setStyleName("faux-link");

        l.addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent clickEvent) {
                Window window = new Window();
                DownloadWindow login = new DownloadWindow(null, null, null, null, window, IBeansConsole2.this);
                window.add(login);
                window.show();
            }
        });
        options.add(l);
    }

    options.add(newSpacerPipe());
    options.add(
            new ExternalHyperlink("Help", "http://www.mulesoft.org/display/IBEANS/Managing+iBeans", "_blank"));

    return options;
}

From source file:mcamara.client.PTutorial.java

License:Open Source License

private void construyeMenuPantallas() {
    tutorialComposite.getMenuPantallas().clear();
    Label tituloPantalla = null;
    int numPantallas = cuestionario.getNumeroDePreguntas();
    for (int i = 0; i < numPantallas; i++) {
        tituloPantalla = new Label(cuestionario.getPregunta(i).getTextoCortoPregunta());
        tutorialComposite.getMenuPantallas().add(tituloPantalla);
        tituloPantalla.addClickHandler(new tituloPantallaHandler(i));
    }// w w  w.  j a va  2s.  com
}

From source file:net.cbtltd.client.form.AbstractForm.java

private HorizontalPanel createUtilities() {
    final HorizontalPanel panel = new HorizontalPanel();
    panel.addStyleName(CSS.cbtCommandRight());

    final Label homeButton = new Label(CONSTANTS.homeButton());
    homeButton.setTitle(CONSTANTS.helpHome());
    homeButton.addStyleName(CSS.cbtCommandHyperlink());
    homeButton.setVisible(AbstractRoot.noLogo());
    homeButton.addClickHandler(new ClickHandler() {
        @Override/*from   ww  w  .  j a  va2  s  . com*/
        public void onClick(ClickEvent event) {
            Window.open(HOSTS.homeUrl(), "_blank",
                    "menubar=yes,location=yes,resizable=yes,scrollbars=yes,status=yes");
        }
    });

    Label aboutButton = new Label(CONSTANTS.allAbout());
    aboutButton.setTitle(CONSTANTS.helpAbout());
    aboutButton.setVisible(true);
    aboutButton.addStyleName(CSS.cbtCommandHyperlink());
    aboutButton.addClickHandler(new ClickHandler() {
        @Override
        public void onClick(ClickEvent event) {
            new AboutPopup().center();
        }
    });

    Label passwordButton = new Label(CONSTANTS.allPassword());
    passwordButton.setTitle(CONSTANTS.helpPassword());
    passwordButton.setVisible(!(this instanceof SessionForm));
    passwordButton.addStyleName(CSS.cbtCommandHyperlink());
    passwordButton.addClickHandler(new ClickHandler() {
        @Override
        public void onClick(ClickEvent event) {
            new PasswordPopup().center();
        }
    });

    Label logoutButton = new Label(CONSTANTS.sessionLogout());
    logoutButton.setVisible(!(this instanceof SessionForm));
    logoutButton.addStyleName(CSS.cbtCommandHyperlink());
    logoutButton.addClickHandler(new ClickHandler() {
        @Override
        public void onClick(ClickEvent event) {
            Cookies.removeCookie("sid");
            sessionLogout.execute();
        }
    });

    if (!(this instanceof SessionForm)) {
        panel.add(createSearch());
    }
    panel.add(homeButton);
    panel.add(aboutButton);
    panel.add(passwordButton);
    panel.add(logoutButton);
    return panel;
}

From source file:net.cbtltd.client.form.AbstractForm.java

private HorizontalPanel createFooter(HorizontalPanel panel) {
    panel.addStyleName(CSS.cbtCommandFooter());
    //      if (this instanceof SessionForm) {return panel;}
    //      final Image image = new Image(BUNDLE.actor());
    //      image.addStyleName(CSS.cbtCommandImage());
    //      image.setTitle(CONSTANTS.imageHelp());
    //      image.setVisible(false);
    //      panel.add(image);

    //      final FlowPanel up = new FlowPanel();
    //      final HorizontalPanel user = new HorizontalPanel();
    //      final Label userLabel = new Label(AbstractRoot.getActorname());
    //      userLabel.addStyleName(CSS.cbtCommandUser());
    //      user.add(userLabel);
    //      //from w w  w .  j a v a2  s  . c  om
    //      final Double rank = totalProgress() / 10.0;
    //      final Label rankLabel = new Label(CONSTANTS.userRanks()[rank.intValue()]);
    //      rankLabel.addStyleName(CSS.cbtCommandRank());
    //      user.add(rankLabel);
    //      up.add(user);
    //      progressField = new ProgressField(this, null, null, 0, 100, tab);
    //      progressField.addStyleName(CSS.cbtCommandProgress());
    //      progressField.addStyleName(CSS.cbtAbstractCursor());
    //      progressField.addClickHandler(new ClickHandler() {
    //         
    //         @Override
    //         public void onClick(ClickEvent event) {
    //            new ProgressPopup().center();
    //         }
    //      });
    //      progressField.setDefaultValue(totalProgress());
    //      up.add(progressField);
    //      panel.add(up);

    final Label copyrightLabel = new Label(CONSTANTS.allCopyright());
    copyrightLabel.addClickHandler(new ClickHandler() {
        @Override
        public void onClick(ClickEvent event) {
            Window.open(HOSTS.homeUrl(), "_blank",
                    "menubar=yes,location=yes,resizable=yes,scrollbars=yes,status=yes");
        }
    });
    copyrightLabel.addStyleName(CSS.cbtCommandFooterHyperlink());
    panel.add(copyrightLabel);

    final HTML supportLabel = new HTML(
            "<a href='mailto:info@abookingnet.com?subject=Feedback' title='Click to send a feedback & support message'>Feedback & Support</a>");
    supportLabel.removeStyleName("a");
    supportLabel.addStyleName(CSS.cbtCommandFooterHyperlink());
    supportLabel.addStyleName(CSS.cbtCommandRight());
    supportLabel.setVisible(AbstractRoot.noLogo());
    panel.add(supportLabel);
    return panel;
}

From source file:net.cbtltd.client.form.SearchForm.java

private Widget availabletableEmpty() {
    FlowPanel panel = new FlowPanel();
    panel.add(new HTML(CONSTANTS.tableEmpty()));
    panel.addStyleName(AbstractField.CSS.cbtTableFieldEmpty());

    Label tableEmpty1 = new Label(CONSTANTS.tableEmpty1());
    tableEmpty1.addStyleName(AbstractField.CSS.cbtTableFieldEmptyHyperlink());
    tableEmpty1.addClickHandler(new ClickHandler() {

        @Override//from   w  w w . jav a2 s.co  m
        public void onClick(ClickEvent event) {
            locationField.setName("cape town");
            distanceField.setValue(3);
            countField.setValue(2);
            countunitField.setValue(true);
            specialField.setValue(false);
            durationField.setValue(0);
            pricerangeField.setMaxRange();
            ratingField.setValue(0);
            commissionField.setValue(0);
            attributeField.deselect();
        }
    });
    panel.add(tableEmpty1);

    Label tableEmpty2 = new Label(CONSTANTS.tableEmpty2());
    tableEmpty2.addStyleName(AbstractField.CSS.cbtTableFieldEmptyHyperlink());
    tableEmpty2.addClickHandler(new ClickHandler() {

        @Override
        public void onClick(ClickEvent event) {
            locationField.setName("knysna");
            distanceField.setValue(5);
            countField.setValue(3);
            countunitField.setValue(false);
            specialField.setValue(false);
            durationField.setValue(0);
            pricerangeField.setMaxRange();
            ratingField.setValue(0);
            commissionField.setValue(0);
            attributeField.deselect();
        }
    });
    panel.add(tableEmpty2);

    Label tableEmpty3 = new Label(CONSTANTS.tableEmpty3());
    tableEmpty3.addStyleName(AbstractField.CSS.cbtTableFieldEmptyHyperlink());
    tableEmpty3.addClickHandler(new ClickHandler() {

        @Override
        public void onClick(ClickEvent event) {
            locationField.setName("mauritius");
            distanceField.setValue(6);
            countField.setValue(4);
            countunitField.setValue(false);
            specialField.setValue(false);
            durationField.setValue(0);
            pricerangeField.setMaxRange();
            ratingField.setValue(0);
            commissionField.setValue(0);
            attributeField.deselect();
        }
    });
    panel.add(tableEmpty3);
    panel.add(new Image(BUNDLE.tableEmpty()));
    return panel;
}

From source file:net.cbtltd.client.form.SessionForm.java

@Override
public void initialize() {
    AbstractField.CSS.ensureInjected();
    CSS.ensureInjected();/*from  ww w.  j a  v a 2s  . co m*/

    final ScrollPanel scroll = new ScrollPanel();
    add(scroll);
    final HorizontalPanel panel = new HorizontalPanel();
    panel.setWidth("100%");
    panel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
    panel.setVerticalAlignment(HasVerticalAlignment.ALIGN_BOTTOM);
    //panel.addStyleName(AbstractField.CSS.cbtAbstractForm());
    //panel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
    scroll.add(panel);

    final FlowPanel west = new FlowPanel();
    //      panel.add(west);
    final FlowPanel sessionForm = new FlowPanel();
    sessionForm.addStyleName(AbstractField.CSS.cbtAbstractControl());
    sessionForm.addStyleName(CSS.formStyle());
    sessionForm.addStyleName(CSS.magnify());
    west.add(sessionForm);

    final Frame frame = new Frame(HOSTS.cloudUrl());
    frame.setStylePrimaryName(CSS.frameStyle());
    //      panel.add(frame);

    //Rishi
    VerticalPanel frontPanel = new VerticalPanel();

    frontPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);
    frontPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);
    frontPanel.addStyleName(CSS.loginPopup());
    panel.add(frontPanel);

    // Add the header label
    Label loginFormLabel = new Label(CONSTANTS.headerLabel());
    loginFormLabel.addStyleName(CSS.frontHeaderStyle());
    frontPanel.add(loginFormLabel);

    // Create a horizontal panel to add the login window and registration window
    HorizontalPanel loginRegPanel = new HorizontalPanel();

    // Add the login Panel
    loginRegPanel.add(new LoginWindow());

    // Add the registration Panel
    VerticalPanel registrationPanel = new VerticalPanel();
    registrationPanel.addStyleName(CSS.registerForm());

    Label registerHeaderLabel = new Label("Register");
    registerHeaderLabel.addStyleName(CSS.signLabel());

    Label registerPropertyButton = new Label(CONSTANTS.registerPropertyLabel());
    registerPropertyButton.addStyleName(CSS.passwordcreateStyle());
    registerPropertyButton.addClickHandler(new ClickHandler() {
        @Override
        public void onClick(ClickEvent event) {
            AbstractRoot.renderTabs(Razor.ORGANIZATION_TAB, new Organization());
        }
    });

    Label registerTravelButton = new Label(CONSTANTS.registerTravelLabel());
    registerTravelButton.addStyleName(CSS.passwordcreateStyle());
    registerTravelButton.addClickHandler(new ClickHandler() {
        @Override
        public void onClick(ClickEvent event) {
            AbstractRoot.renderTabs(Razor.ORGANIZATION_TAB, new Agent());
        }
    });

    registrationPanel.add(registerHeaderLabel);
    registrationPanel.add(registerPropertyButton);
    registrationPanel.add(registerTravelButton);

    loginRegPanel.add(registrationPanel);

    frontPanel.add(loginRegPanel);

    //-----------------------------------------------
    // Log In button
    //-----------------------------------------------
    final HTML loginButton = new HTML(CONSTANTS.loginLabel());
    loginButton.addClickHandler(new ClickHandler() {
        @Override
        public void onClick(ClickEvent event) {
            new SessionPopup().center();
        }
    });
    loginButton.addStyleName(CSS.sessionButton());
    loginButton.addStyleName(CSS.loginButton());
    loginButton.addStyleName(AbstractField.CSS.cbtGradientGreen());
    sessionForm.add(loginButton);

    final Label registerLabel = new Label(CONSTANTS.registerLabel());
    registerLabel.addStyleName(CSS.registerLabel());
    sessionForm.add(registerLabel);

    //-----------------------------------------------
    // Register Agent button
    //-----------------------------------------------
    final HTML registeragentButton = new HTML(CONSTANTS.registeragentLabel());
    registeragentButton.addClickHandler(new ClickHandler() {
        @Override
        public void onClick(ClickEvent event) {
            AbstractRoot.renderTabs(Razor.ORGANIZATION_TAB, new Agent());
        }
    });
    registeragentButton.addStyleName(CSS.sessionButton());
    registeragentButton.addStyleName(CSS.registerButton());
    registeragentButton.addStyleName(AbstractField.CSS.cbtGradientBase());
    sessionForm.add(registeragentButton);

    //-----------------------------------------------
    // Register Manager button
    //-----------------------------------------------
    final HTML registermanagerButton = new HTML(CONSTANTS.registermanagerLabel());
    registermanagerButton.addClickHandler(new ClickHandler() {
        @Override
        public void onClick(ClickEvent event) {
            AbstractRoot.renderTabs(Razor.ORGANIZATION_TAB, new Organization());
        }
    });
    registermanagerButton.addStyleName(CSS.sessionButton());
    registermanagerButton.addStyleName(CSS.registerButton());
    registermanagerButton.addStyleName(AbstractField.CSS.cbtGradientBase());
    sessionForm.add(registermanagerButton);

    //-----------------------------------------------
    // Register Affiliate button
    //-----------------------------------------------
    final HTML registercreatorButton = new HTML(CONSTANTS.registercreatorLabel());
    registercreatorButton.addClickHandler(new ClickHandler() {
        @Override
        public void onClick(ClickEvent event) {
            PartyPopup.getInstance().show(Party.Type.Affiliate, null, null);
        }
    });
    registercreatorButton.addStyleName(CSS.sessionButton());
    registercreatorButton.addStyleName(CSS.registerButton());
    registercreatorButton.addStyleName(AbstractField.CSS.cbtGradientBase());
    sessionForm.add(registercreatorButton);

    Label infoLabel = new Label(CONSTANTS.infoLabel());
    infoLabel.addStyleName(CSS.registerLabel());
    sessionForm.add(infoLabel);

    //-----------------------------------------------
    // More Info button
    //-----------------------------------------------
    final HTML infoButton = new HTML(CONSTANTS.infoButton());
    infoButton.addClickHandler(new ClickHandler() {
        @Override
        public void onClick(ClickEvent event) {
            Window.open(HOSTS.infoUrl(), CONSTANTS.infoTitle(),
                    "menubar=yes,location=yes,resizable=yes,scrollbars=yes,status=yes");
        }
    });
    infoButton.addStyleName(CSS.sessionButton());
    infoButton.addStyleName(CSS.registerButton());
    infoButton.addStyleName(AbstractField.CSS.cbtGradientBase());
    sessionForm.add(infoButton);

    FlowPanel shadow = new FlowPanel();
    shadow.addStyleName(AbstractField.CSS.cbtAbstractShadow());
    west.add(shadow);

    //      if(getUserAgent().contains("msie")) {
    //         loginButton.setVisible(false);
    //         registerLabel.setVisible(false);
    //         registeragentButton.setVisible(false);
    //         registermanagerButton.setVisible(false);
    //         sessionError.setVisible(true);
    //      }
    onRefresh();
    onReset(Session.LOGGED_OUT);
}