56 lines
975 B
Java
56 lines
975 B
Java
package org.gcube.portlets.user.td.columnwidget.client.store;
|
|
|
|
import org.gcube.portlets.user.td.widgetcommonevent.shared.tr.column.PeriodDataType;
|
|
|
|
/**
|
|
*
|
|
* @author "Giancarlo Panichi"
|
|
* <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
|
*
|
|
*/
|
|
public class TimeDimensionTypeElement {
|
|
|
|
protected int id; // For insert in table only
|
|
protected PeriodDataType type;
|
|
|
|
|
|
public TimeDimensionTypeElement(int id,PeriodDataType type){
|
|
this.id=id;
|
|
this.type=type;
|
|
}
|
|
|
|
|
|
public int getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(int id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public PeriodDataType getType() {
|
|
return type;
|
|
}
|
|
public void setCode(PeriodDataType type) {
|
|
this.type = type;
|
|
}
|
|
|
|
public String getLabel() {
|
|
return type.getPeriodDataTypeLabel();
|
|
}
|
|
|
|
public String getViewLabel() {
|
|
return type.getPeriodDataTypeLabel();
|
|
}
|
|
|
|
|
|
@Override
|
|
public String toString() {
|
|
return "TimeDimensionTypeElement [id=" + id + ", type=" + type + "]";
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|