From ce389ed195a46042b99c53e5d34dfd7bbc449465 Mon Sep 17 00:00:00 2001 From: Costantino Perciante Date: Sat, 22 Oct 2016 14:05:40 +0000 Subject: [PATCH] fixed hour and minutes viewer git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/widgets/ckan-metadata-publisher-widget@133398 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../client/ui/timeandreanges/DataTimeBox.java | 10 ++++------ .../client/ui/timeandreanges/DataTimeBox.ui.xml | 6 ++++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main/java/org/gcube/portlets/widgets/ckandatapublisherwidget/client/ui/timeandreanges/DataTimeBox.java b/src/main/java/org/gcube/portlets/widgets/ckandatapublisherwidget/client/ui/timeandreanges/DataTimeBox.java index d8940a0..34340da 100644 --- a/src/main/java/org/gcube/portlets/widgets/ckandatapublisherwidget/client/ui/timeandreanges/DataTimeBox.java +++ b/src/main/java/org/gcube/portlets/widgets/ckandatapublisherwidget/client/ui/timeandreanges/DataTimeBox.java @@ -12,7 +12,6 @@ import com.google.gwt.user.client.ui.Composite; import com.google.gwt.user.client.ui.FlowPanel; import com.google.gwt.user.client.ui.Widget; -@SuppressWarnings("deprecation") public class DataTimeBox extends Composite{ private static DataTimeBoxUiBinder uiBinder = GWT @@ -26,7 +25,7 @@ public class DataTimeBox extends Composite{ private static final String MINOR_HYPHEN = "-"; private static final String COLON = ":"; private static final String INSERT_DATE_INSTANT_LABEL = "Insert a date"; - private static final String INSERT_TIME_INSTANT_LABEL = "Insert hour and minutes"; + private static final String INSERT_TIME_INSTANT_LABEL = "Hour and minutes"; private static final String INSERT_DATE_START_LABEL = "Insert a start date"; private static final String INSERT_DATE_END_LABEL = "Insert an end date"; private static final DateTimeFormat formatDate = DateTimeFormat.getFormat("yyyy/MM/dd"); @@ -51,16 +50,15 @@ public class DataTimeBox extends Composite{ initWidget(uiBinder.createAndBindUi(this)); this.isRange = isRange; startRangeDate.setPlaceholder(INSERT_DATE_INSTANT_LABEL); - singleDataEnd.setWidth("50%"); + startRangeTime.setPlaceholder(INSERT_TIME_INSTANT_LABEL); if(isRange){ singleDataEnd.setVisible(true); + singleDataEnd.setWidth("50%"); singleDataStart.setWidth("50%"); startRangeDate.setPlaceholder(INSERT_DATE_START_LABEL); endRangeDate.setPlaceholder(INSERT_DATE_END_LABEL); - + endRangeTime.setPlaceholder(INSERT_TIME_INSTANT_LABEL); } - startRangeTime.setPlaceholder(INSERT_TIME_INSTANT_LABEL); - endRangeTime.setPlaceholder(INSERT_TIME_INSTANT_LABEL); startRangeDate.setValue(null); startRangeTime.setValue(null); endRangeDate.setValue(null); diff --git a/src/main/java/org/gcube/portlets/widgets/ckandatapublisherwidget/client/ui/timeandreanges/DataTimeBox.ui.xml b/src/main/java/org/gcube/portlets/widgets/ckandatapublisherwidget/client/ui/timeandreanges/DataTimeBox.ui.xml index 8baa976..a50a5c5 100644 --- a/src/main/java/org/gcube/portlets/widgets/ckandatapublisherwidget/client/ui/timeandreanges/DataTimeBox.ui.xml +++ b/src/main/java/org/gcube/portlets/widgets/ckandatapublisherwidget/client/ui/timeandreanges/DataTimeBox.ui.xml @@ -14,14 +14,16 @@ + maxView="HOUR" startView="HOUR" highlightToday="false" language="en" + width="15%" ui:field="startRangeTime" /> + maxView="HOUR" startView="HOUR" highlightToday="false" language="en" + width="15%" ui:field="endRangeTime" />