root / web_client / src / gr / grnet / pithos / web / client / commands / NewGroupCommand.java @ 6dd67d1c
History | View | Annotate | Download (679 Bytes)
1 |
/*
|
---|---|
2 |
* Copyright (c) 2011 Greek Research and Technology Network
|
3 |
*/
|
4 |
package gr.grnet.pithos.web.client.commands; |
5 |
|
6 |
import gr.grnet.pithos.web.client.GroupPropertiesDialog; |
7 |
|
8 |
import com.google.gwt.user.client.Command; |
9 |
import com.google.gwt.user.client.ui.PopupPanel; |
10 |
|
11 |
|
12 |
public class NewGroupCommand implements Command{ |
13 |
private PopupPanel containerPanel;
|
14 |
|
15 |
/**
|
16 |
* @param _containerPanel
|
17 |
*/
|
18 |
public NewGroupCommand(PopupPanel _containerPanel){
|
19 |
containerPanel = _containerPanel; |
20 |
} |
21 |
|
22 |
@Override
|
23 |
public void execute() { |
24 |
containerPanel.hide(); |
25 |
displayNewGroup(); |
26 |
} |
27 |
|
28 |
void displayNewGroup() {
|
29 |
GroupPropertiesDialog dlg = new GroupPropertiesDialog(true); |
30 |
dlg.center(); |
31 |
} |
32 |
|
33 |
} |