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

Source Code of org.damour.base.client.ui.admin.commands.JoinLeaveGroupsCommand

package org.damour.base.client.ui.admin.commands;

import org.damour.base.client.objects.User;
import org.damour.base.client.ui.admin.EditGroupsForUserPanel;
import org.damour.base.client.ui.buttons.MenuButtonCommand;
import org.damour.base.client.ui.dialogs.PromptDialogBox;

public class JoinLeaveGroupsCommand implements MenuButtonCommand {
 
  User user;

  public JoinLeaveGroupsCommand(User user) {
    this.user = user;
  }

  public void execute() {
    popup.hide();
    final EditGroupsForUserPanel editGroupsForUserPanel = new EditGroupsForUserPanel(null, null, null, user);
    final PromptDialogBox editGroupDialogBox = new PromptDialogBox("Join/Leave Groups", "OK", null, null, false, true);
    editGroupDialogBox.setContent(editGroupsForUserPanel);
    editGroupDialogBox.center();
  }
}
TOP

Related Classes of org.damour.base.client.ui.admin.commands.JoinLeaveGroupsCommand

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.