Package org.damour.base.client.ui.admin

Examples of org.damour.base.client.ui.admin.EditGroupPanel


  public void execute() {
    popup.hide();
    final UserGroup group = new UserGroup();
    group.setOwner(user);

    final EditGroupPanel editGroupPanel = new EditGroupPanel(null, callback, null, group, false, false);
    final PromptDialogBox editGroupDialogBox = new PromptDialogBox("Create New Group", "OK", null, "Cancel", false, true);
    editGroupDialogBox.setContent(editGroupPanel);
    editGroupDialogBox.setFocusWidget(editGroupPanel.getNameTextBox());
    editGroupDialogBox.setValidatorCallback(new IDialogValidatorCallback() {
      public boolean validate() {
        if (editGroupPanel.getNameTextBox().getText() == null || "".equals(editGroupPanel.getNameTextBox().getText())) {
          MessageDialogBox dialog = new MessageDialogBox("Error", "Enter a group name.", true, true, true);
          dialog.center();
          return false;
        }
        return true;
      }
    });
    editGroupDialogBox.setCallback(new IDialogCallback() {
      public void okPressed() {
        if (!editGroupPanel.apply()) {
          editGroupDialogBox.center();
        }
      }

      public void cancelPressed() {
View Full Code Here

TOP

Related Classes of org.damour.base.client.ui.admin.EditGroupPanel

Copyright © 2018 www.massapicom. 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.