git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/widgets/workspace-sharing-widget@92428 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
f9987bd828
commit
d9196c6caf
|
@ -13,4 +13,8 @@ public interface ConstantsSharing {
|
|||
public static final String LOADINGSTYLE = "x-mask-loading";
|
||||
public static final String SERVER_ERROR = "Sorry, an error has occurred on the server when";
|
||||
public static final String TRY_AGAIN = "Try again";
|
||||
|
||||
|
||||
public static int WIDTH_DIALOG = 530;
|
||||
public static int HEIGHT_DIALOG = 530;
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@ import org.gcube.portlets.widgets.workspacesharingwidget.client.rpc.WorkspaceSha
|
|||
import org.gcube.portlets.widgets.workspacesharingwidget.client.rpc.WorkspaceSharingServiceAsync;
|
||||
import org.gcube.portlets.widgets.workspacesharingwidget.shared.ACL_TYPE;
|
||||
|
||||
import com.extjs.gxt.ui.client.widget.Window;
|
||||
import com.google.gwt.core.client.GWT;
|
||||
import com.google.gwt.user.client.rpc.AsyncCallback;
|
||||
|
||||
|
@ -49,6 +50,9 @@ public class WorkspaceSharingController {
|
|||
|
||||
if(shareOnlyOwner){
|
||||
loadMyLogin();
|
||||
|
||||
Window win = new Window();
|
||||
// win.setSize(c, height)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -76,7 +80,6 @@ public class WorkspaceSharingController {
|
|||
return myLogin;
|
||||
}
|
||||
|
||||
|
||||
public String getWorkspaceItemId() {
|
||||
return workspaceItemId;
|
||||
}
|
||||
|
@ -86,13 +89,9 @@ public class WorkspaceSharingController {
|
|||
return shareOnlyOwner;
|
||||
}
|
||||
|
||||
public void setWorkspaceItemId(String workspaceItemId) {
|
||||
this.workspaceItemId = workspaceItemId;
|
||||
}
|
||||
|
||||
|
||||
public void setShareOnlyOwner(boolean shareOnlyOwner) {
|
||||
this.shareOnlyOwner = shareOnlyOwner;
|
||||
|
||||
public ACL_TYPE getDefaultPermission() {
|
||||
return defaultPermission;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -3,6 +3,7 @@ package org.gcube.portlets.widgets.workspacesharingwidget.client.view.sharing;
|
|||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.gcube.portlets.widgets.workspacesharingwidget.client.ConstantsSharing;
|
||||
import org.gcube.portlets.widgets.workspacesharingwidget.client.WorkspaceSharingController;
|
||||
import org.gcube.portlets.widgets.workspacesharingwidget.client.view.sharing.multisuggest.MultiDragContact;
|
||||
import org.gcube.portlets.widgets.workspacesharingwidget.client.view.sharing.multisuggest.MultiValuePanel;
|
||||
|
@ -40,7 +41,7 @@ import com.google.gwt.user.client.ui.Label;
|
|||
*/
|
||||
public class DialogShareWItem extends Dialog {
|
||||
|
||||
private int widthDialog = 530;
|
||||
|
||||
private int heightTextArea = 100;
|
||||
private TextField<String> txtName;
|
||||
private TextArea textAreaDescription = new TextArea();
|
||||
|
@ -90,8 +91,7 @@ public class DialogShareWItem extends Dialog {
|
|||
public DialogShareWItem(FileModel fileModel, HandlerManager eventBus, final boolean shareOnlyOwner, final ACL_TYPE defaultACL) {
|
||||
initLayout();
|
||||
this.fileToShare = fileModel;
|
||||
|
||||
setWidth(widthDialog);
|
||||
|
||||
setButtons(Dialog.OKCANCEL);
|
||||
|
||||
String heading = "Share workspace";
|
||||
|
@ -256,11 +256,10 @@ public class DialogShareWItem extends Dialog {
|
|||
setModal(true);
|
||||
setScrollMode(Scroll.AUTOY);
|
||||
setBodyStyle("padding: 9px; background: none");
|
||||
setWidth(widthDialog);
|
||||
setHeight(397);
|
||||
setWidth(ConstantsSharing.WIDTH_DIALOG);
|
||||
setHeight(ConstantsSharing.HEIGHT_DIALOG);
|
||||
setResizable(true);
|
||||
setButtonAlign(HorizontalAlignment.CENTER);
|
||||
setWidth(widthDialog);
|
||||
setButtons(Dialog.OKCANCEL);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue