Minor updated

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-information-widget@85725 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2013-11-19 17:20:52 +00:00
parent b45f75ff53
commit c3941ad25b
1 changed files with 9 additions and 12 deletions

View File

@ -10,10 +10,9 @@ import org.gcube.portlets.user.td.gwtservice.shared.TableData;
import com.allen_sauer.gwt.log.client.Log;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.web.bindery.event.shared.EventBus;
import com.sencha.gxt.widget.core.client.ContentPanel;
import com.sencha.gxt.cell.core.client.form.TextAreaInputCell.Resizable;
import com.sencha.gxt.widget.core.client.FramedPanel;
import com.sencha.gxt.widget.core.client.box.AlertMessageBox;
import com.sencha.gxt.widget.core.client.container.HasWidth;
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer;
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer.VerticalLayoutData;
import com.sencha.gxt.widget.core.client.event.HideEvent;
@ -23,7 +22,7 @@ import com.sencha.gxt.widget.core.client.form.FieldSet;
import com.sencha.gxt.widget.core.client.form.TextArea;
import com.sencha.gxt.widget.core.client.form.TextField;
public class TabularResourceProperties extends ContentPanel {
public class TabularResourceProperties extends FramedPanel {
protected String headingTitle;
protected HashMap<String, String> tabularResourcePropertiesMap;
protected VerticalLayoutContainer vl;
@ -46,16 +45,11 @@ public class TabularResourceProperties extends ContentPanel {
super();
setId(name);
this.eventBus = eventBus;
forceLayoutOnResize=true;
vl = new VerticalLayoutContainer();
initInformation();
FramedPanel panel = new FramedPanel();
panel.setHeaderVisible(false);
panel.setBodyStyle("background: none; padding: 2px; min-width:310px;");
panel.add(vl);
this.add(panel);
initInformation();
this.add(vl);
}
@ -63,6 +57,7 @@ public class TabularResourceProperties extends ContentPanel {
trFieldSet = new FieldSet();
trFieldSet.setHeadingText("Tabular Resource");
trFieldSet.setCollapsible(true);
trFieldSet.setResize(true);
VerticalLayoutContainer layoutTabularResource = new VerticalLayoutContainer();
trFieldSet.add(layoutTabularResource);
@ -113,6 +108,7 @@ public class TabularResourceProperties extends ContentPanel {
tableFieldSet = new FieldSet();
tableFieldSet.setHeadingText("Table");
tableFieldSet.setCollapsible(true);
tableFieldSet.setResize(true);
VerticalLayoutContainer layoutTable = new VerticalLayoutContainer();
tableFieldSet.add(layoutTable);
@ -125,8 +121,9 @@ public class TabularResourceProperties extends ContentPanel {
tableMetaDataField = new TextArea();
tableMetaDataField.setReadOnly(true);
tableMetaDataField.setResizable(Resizable.BOTH);
tableMetaDataField.setSize("", "60px");
tableMetaDataField.setValue("");
tableMetaDataField.setHeight("60px");
layoutTable.add(new FieldLabel(tableMetaDataField, "MetaData"),
new VerticalLayoutData(-1, -1));