209: TDM - Show the resources through a ListView widget

Task-Url: https://support.d4science.org/issues/209

Moved Resources to MainPanel

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-information-widget@115245 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2015-06-05 16:41:31 +00:00
parent ec30e2fcd8
commit dac74c1c8e
1 changed files with 10 additions and 6 deletions

View File

@ -44,6 +44,7 @@ import com.sencha.gxt.data.shared.ListStore;
import com.sencha.gxt.widget.core.client.FramedPanel;
import com.sencha.gxt.widget.core.client.button.TextButton;
import com.sencha.gxt.widget.core.client.container.BoxLayoutContainer.BoxLayoutData;
import com.sencha.gxt.widget.core.client.container.BoxLayoutContainer.BoxLayoutPack;
import com.sencha.gxt.widget.core.client.container.HBoxLayoutContainer;
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer;
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer.VerticalLayoutData;
@ -96,7 +97,7 @@ public class TabularResourceProperties extends FramedPanel {
private TextButton saveButton;
private TextButton validationsButton;
private TextButton resourcesButton;
//private TextButton resourcesButton;
private ArrayList<LicenceData> licencesList;
@ -289,7 +290,7 @@ public class TabularResourceProperties extends FramedPanel {
validationsButton.addSelectHandler(validationsHandler);
// Resources Button
resourcesButton = new TextButton(msgs.resourcesButton());
/*resourcesButton = new TextButton(msgs.resourcesButton());
resourcesButton.setIcon(ResourceBundle.INSTANCE.resources());
resourcesButton.setIconAlign(IconAlign.RIGHT);
resourcesButton.setToolTip(msgs.resourcesButtonToolTip());
@ -301,15 +302,16 @@ public class TabularResourceProperties extends FramedPanel {
}
};
resourcesButton.addSelectHandler(resourcesHandler);
resourcesButton.addSelectHandler(resourcesHandler);*/
//
HBoxLayoutContainer hBox = new HBoxLayoutContainer();
hBox.setPack(BoxLayoutPack.CENTER);
hBox.add(saveButton, new BoxLayoutData(new Margins(2, 5, 2, 5)));
hBox.add(validationsButton, new BoxLayoutData(new Margins(2, 5, 2, 5)));
hBox.add(resourcesButton, new BoxLayoutData(new Margins(2, 5, 2, 5)));
//hBox.add(resourcesButton, new BoxLayoutData(new Margins(2, 5, 2, 5)));
layoutTabularResource.add(hBox, new VerticalLayoutData(-1, -1,
layoutTabularResource.add(hBox, new VerticalLayoutData(1, -1,
new Margins(2)));
@ -476,7 +478,8 @@ public class TabularResourceProperties extends FramedPanel {
}
}
protected void openResources() {
/*
protected void openResources() {
Log.debug("Request Resources Tab");
if (trId != null) {
WidgetRequestEvent e = new WidgetRequestEvent(
@ -487,6 +490,7 @@ public class TabularResourceProperties extends FramedPanel {
Log.error("TRId is null");
}
}
*/
protected void updateTable(TableData tableData) {