2014-10-08 19:02:01 +02:00
|
|
|
package org.gcube.portlets.user.td.widgetcommonevent.shared.dataview;
|
|
|
|
|
|
|
|
import org.gcube.portlets.user.td.widgetcommonevent.shared.TRId;
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
2017-05-16 16:35:52 +02:00
|
|
|
* @author Giancarlo Panichi
|
|
|
|
*
|
2014-10-08 19:02:01 +02:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
public class TabularResourceDataView extends DataView {
|
|
|
|
|
|
|
|
private static final long serialVersionUID = -8615122839978608904L;
|
|
|
|
|
|
|
|
private TRId trId;
|
2014-10-17 18:41:37 +02:00
|
|
|
private String tabName;
|
2014-10-15 18:50:57 +02:00
|
|
|
|
2014-10-08 19:02:01 +02:00
|
|
|
|
|
|
|
public TabularResourceDataView() {
|
|
|
|
super();
|
2015-06-09 19:07:57 +02:00
|
|
|
dataViewType = DataViewType.GRID;
|
2014-10-15 18:50:57 +02:00
|
|
|
|
2014-10-08 19:02:01 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public TabularResourceDataView(TRId trId) {
|
|
|
|
super();
|
2015-06-09 19:07:57 +02:00
|
|
|
dataViewType = DataViewType.GRID;
|
2014-10-08 19:02:01 +02:00
|
|
|
this.trId = trId;
|
2014-10-17 18:41:37 +02:00
|
|
|
this.tabName = null;
|
|
|
|
}
|
|
|
|
|
|
|
|
public TabularResourceDataView(TRId trId, String tabName) {
|
|
|
|
super();
|
2015-06-09 19:07:57 +02:00
|
|
|
dataViewType = DataViewType.GRID;
|
2014-10-17 18:41:37 +02:00
|
|
|
this.trId = trId;
|
|
|
|
this.tabName = tabName;
|
2014-10-08 19:02:01 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public TRId getTrId() {
|
|
|
|
return trId;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setTrId(TRId trId) {
|
|
|
|
this.trId = trId;
|
|
|
|
}
|
|
|
|
|
2014-10-17 18:41:37 +02:00
|
|
|
public String getTabName() {
|
|
|
|
return tabName;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setTabName(String tabName) {
|
|
|
|
this.tabName = tabName;
|
|
|
|
}
|
|
|
|
|
2014-10-08 19:02:01 +02:00
|
|
|
@Override
|
|
|
|
public String toString() {
|
2014-10-17 18:41:37 +02:00
|
|
|
return "TabularResourceDataView [trId=" + trId + ", tabName=" + tabName
|
|
|
|
+ "]";
|
2014-10-08 19:02:01 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2014-10-17 18:41:37 +02:00
|
|
|
|
2014-10-08 19:02:01 +02:00
|
|
|
|
|
|
|
}
|