Package org.damour.base.client.ui.buttons

Examples of org.damour.base.client.ui.buttons.Button.addClickHandler()


        hexText.setText(hex);
      }
    });

    Button generateCustomKeyButton = new Button("Use as Custom Phrase");
    generateCustomKeyButton.addClickHandler(new ClickHandler() {

      public void onClick(ClickEvent event) {
        String ascii = asciiText.getText();
        String hex = "";
        for (int i = 0; i < ascii.length(); i++) {
View Full Code Here


    statsTable.setText(0, 0, "Loading...");
    statsTable.setBorderWidth(1);
    statsTable.setCellSpacing(5);
    add(statsTable);
    Button refreshButton = new Button("Refresh");
    refreshButton.addClickHandler(new ClickHandler() {
      public void onClick(ClickEvent event) {
        fetchHibernateStats();
      }
    });
    Button resetButton = new Button("Reset");
View Full Code Here

        fetchHibernateStats();
      }
    });
    Button resetButton = new Button("Reset");
    resetButton.setTitle("Reset Hibernate");
    resetButton.addClickHandler(new ClickHandler() {
      public void onClick(ClickEvent event) {
        resetHibernate();
      }
    });
View Full Code Here

    statsTable.getCellFormatter().setHorizontalAlignment(row, 8, HasHorizontalAlignment.ALIGN_RIGHT);

    row++;
    for (final HibernateStat stat : stats) {
      Button evictButton = new Button("X");
      evictButton.addClickHandler(new ClickHandler() {
        public void onClick(ClickEvent event) {
          evictClassFromCache(stat.getRegionName());
        }
      });
View Full Code Here

    final ScrollTable table = new ScrollTable(columnWidths, false);
    clear();
    add(table);
    Button refreshButton = new Button("Refresh");
    refreshButton.addClickHandler(new ClickHandler() {

      public void onClick(ClickEvent event) {
        fetchReferrals(table);
      }
    });
View Full Code Here

    statsTable.setText(0, 0, "Loading...");
    statsTable.setBorderWidth(1);
    statsTable.setCellSpacing(5);
    add(statsTable);
    Button refreshButton = new Button("Refresh");
    refreshButton.addClickHandler(new ClickHandler() {
      public void onClick(ClickEvent event) {
        fetchMemoryStats();
      }
    });
    Button gcButton = new Button("Request GC");
View Full Code Here

        fetchMemoryStats();
      }
    });
    Button gcButton = new Button("Request GC");
    gcButton.setTitle("Request Garbage Collection");
    gcButton.addClickHandler(new ClickHandler() {
      public void onClick(ClickEvent event) {
        requestGarbageCollection();
      }
    });
View Full Code Here

    principalListBox.setVisibleItemCount(6);
    principalListBox.setWidth("180px");

    VerticalPanel buttonPanel = new VerticalPanel();
    Button addButton = new Button("Add...");
    addButton.addClickHandler(new ClickHandler() {
      public void onClick(ClickEvent event) {
        final VerticalPanel addPermissionPanel = new VerticalPanel();
        final ListBox addPrincipalListBox = new ListBox(true);
        addPrincipalListBox.setWidth("200px");
        addPrincipalListBox.setVisibleItemCount(12);
View Full Code Here

        dialog.center();
      }
    });

    Button removeButton = new Button("Remove...");
    removeButton.addClickHandler(new ClickHandler() {
      public void onClick(ClickEvent event) {
        String principalName = principalListBox.getValue(principalListBox.getSelectedIndex());
        Permission permission = null;
        for (Permission mypermission : permissions) {
          if (showUserPerms && mypermission.getSecurityPrincipal() instanceof User) {
View Full Code Here

    validatedCheckBox.setValue(user.isValidated());
    administratorCheckBox.setValue(user.isAdministrator());
    birthdayPicker.setValue(birthday);

    Button applyButton = new Button("Apply");
    applyButton.addClickHandler(new ClickHandler() {
      public void onClick(ClickEvent event) {
        user.setUsername(usernameTextBox.getText());
        user.setPasswordHint(passwordHintTextBox.getText());
        user.setFirstname(firstnameTextBox.getText());
        user.setLastname(lastnameTextBox.getText());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.