Fixed TimeZone

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-portlet@115613 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2015-06-29 12:40:13 +00:00
parent 983a4ccd3d
commit 93d005639d
5 changed files with 40 additions and 9 deletions

View File

@ -1,6 +1,7 @@
package org.gcube.portlets.user.td.client.template;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.gcube.portlets.user.td.client.resource.TabularDataResources;
@ -14,11 +15,13 @@ import org.gcube.portlets.user.td.widgetcommonevent.client.type.SessionExpiredTy
import org.gcube.portlets.user.td.widgetcommonevent.shared.TRId;
import com.allen_sauer.gwt.log.client.Log;
import com.google.gwt.cell.client.DateCell;
import com.google.gwt.core.client.GWT;
import com.google.gwt.core.client.Scheduler;
import com.google.gwt.core.client.Scheduler.ScheduledCommand;
import com.google.gwt.event.dom.client.KeyUpEvent;
import com.google.gwt.event.dom.client.KeyUpHandler;
import com.google.gwt.i18n.client.DateTimeFormat;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.web.bindery.event.shared.EventBus;
import com.sencha.gxt.cell.core.client.ButtonCell.IconAlign;
@ -63,6 +66,8 @@ import com.sencha.gxt.widget.core.client.toolbar.ToolBar;
public class TemplateApplyPanel extends FramedPanel {
private static final String WIDTH = "840px";
private static final String HEIGHT = "520px";
private static final DateTimeFormat sdf=DateTimeFormat.getFormat("yyyy-MM-dd HH:mm");
private EventBus eventBus;
private TemplateApplyDialog parent;
private TRId trId;
@ -122,10 +127,12 @@ public class TemplateApplyPanel extends FramedPanel {
ColumnConfig<TemplateData, String> descriptionCol = new ColumnConfig<TemplateData, String>(
props.description(), 90, "Description");
ColumnConfig<TemplateData, String> creationDateCol = new ColumnConfig<TemplateData, String>(
ColumnConfig<TemplateData, Date> creationDateCol = new ColumnConfig<TemplateData, Date>(
props.creationDate(), 60, "Creation Date");
//DateTimeFormat.getFormat(PredefinedFormat.DATE_SHORT))
creationDateCol.setCell(new DateCell(sdf));
List<ColumnConfig<TemplateData, ?>> l = new ArrayList<ColumnConfig<TemplateData, ?>>();
l.add(nameCol);
l.add(categoryCol);

View File

@ -2,6 +2,8 @@ package org.gcube.portlets.user.td.client.template;
import java.util.Date;
import org.gcube.portlets.user.td.gwtservice.shared.template.TemplateData;
import com.google.gwt.editor.client.Editor.Path;
@ -25,7 +27,7 @@ public interface TemplateDataProperties extends PropertyAccess<TemplateData> {
ValueProvider<TemplateData, String> ownerLogin();
ValueProvider<TemplateData, String> agency();
ValueProvider<TemplateData, String> description();
ValueProvider<TemplateData, String> creationDate();
ValueProvider<TemplateData, Date> creationDate();

View File

@ -1,6 +1,7 @@
package org.gcube.portlets.user.td.client.template;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.gcube.portlets.user.td.client.resource.TabularDataResources;
@ -13,11 +14,13 @@ import org.gcube.portlets.user.td.widgetcommonevent.client.event.SessionExpiredE
import org.gcube.portlets.user.td.widgetcommonevent.client.type.SessionExpiredType;
import com.allen_sauer.gwt.log.client.Log;
import com.google.gwt.cell.client.DateCell;
import com.google.gwt.core.client.GWT;
import com.google.gwt.core.client.Scheduler;
import com.google.gwt.core.client.Scheduler.ScheduledCommand;
import com.google.gwt.event.dom.client.KeyUpEvent;
import com.google.gwt.event.dom.client.KeyUpHandler;
import com.google.gwt.i18n.client.DateTimeFormat;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.web.bindery.event.shared.EventBus;
import com.sencha.gxt.cell.core.client.ButtonCell.IconAlign;
@ -56,6 +59,8 @@ import com.sencha.gxt.widget.core.client.toolbar.ToolBar;
public class TemplateDeletePanel extends FramedPanel {
private static final String WIDTH = "840px";
private static final String HEIGHT = "520px";
private static final DateTimeFormat sdf=DateTimeFormat.getFormat("yyyy-MM-dd HH:mm");
private EventBus eventBus;
private TemplateDeleteDialog parent;
private TemplateDeleteSession templateDeleteSession;
@ -112,9 +117,11 @@ public class TemplateDeletePanel extends FramedPanel {
ColumnConfig<TemplateData, String> descriptionCol = new ColumnConfig<TemplateData, String>(
props.description(), 90, "Description");
ColumnConfig<TemplateData, String> creationDateCol = new ColumnConfig<TemplateData, String>(
ColumnConfig<TemplateData, Date> creationDateCol = new ColumnConfig<TemplateData, Date>(
props.creationDate(), 60, "Creation Date");
creationDateCol.setCell(new DateCell(sdf));
List<ColumnConfig<TemplateData, ?>> l = new ArrayList<ColumnConfig<TemplateData, ?>>();
l.add(nameCol);

View File

@ -1,6 +1,7 @@
package org.gcube.portlets.user.td.client.template;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.gcube.portlets.user.td.client.resource.TabularDataResources;
@ -12,11 +13,13 @@ import org.gcube.portlets.user.td.widgetcommonevent.client.event.SessionExpiredE
import org.gcube.portlets.user.td.widgetcommonevent.client.type.SessionExpiredType;
import com.allen_sauer.gwt.log.client.Log;
import com.google.gwt.cell.client.DateCell;
import com.google.gwt.core.client.GWT;
import com.google.gwt.core.client.Scheduler;
import com.google.gwt.core.client.Scheduler.ScheduledCommand;
import com.google.gwt.event.dom.client.KeyUpEvent;
import com.google.gwt.event.dom.client.KeyUpHandler;
import com.google.gwt.i18n.client.DateTimeFormat;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.web.bindery.event.shared.EventBus;
import com.sencha.gxt.cell.core.client.ButtonCell.IconAlign;
@ -61,7 +64,8 @@ import com.sencha.gxt.widget.core.client.toolbar.ToolBar;
public class TemplateOpenPanel extends FramedPanel {
private static final String WIDTH = "840px";
private static final String HEIGHT = "520px";
private static final DateTimeFormat sdf=DateTimeFormat.getFormat("yyyy-MM-dd HH:mm");
private EventBus eventBus;
private TemplateOpenDialog parent;
@ -118,9 +122,12 @@ public class TemplateOpenPanel extends FramedPanel {
ColumnConfig<TemplateData, String> descriptionCol = new ColumnConfig<TemplateData, String>(
props.description(), 90, "Description");
ColumnConfig<TemplateData, String> creationDateCol = new ColumnConfig<TemplateData, String>(
ColumnConfig<TemplateData, Date> creationDateCol = new ColumnConfig<TemplateData, Date>(
props.creationDate(), 60, "Creation Date");
creationDateCol.setCell(new DateCell(sdf));
List<ColumnConfig<TemplateData, ?>> l = new ArrayList<ColumnConfig<TemplateData, ?>>();
l.add(nameCol);
l.add(categoryCol);

View File

@ -1,6 +1,7 @@
package org.gcube.portlets.user.td.client.template;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.gcube.portlets.user.td.client.resource.TabularDataResources;
@ -12,11 +13,13 @@ import org.gcube.portlets.user.td.widgetcommonevent.client.event.SessionExpiredE
import org.gcube.portlets.user.td.widgetcommonevent.client.type.SessionExpiredType;
import com.allen_sauer.gwt.log.client.Log;
import com.google.gwt.cell.client.DateCell;
import com.google.gwt.core.client.GWT;
import com.google.gwt.core.client.Scheduler;
import com.google.gwt.core.client.Scheduler.ScheduledCommand;
import com.google.gwt.event.dom.client.KeyUpEvent;
import com.google.gwt.event.dom.client.KeyUpHandler;
import com.google.gwt.i18n.client.DateTimeFormat;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.web.bindery.event.shared.EventBus;
import com.sencha.gxt.cell.core.client.ButtonCell.IconAlign;
@ -61,6 +64,8 @@ import com.sencha.gxt.widget.core.client.toolbar.ToolBar;
public class TemplateSharePanel extends FramedPanel {
private static final String WIDTH = "840px";
private static final String HEIGHT = "520px";
private static final DateTimeFormat sdf=DateTimeFormat.getFormat("yyyy-MM-dd HH:mm");
private EventBus eventBus;
private TemplateShareDialog parent;
@ -116,9 +121,12 @@ public class TemplateSharePanel extends FramedPanel {
ColumnConfig<TemplateData, String> descriptionCol = new ColumnConfig<TemplateData, String>(
props.description(), 90, "Description");
ColumnConfig<TemplateData, String> creationDateCol = new ColumnConfig<TemplateData, String>(
ColumnConfig<TemplateData, Date> creationDateCol = new ColumnConfig<TemplateData, Date>(
props.creationDate(), 60, "Creation Date");
creationDateCol.setCell(new DateCell(sdf));
List<ColumnConfig<TemplateData, ?>> l = new ArrayList<ColumnConfig<TemplateData, ?>>();
l.add(nameCol);
l.add(categoryCol);