ref 17169: Selection of users in the Sharing panel

https://support.d4science.org/issues/17169

Added support to workspace users discovery by VREs

git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@181354 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2019-07-29 17:38:36 +00:00
parent 3ce6d72e31
commit da99a5b2ab
1 changed files with 6 additions and 11 deletions

View File

@ -104,6 +104,7 @@ public class PanelMultiDragWorkspaceContact extends ContentPanel {
private ComboBox<UserVRE> vreListCombo;
private ListStore<UserVRE> vreListStore;
private TextArea textAreaAlreadyShared;
private ContentPanel alreadySharedPanel;
public PanelMultiDragWorkspaceContact(InfoContactModel owner, List<InfoContactModel> targetContact) {
super();
@ -155,6 +156,7 @@ public class PanelMultiDragWorkspaceContact extends ContentPanel {
}
textAreaAlreadyShared.setValue(alreadyShared);
GWT.log("PanelMultiDragWorkspaceContact TextArea Set");
}
@ -208,26 +210,21 @@ public class PanelMultiDragWorkspaceContact extends ContentPanel {
GWT.log("PanelMultiDragWorkspaceContact Create Start");
// Already Shared
GWT.log("PanelMultiDragWorkspaceContact Already Shared Panel");
ContentPanel alreadySharedPanel = new ContentPanel();
alreadySharedPanel = new ContentPanel();
alreadySharedPanel.setSize(WIDTH_ALREADY_SHARED_PANEL, HEIGHT_ALREADY_SHARED_PANEL);
alreadySharedPanel.setHeaderVisible(false);
alreadySharedPanel.setLayout(new FitLayout());
alreadySharedPanel.setStyleAttribute("padding-bottom", "5px");
// VerticalPanel vpShared = new VerticalPanel();
// vpShared.setVerticalAlign(VerticalAlignment.MIDDLE);
// vpShared.setHorizontalAlign(HorizontalAlignment.CENTER);
// vpShared.setStyleAttribute("padding", "5px");
// vpShared.setLayout(new FitLayout());
HorizontalPanel hpSharedContacts = new HorizontalPanel();
hpSharedContacts.setHorizontalAlign(HorizontalAlignment.CENTER);
hpSharedContacts.setVerticalAlign(VerticalAlignment.MIDDLE);
textAreaAlreadyShared = new TextArea();
// textField.setFieldLabel("Already shared with");
// textField.setHeight(30);
textAreaAlreadyShared.setWidth(WIDTH_ALREADY_SHARED_TEXT_AREA);
textAreaAlreadyShared.setHeight(HEIGHT_ALREADY_SHARED_TEXT_AREA);
alreadySharedPanel.setStyleAttribute("padding-bottom", "5px");
textAreaAlreadyShared.setReadOnly(true);
textAreaAlreadyShared.setStyleAttribute("background-color", "white");
alreadySharedPanel.add(textAreaAlreadyShared);
Label label = new Label("Already shared with");
@ -238,8 +235,6 @@ public class PanelMultiDragWorkspaceContact extends ContentPanel {
hpSharedContacts.add(label);
hpSharedContacts.add(textAreaAlreadyShared);
// vpShared.add(hpSharedContacts);
// alreadySharedPanel.add(vpShared);
alreadySharedPanel.add(hpSharedContacts);
add(alreadySharedPanel);