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