Minor updated
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-information-widget@86438 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
32f22629ed
commit
f029c364bb
|
@ -6,7 +6,7 @@ import org.gcube.portlets.user.td.gwtservice.client.rpc.TDGWTServiceAsync;
|
|||
import org.gcube.portlets.user.td.gwtservice.shared.tr.TRId;
|
||||
import org.gcube.portlets.user.td.gwtservice.shared.tr.TabResource;
|
||||
import org.gcube.portlets.user.td.gwtservice.shared.tr.TableData;
|
||||
import org.gcube.portlets.user.td.metadatawidget.client.MetadataAccordionPanel;
|
||||
import org.gcube.portlets.user.td.metadatawidget.client.TableMetadataAccordionPanel;
|
||||
|
||||
import com.allen_sauer.gwt.log.client.Log;
|
||||
import com.google.gwt.user.client.rpc.AsyncCallback;
|
||||
|
@ -38,7 +38,7 @@ public class TabularResourceProperties extends FramedPanel {
|
|||
protected TextArea rightField;
|
||||
|
||||
protected TextField tableTypeNameField;
|
||||
protected MetadataAccordionPanel metadataPanel;
|
||||
protected TableMetadataAccordionPanel tableMetadataPanel;
|
||||
protected VerticalLayoutContainer layoutTable;
|
||||
|
||||
public TabularResourceProperties(String name, EventBus eventBus) {
|
||||
|
@ -125,14 +125,14 @@ public class TabularResourceProperties extends FramedPanel {
|
|||
|
||||
protected void updateTable(TableData tableData) {
|
||||
tableTypeNameField.setValue(tableData.getTypeName());
|
||||
if(metadataPanel!=null){
|
||||
if(tableMetadataPanel!=null){
|
||||
tableFieldSet.remove(layoutTable);
|
||||
layoutTable.remove(metadataPanel);
|
||||
layoutTable.remove(tableMetadataPanel);
|
||||
}
|
||||
TRId trId=tableData.getTrId();
|
||||
|
||||
metadataPanel= new MetadataAccordionPanel("Information", trId, eventBus);
|
||||
layoutTable.add(metadataPanel, new VerticalLayoutData(-1, -1));
|
||||
tableMetadataPanel= new TableMetadataAccordionPanel("Information", trId, eventBus);
|
||||
layoutTable.add(tableMetadataPanel, new VerticalLayoutData(-1, -1));
|
||||
tableFieldSet.add(layoutTable);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue