915: TDM - Support the Spanish language
Task-Url: https://support.d4science.org/issues/915 Updated Spanish support git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-column-widget@119501 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
734bdb141c
commit
cc8a0f6e96
|
@ -2,6 +2,7 @@
|
||||||
<module rename-to='ColumnWidget'>
|
<module rename-to='ColumnWidget'>
|
||||||
<!-- Inherit the core Web Toolkit stuff. -->
|
<!-- Inherit the core Web Toolkit stuff. -->
|
||||||
<inherits name='com.google.gwt.user.User' />
|
<inherits name='com.google.gwt.user.User' />
|
||||||
|
<!-- <inherits name="com.google.gwt.i18n.I18N" /> -->
|
||||||
|
|
||||||
<!-- We need the JUnit module in the main module, -->
|
<!-- We need the JUnit module in the main module, -->
|
||||||
<!-- otherwise eclipse complains (Google plugin bug?) -->
|
<!-- otherwise eclipse complains (Google plugin bug?) -->
|
||||||
|
@ -28,6 +29,15 @@
|
||||||
<!-- <entry-point class='org.gcube.portlets.user.td.columnwidget.client.ColumnWidgetEntry'
|
<!-- <entry-point class='org.gcube.portlets.user.td.columnwidget.client.ColumnWidgetEntry'
|
||||||
/> -->
|
/> -->
|
||||||
|
|
||||||
|
<!-- <set-configuration-property name="locale.cookie" value="TDLangCookie"
|
||||||
|
/> <set-configuration-property name="locale.queryparam" value="TDLang" />
|
||||||
|
<set-configuration-property name="locale.usemeta" value="Y" /> <set-configuration-property
|
||||||
|
name="locale.useragent" value="Y" /> <set-configuration-property name="locale.searchorder"
|
||||||
|
value="cookie,queryparam,meta,useragent" /> <extend-property name="locale"
|
||||||
|
values="en" /> <extend-property name="locale" values="it" /> <extend-property
|
||||||
|
name="locale" values="es" /> <set-property name="locale" value="en, it, es"
|
||||||
|
/> <set-property-fallback name="locale" value="en" /> -->
|
||||||
|
|
||||||
<!-- Specify the paths for translatable code -->
|
<!-- Specify the paths for translatable code -->
|
||||||
<source path='client' />
|
<source path='client' />
|
||||||
<source path='shared' />
|
<source path='shared' />
|
||||||
|
|
|
@ -2,6 +2,7 @@ package org.gcube.portlets.user.td.columnwidget.client;
|
||||||
|
|
||||||
import org.gcube.portlets.user.td.widgetcommonevent.shared.TRId;
|
import org.gcube.portlets.user.td.widgetcommonevent.shared.TRId;
|
||||||
|
|
||||||
|
import com.google.gwt.core.client.GWT;
|
||||||
import com.google.web.bindery.event.shared.EventBus;
|
import com.google.web.bindery.event.shared.EventBus;
|
||||||
import com.sencha.gxt.widget.core.client.Window;
|
import com.sencha.gxt.widget.core.client.Window;
|
||||||
import com.sencha.gxt.widget.core.client.event.SelectEvent;
|
import com.sencha.gxt.widget.core.client.event.SelectEvent;
|
||||||
|
@ -17,6 +18,7 @@ import com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler;
|
||||||
public class ChangeColumnTypeDialog extends Window {
|
public class ChangeColumnTypeDialog extends Window {
|
||||||
private static final String WIDTH = "650px";
|
private static final String WIDTH = "650px";
|
||||||
private static final String HEIGHT = "530px";
|
private static final String HEIGHT = "530px";
|
||||||
|
private ChangeColumnTypeMessages msgs;
|
||||||
|
|
||||||
|
|
||||||
public ChangeColumnTypeDialog(TRId trId, EventBus eventBus) {
|
public ChangeColumnTypeDialog(TRId trId, EventBus eventBus) {
|
||||||
|
@ -29,6 +31,7 @@ public class ChangeColumnTypeDialog extends Window {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void create(TRId trId, String columnName, EventBus eventBus) {
|
protected void create(TRId trId, String columnName, EventBus eventBus) {
|
||||||
|
msgs = GWT.create(ChangeColumnTypeMessages.class);
|
||||||
initWindow();
|
initWindow();
|
||||||
ChangeColumnTypePanel changeColumnTypePanel = new ChangeColumnTypePanel(
|
ChangeColumnTypePanel changeColumnTypePanel = new ChangeColumnTypePanel(
|
||||||
trId, columnName, eventBus);
|
trId, columnName, eventBus);
|
||||||
|
@ -41,7 +44,7 @@ public class ChangeColumnTypeDialog extends Window {
|
||||||
setHeight(HEIGHT);
|
setHeight(HEIGHT);
|
||||||
setBodyBorder(false);
|
setBodyBorder(false);
|
||||||
setResizable(false);
|
setResizable(false);
|
||||||
setHeadingText("Change Column Type");
|
setHeadingText(msgs.dialogHeadingText());
|
||||||
// getHeader().setIcon(Resources.IMAGES.side_list());
|
// getHeader().setIcon(Resources.IMAGES.side_list());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,86 @@
|
||||||
|
package org.gcube.portlets.user.td.columnwidget.client;
|
||||||
|
|
||||||
|
import com.google.gwt.i18n.client.Messages;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author giancarlo email: <a
|
||||||
|
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public interface ChangeColumnTypeMessages extends Messages {
|
||||||
|
|
||||||
|
@DefaultMessage("Change Column Type")
|
||||||
|
String dialogHeadingText();
|
||||||
|
|
||||||
|
@DefaultMessage("Select a column...")
|
||||||
|
String comboColumnEmptyText();
|
||||||
|
|
||||||
|
@DefaultMessage("Column")
|
||||||
|
String comboColumnLabel();
|
||||||
|
|
||||||
|
@DefaultMessage("Select a column type...")
|
||||||
|
String comboColumnTypeCodeEmptyText();
|
||||||
|
|
||||||
|
@DefaultMessage("Column Type")
|
||||||
|
String comboColumnTypeCodeLabel();
|
||||||
|
|
||||||
|
@DefaultMessage("Select a measure type...")
|
||||||
|
String comboMeasureTypeEmptyText();
|
||||||
|
|
||||||
|
@DefaultMessage("Measure Type")
|
||||||
|
String comboMeasureTypeLabel();
|
||||||
|
|
||||||
|
@DefaultMessage("Select a column type...")
|
||||||
|
String comboAttributeTypeEmptyText();
|
||||||
|
|
||||||
|
@DefaultMessage("Attribute Type")
|
||||||
|
String comboAttributeTypeLabel();
|
||||||
|
|
||||||
|
@DefaultMessage("Select a locale type...")
|
||||||
|
String comboLocaleTypeEmptyText();
|
||||||
|
|
||||||
|
@DefaultMessage("Locale")
|
||||||
|
String comboLocaleTypeLabel();
|
||||||
|
|
||||||
|
@DefaultMessage("Select a Codelist...")
|
||||||
|
String comboDimensionTypeEmptyText();
|
||||||
|
|
||||||
|
@DefaultMessage("Codelist")
|
||||||
|
String comboDimensionTypeLabel();
|
||||||
|
|
||||||
|
@DefaultMessage("Select a Column Reference...")
|
||||||
|
String comboColumnReferenceTypeEmptyText();
|
||||||
|
|
||||||
|
@DefaultMessage("Column")
|
||||||
|
String comboColumnReferenceTypeLabel();
|
||||||
|
|
||||||
|
@DefaultMessage("Select optional mapping...")
|
||||||
|
String comboColumnMappingEmptyText();
|
||||||
|
|
||||||
|
@DefaultMessage("Mapping")
|
||||||
|
String comboColumnMappingLabel();
|
||||||
|
|
||||||
|
@DefaultMessage("Select a period type...")
|
||||||
|
String comboPeriodTypeEmptyText();
|
||||||
|
|
||||||
|
@DefaultMessage("Period Type")
|
||||||
|
String comboPeriodTypeLabel();
|
||||||
|
|
||||||
|
@DefaultMessage("Select a format...")
|
||||||
|
String comboValueDataFormatEmptyText();
|
||||||
|
|
||||||
|
@DefaultMessage("Format")
|
||||||
|
String comboValueDataFormatLabel();
|
||||||
|
|
||||||
|
//Apply Button
|
||||||
|
@DefaultMessage("Apply")
|
||||||
|
String applyBtnText();
|
||||||
|
|
||||||
|
@DefaultMessage("Apply Column Type")
|
||||||
|
String applyBtnToolTip();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
|
@ -78,7 +78,6 @@ import com.sencha.gxt.widget.core.client.event.TriggerClickEvent;
|
||||||
import com.sencha.gxt.widget.core.client.event.TriggerClickEvent.TriggerClickHandler;
|
import com.sencha.gxt.widget.core.client.event.TriggerClickEvent.TriggerClickHandler;
|
||||||
import com.sencha.gxt.widget.core.client.form.ComboBox;
|
import com.sencha.gxt.widget.core.client.form.ComboBox;
|
||||||
import com.sencha.gxt.widget.core.client.form.FieldLabel;
|
import com.sencha.gxt.widget.core.client.form.FieldLabel;
|
||||||
import com.sencha.gxt.widget.core.client.info.Info;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -150,8 +149,10 @@ public class ChangeColumnTypePanel extends FramedPanel implements
|
||||||
|
|
||||||
private ChangeColumnTypeSession changeColumnTypeSession;
|
private ChangeColumnTypeSession changeColumnTypeSession;
|
||||||
private boolean panelCreated;
|
private boolean panelCreated;
|
||||||
|
private ChangeColumnTypeMessages msgs;
|
||||||
|
|
||||||
public ChangeColumnTypePanel(TRId trId, String columnName, EventBus eventBus) {
|
public ChangeColumnTypePanel(TRId trId, String columnName, EventBus eventBus) {
|
||||||
|
msgs = GWT.create(ChangeColumnTypeMessages.class);
|
||||||
setWidth(WIDTH);
|
setWidth(WIDTH);
|
||||||
setHeight(HEIGHT);
|
setHeight(HEIGHT);
|
||||||
setHeaderVisible(false);
|
setHeaderVisible(false);
|
||||||
|
@ -304,12 +305,14 @@ public class ChangeColumnTypePanel extends FramedPanel implements
|
||||||
addHandlersForComboColumn(propsColumnData.label());
|
addHandlersForComboColumn(propsColumnData.label());
|
||||||
|
|
||||||
comboColumn.setLoader(loader);
|
comboColumn.setLoader(loader);
|
||||||
comboColumn.setEmptyText("Select a column...");
|
comboColumn.setEmptyText(msgs.comboColumnEmptyText());
|
||||||
comboColumn.setWidth(191);
|
comboColumn.setWidth(191);
|
||||||
comboColumn.setTypeAhead(false);
|
comboColumn.setTypeAhead(false);
|
||||||
comboColumn.setEditable(false);
|
comboColumn.setEditable(false);
|
||||||
comboColumn.setTriggerAction(TriggerAction.ALL);
|
comboColumn.setTriggerAction(TriggerAction.ALL);
|
||||||
|
|
||||||
|
FieldLabel comboColumnLabel=new FieldLabel(comboColumn, msgs.comboColumnLabel());
|
||||||
|
|
||||||
// comboColumnTypeCode
|
// comboColumnTypeCode
|
||||||
ColumnTypeCodeProperties propsColumnTypeCode = GWT
|
ColumnTypeCodeProperties propsColumnTypeCode = GWT
|
||||||
.create(ColumnTypeCodeProperties.class);
|
.create(ColumnTypeCodeProperties.class);
|
||||||
|
@ -323,13 +326,14 @@ public class ChangeColumnTypePanel extends FramedPanel implements
|
||||||
|
|
||||||
addHandlersForComboColumnTypeCode(propsColumnTypeCode.label());
|
addHandlersForComboColumnTypeCode(propsColumnTypeCode.label());
|
||||||
|
|
||||||
comboColumnTypeCode.setEmptyText("Select a column type...");
|
comboColumnTypeCode.setEmptyText(msgs.comboColumnTypeCodeEmptyText());
|
||||||
comboColumnTypeCode.setWidth(191);
|
comboColumnTypeCode.setWidth(191);
|
||||||
comboColumnTypeCode.setTypeAhead(true);
|
comboColumnTypeCode.setTypeAhead(true);
|
||||||
comboColumnTypeCode.setTriggerAction(TriggerAction.ALL);
|
comboColumnTypeCode.setTriggerAction(TriggerAction.ALL);
|
||||||
|
|
||||||
comboColumnTypeCodeLabel = new FieldLabel(comboColumnTypeCode,
|
comboColumnTypeCodeLabel = new FieldLabel(comboColumnTypeCode,
|
||||||
"Column Type");
|
msgs.comboColumnTypeCodeLabel());
|
||||||
|
|
||||||
// comboMeasureType
|
// comboMeasureType
|
||||||
ColumnDataTypeProperties propsMeasureType = GWT
|
ColumnDataTypeProperties propsMeasureType = GWT
|
||||||
.create(ColumnDataTypeProperties.class);
|
.create(ColumnDataTypeProperties.class);
|
||||||
|
@ -343,12 +347,12 @@ public class ChangeColumnTypePanel extends FramedPanel implements
|
||||||
|
|
||||||
addHandlersForComboMeasureType(propsMeasureType.label());
|
addHandlersForComboMeasureType(propsMeasureType.label());
|
||||||
|
|
||||||
comboMeasureType.setEmptyText("Select a measure type...");
|
comboMeasureType.setEmptyText(msgs.comboMeasureTypeEmptyText());
|
||||||
comboMeasureType.setWidth(191);
|
comboMeasureType.setWidth(191);
|
||||||
comboMeasureType.setTypeAhead(true);
|
comboMeasureType.setTypeAhead(true);
|
||||||
comboMeasureType.setTriggerAction(TriggerAction.ALL);
|
comboMeasureType.setTriggerAction(TriggerAction.ALL);
|
||||||
|
|
||||||
comboMeasureTypeLabel = new FieldLabel(comboMeasureType, "Measure Type");
|
comboMeasureTypeLabel = new FieldLabel(comboMeasureType, msgs.comboMeasureTypeLabel());
|
||||||
|
|
||||||
// comboAttributeType
|
// comboAttributeType
|
||||||
ColumnDataTypeProperties propsAttributeType = GWT
|
ColumnDataTypeProperties propsAttributeType = GWT
|
||||||
|
@ -363,13 +367,13 @@ public class ChangeColumnTypePanel extends FramedPanel implements
|
||||||
|
|
||||||
addHandlersForComboAttributeType(propsAttributeType.label());
|
addHandlersForComboAttributeType(propsAttributeType.label());
|
||||||
|
|
||||||
comboAttributeType.setEmptyText("Select a column type...");
|
comboAttributeType.setEmptyText(msgs.comboAttributeTypeEmptyText());
|
||||||
comboAttributeType.setWidth(191);
|
comboAttributeType.setWidth(191);
|
||||||
comboAttributeType.setTypeAhead(true);
|
comboAttributeType.setTypeAhead(true);
|
||||||
comboAttributeType.setTriggerAction(TriggerAction.ALL);
|
comboAttributeType.setTriggerAction(TriggerAction.ALL);
|
||||||
|
|
||||||
comboAttributeTypeLabel = new FieldLabel(comboAttributeType,
|
comboAttributeTypeLabel = new FieldLabel(comboAttributeType,
|
||||||
"Attribute Type");
|
msgs.comboAttributeTypeLabel());
|
||||||
|
|
||||||
// comboLocaleType
|
// comboLocaleType
|
||||||
LocaleTypeProperties propsLocaleType = GWT
|
LocaleTypeProperties propsLocaleType = GWT
|
||||||
|
@ -393,12 +397,12 @@ public class ChangeColumnTypePanel extends FramedPanel implements
|
||||||
|
|
||||||
addHandlersForComboLocaleType(propsLocaleType.label());
|
addHandlersForComboLocaleType(propsLocaleType.label());
|
||||||
|
|
||||||
comboLocaleType.setEmptyText("Select a locale type...");
|
comboLocaleType.setEmptyText(msgs.comboLocaleTypeEmptyText());
|
||||||
comboLocaleType.setWidth(191);
|
comboLocaleType.setWidth(191);
|
||||||
comboLocaleType.setTypeAhead(true);
|
comboLocaleType.setTypeAhead(true);
|
||||||
comboLocaleType.setTriggerAction(TriggerAction.ALL);
|
comboLocaleType.setTriggerAction(TriggerAction.ALL);
|
||||||
|
|
||||||
comboLocaleTypeLabel = new FieldLabel(comboLocaleType, "Locale");
|
comboLocaleTypeLabel = new FieldLabel(comboLocaleType, msgs.comboLocaleTypeLabel());
|
||||||
|
|
||||||
// comboDimensionType
|
// comboDimensionType
|
||||||
TabResourcePropertiesCombo propsDimensionType = GWT
|
TabResourcePropertiesCombo propsDimensionType = GWT
|
||||||
|
@ -412,12 +416,12 @@ public class ChangeColumnTypePanel extends FramedPanel implements
|
||||||
|
|
||||||
addHandlersForComboDimensionType(propsDimensionType.label());
|
addHandlersForComboDimensionType(propsDimensionType.label());
|
||||||
|
|
||||||
comboDimensionType.setEmptyText("Select a Dimension...");
|
comboDimensionType.setEmptyText(msgs.comboDimensionTypeEmptyText());
|
||||||
comboDimensionType.setWidth(191);
|
comboDimensionType.setWidth(191);
|
||||||
comboDimensionType.setEditable(false);
|
comboDimensionType.setEditable(false);
|
||||||
comboDimensionType.setTriggerAction(TriggerAction.ALL);
|
comboDimensionType.setTriggerAction(TriggerAction.ALL);
|
||||||
|
|
||||||
comboDimensionTypeLabel = new FieldLabel(comboDimensionType, "Codelist");
|
comboDimensionTypeLabel = new FieldLabel(comboDimensionType, msgs.comboDimensionTypeLabel());
|
||||||
|
|
||||||
// ColumnReferenceType
|
// ColumnReferenceType
|
||||||
ColumnDataPropertiesCombo propsColumnReferenceType = GWT
|
ColumnDataPropertiesCombo propsColumnReferenceType = GWT
|
||||||
|
@ -431,13 +435,13 @@ public class ChangeColumnTypePanel extends FramedPanel implements
|
||||||
|
|
||||||
addHandlersForComboColumnReferenceType(propsColumnReferenceType.label());
|
addHandlersForComboColumnReferenceType(propsColumnReferenceType.label());
|
||||||
|
|
||||||
comboColumnReferenceType.setEmptyText("Select a Column Reference...");
|
comboColumnReferenceType.setEmptyText(msgs.comboColumnReferenceTypeEmptyText());
|
||||||
comboColumnReferenceType.setWidth(191);
|
comboColumnReferenceType.setWidth(191);
|
||||||
comboColumnReferenceType.setEditable(false);
|
comboColumnReferenceType.setEditable(false);
|
||||||
comboColumnReferenceType.setTriggerAction(TriggerAction.ALL);
|
comboColumnReferenceType.setTriggerAction(TriggerAction.ALL);
|
||||||
|
|
||||||
comboColumnReferenceTypeLabel = new FieldLabel(
|
comboColumnReferenceTypeLabel = new FieldLabel(
|
||||||
comboColumnReferenceType, "Column");
|
comboColumnReferenceType, msgs.comboColumnReferenceTypeLabel());
|
||||||
|
|
||||||
// ColumnMapping
|
// ColumnMapping
|
||||||
ColumnMappingListProperties propsColumnMapping = GWT
|
ColumnMappingListProperties propsColumnMapping = GWT
|
||||||
|
@ -451,12 +455,12 @@ public class ChangeColumnTypePanel extends FramedPanel implements
|
||||||
|
|
||||||
addHandlersForComboColumnMapping(propsColumnMapping.name());
|
addHandlersForComboColumnMapping(propsColumnMapping.name());
|
||||||
|
|
||||||
comboColumnMapping.setEmptyText("Select optional mapping...");
|
comboColumnMapping.setEmptyText(msgs.comboColumnMappingEmptyText());
|
||||||
comboColumnMapping.setWidth(191);
|
comboColumnMapping.setWidth(191);
|
||||||
comboColumnMapping.setEditable(false);
|
comboColumnMapping.setEditable(false);
|
||||||
comboColumnMapping.setTriggerAction(TriggerAction.ALL);
|
comboColumnMapping.setTriggerAction(TriggerAction.ALL);
|
||||||
|
|
||||||
comboColumnMappingLabel = new FieldLabel(comboColumnMapping, "Mapping");
|
comboColumnMappingLabel = new FieldLabel(comboColumnMapping, msgs.comboColumnMappingLabel());
|
||||||
|
|
||||||
// comboPeriodType
|
// comboPeriodType
|
||||||
PeriodDataTypeProperties propsPeriodDataType = GWT
|
PeriodDataTypeProperties propsPeriodDataType = GWT
|
||||||
|
@ -480,11 +484,11 @@ public class ChangeColumnTypePanel extends FramedPanel implements
|
||||||
|
|
||||||
addHandlersForComboPeriodType(propsPeriodDataType.label());
|
addHandlersForComboPeriodType(propsPeriodDataType.label());
|
||||||
|
|
||||||
comboPeriodType.setEmptyText("Select a period type...");
|
comboPeriodType.setEmptyText(msgs.comboPeriodTypeEmptyText());
|
||||||
comboPeriodType.setWidth(191);
|
comboPeriodType.setWidth(191);
|
||||||
comboPeriodType.setTypeAhead(true);
|
comboPeriodType.setTypeAhead(true);
|
||||||
comboPeriodType.setTriggerAction(TriggerAction.ALL);
|
comboPeriodType.setTriggerAction(TriggerAction.ALL);
|
||||||
comboPeriodTypeLabel = new FieldLabel(comboPeriodType, "Period Type");
|
comboPeriodTypeLabel = new FieldLabel(comboPeriodType, msgs.comboPeriodTypeLabel());
|
||||||
|
|
||||||
// comboValueDataFormat
|
// comboValueDataFormat
|
||||||
ValueDataFormatProperties propsValueDataFormat = GWT
|
ValueDataFormatProperties propsValueDataFormat = GWT
|
||||||
|
@ -509,18 +513,18 @@ public class ChangeColumnTypePanel extends FramedPanel implements
|
||||||
|
|
||||||
addHandlersForComboValueDataFormat(propsValueDataFormat.label());
|
addHandlersForComboValueDataFormat(propsValueDataFormat.label());
|
||||||
|
|
||||||
comboValueDataFormat.setEmptyText("Select a format...");
|
comboValueDataFormat.setEmptyText(msgs.comboValueDataFormatEmptyText());
|
||||||
comboValueDataFormat.setWidth(191);
|
comboValueDataFormat.setWidth(191);
|
||||||
comboValueDataFormat.setTypeAhead(true);
|
comboValueDataFormat.setTypeAhead(true);
|
||||||
comboValueDataFormat.setTriggerAction(TriggerAction.ALL);
|
comboValueDataFormat.setTriggerAction(TriggerAction.ALL);
|
||||||
comboValueDataFormatLabel = new FieldLabel(comboValueDataFormat,
|
comboValueDataFormatLabel = new FieldLabel(comboValueDataFormat,
|
||||||
"Format");
|
msgs.comboValueDataFormatLabel());
|
||||||
|
|
||||||
// Apply
|
// Apply
|
||||||
applyBtn = new TextButton("Apply");
|
applyBtn = new TextButton(msgs.applyBtnText());
|
||||||
applyBtn.setIcon(ResourceBundle.INSTANCE.columnType());
|
applyBtn.setIcon(ResourceBundle.INSTANCE.columnType());
|
||||||
applyBtn.setIconAlign(IconAlign.RIGHT);
|
applyBtn.setIconAlign(IconAlign.RIGHT);
|
||||||
applyBtn.setToolTip("Apply Column Type");
|
applyBtn.setToolTip(msgs.applyBtnToolTip());
|
||||||
|
|
||||||
SelectHandler changeHandler = new SelectHandler() {
|
SelectHandler changeHandler = new SelectHandler() {
|
||||||
|
|
||||||
|
@ -532,7 +536,7 @@ public class ChangeColumnTypePanel extends FramedPanel implements
|
||||||
applyBtn.addSelectHandler(changeHandler);
|
applyBtn.addSelectHandler(changeHandler);
|
||||||
|
|
||||||
VerticalLayoutContainer v = new VerticalLayoutContainer();
|
VerticalLayoutContainer v = new VerticalLayoutContainer();
|
||||||
v.add(new FieldLabel(comboColumn, "Column"), new VerticalLayoutData(1,
|
v.add(comboColumnLabel, new VerticalLayoutData(1,
|
||||||
-1, new Margins(1)));
|
-1, new Margins(1)));
|
||||||
v.add(comboColumnTypeCodeLabel, new VerticalLayoutData(1, -1,
|
v.add(comboColumnTypeCodeLabel, new VerticalLayoutData(1, -1,
|
||||||
new Margins(1)));
|
new Margins(1)));
|
||||||
|
@ -577,12 +581,6 @@ public class ChangeColumnTypePanel extends FramedPanel implements
|
||||||
final LabelProvider<ColumnData> labelProvider) {
|
final LabelProvider<ColumnData> labelProvider) {
|
||||||
comboColumn.addSelectionHandler(new SelectionHandler<ColumnData>() {
|
comboColumn.addSelectionHandler(new SelectionHandler<ColumnData>() {
|
||||||
public void onSelection(SelectionEvent<ColumnData> event) {
|
public void onSelection(SelectionEvent<ColumnData> event) {
|
||||||
Info.display(
|
|
||||||
"Column Type Selected",
|
|
||||||
"You selected "
|
|
||||||
+ (event.getSelectedItem() == null ? "nothing"
|
|
||||||
: labelProvider.getLabel(event
|
|
||||||
.getSelectedItem()) + "!"));
|
|
||||||
Log.debug("ComboColumn selected: " + event.getSelectedItem());
|
Log.debug("ComboColumn selected: " + event.getSelectedItem());
|
||||||
ColumnData columnData = event.getSelectedItem();
|
ColumnData columnData = event.getSelectedItem();
|
||||||
updateComboStatus(columnData);
|
updateComboStatus(columnData);
|
||||||
|
@ -597,13 +595,6 @@ public class ChangeColumnTypePanel extends FramedPanel implements
|
||||||
.addSelectionHandler(new SelectionHandler<ColumnTypeCodeElement>() {
|
.addSelectionHandler(new SelectionHandler<ColumnTypeCodeElement>() {
|
||||||
public void onSelection(
|
public void onSelection(
|
||||||
SelectionEvent<ColumnTypeCodeElement> event) {
|
SelectionEvent<ColumnTypeCodeElement> event) {
|
||||||
Info.display(
|
|
||||||
"Column Type Selected",
|
|
||||||
"You selected "
|
|
||||||
+ (event.getSelectedItem() == null ? "nothing"
|
|
||||||
: labelProvider.getLabel(event
|
|
||||||
.getSelectedItem())
|
|
||||||
+ "!"));
|
|
||||||
Log.debug("ComboColumnTypeCode selected: "
|
Log.debug("ComboColumnTypeCode selected: "
|
||||||
+ event.getSelectedItem());
|
+ event.getSelectedItem());
|
||||||
ColumnTypeCodeElement columnType = event
|
ColumnTypeCodeElement columnType = event
|
||||||
|
@ -621,13 +612,6 @@ public class ChangeColumnTypePanel extends FramedPanel implements
|
||||||
.addSelectionHandler(new SelectionHandler<ColumnDataTypeElement>() {
|
.addSelectionHandler(new SelectionHandler<ColumnDataTypeElement>() {
|
||||||
public void onSelection(
|
public void onSelection(
|
||||||
SelectionEvent<ColumnDataTypeElement> event) {
|
SelectionEvent<ColumnDataTypeElement> event) {
|
||||||
Info.display(
|
|
||||||
"Measure Type Selected",
|
|
||||||
"You selected "
|
|
||||||
+ (event.getSelectedItem() == null ? "nothing"
|
|
||||||
: labelProvider.getLabel(event
|
|
||||||
.getSelectedItem())
|
|
||||||
+ "!"));
|
|
||||||
Log.debug("ComboMeasureType selected: "
|
Log.debug("ComboMeasureType selected: "
|
||||||
+ event.getSelectedItem());
|
+ event.getSelectedItem());
|
||||||
ColumnDataTypeElement measureType = event
|
ColumnDataTypeElement measureType = event
|
||||||
|
@ -644,13 +628,6 @@ public class ChangeColumnTypePanel extends FramedPanel implements
|
||||||
.addSelectionHandler(new SelectionHandler<ColumnDataTypeElement>() {
|
.addSelectionHandler(new SelectionHandler<ColumnDataTypeElement>() {
|
||||||
public void onSelection(
|
public void onSelection(
|
||||||
SelectionEvent<ColumnDataTypeElement> event) {
|
SelectionEvent<ColumnDataTypeElement> event) {
|
||||||
Info.display(
|
|
||||||
"Attribute Type Selected",
|
|
||||||
"You selected "
|
|
||||||
+ (event.getSelectedItem() == null ? "nothing"
|
|
||||||
: labelProvider.getLabel(event
|
|
||||||
.getSelectedItem())
|
|
||||||
+ "!"));
|
|
||||||
Log.debug("ComboAttributeType selected: "
|
Log.debug("ComboAttributeType selected: "
|
||||||
+ event.getSelectedItem());
|
+ event.getSelectedItem());
|
||||||
ColumnDataTypeElement attributeType = event
|
ColumnDataTypeElement attributeType = event
|
||||||
|
@ -667,13 +644,6 @@ public class ChangeColumnTypePanel extends FramedPanel implements
|
||||||
.addSelectionHandler(new SelectionHandler<LocaleTypeElement>() {
|
.addSelectionHandler(new SelectionHandler<LocaleTypeElement>() {
|
||||||
public void onSelection(
|
public void onSelection(
|
||||||
SelectionEvent<LocaleTypeElement> event) {
|
SelectionEvent<LocaleTypeElement> event) {
|
||||||
Info.display(
|
|
||||||
"Locale Type Selected",
|
|
||||||
"You selected "
|
|
||||||
+ (event.getSelectedItem() == null ? "nothing"
|
|
||||||
: labelProvider.getLabel(event
|
|
||||||
.getSelectedItem())
|
|
||||||
+ "!"));
|
|
||||||
Log.debug("ComboLocaleType selected: "
|
Log.debug("ComboLocaleType selected: "
|
||||||
+ event.getSelectedItem());
|
+ event.getSelectedItem());
|
||||||
LocaleTypeElement localeType = event.getSelectedItem();
|
LocaleTypeElement localeType = event.getSelectedItem();
|
||||||
|
@ -706,13 +676,6 @@ public class ChangeColumnTypePanel extends FramedPanel implements
|
||||||
comboColumnReferenceType
|
comboColumnReferenceType
|
||||||
.addSelectionHandler(new SelectionHandler<ColumnData>() {
|
.addSelectionHandler(new SelectionHandler<ColumnData>() {
|
||||||
public void onSelection(SelectionEvent<ColumnData> event) {
|
public void onSelection(SelectionEvent<ColumnData> event) {
|
||||||
Info.display(
|
|
||||||
"Column Reference Selected",
|
|
||||||
"You selected "
|
|
||||||
+ (event.getSelectedItem() == null ? "nothing"
|
|
||||||
: labelProvider.getLabel(event
|
|
||||||
.getSelectedItem())
|
|
||||||
+ "!"));
|
|
||||||
Log.debug("ComboColumnReferenceType selected: "
|
Log.debug("ComboColumnReferenceType selected: "
|
||||||
+ event.getSelectedItem());
|
+ event.getSelectedItem());
|
||||||
|
|
||||||
|
@ -744,13 +707,6 @@ public class ChangeColumnTypePanel extends FramedPanel implements
|
||||||
comboPeriodType
|
comboPeriodType
|
||||||
.addSelectionHandler(new SelectionHandler<PeriodDataType>() {
|
.addSelectionHandler(new SelectionHandler<PeriodDataType>() {
|
||||||
public void onSelection(SelectionEvent<PeriodDataType> event) {
|
public void onSelection(SelectionEvent<PeriodDataType> event) {
|
||||||
Info.display(
|
|
||||||
"Period Type Selected",
|
|
||||||
"You selected "
|
|
||||||
+ (event.getSelectedItem() == null ? "nothing"
|
|
||||||
: labelProvider.getLabel(event
|
|
||||||
.getSelectedItem())
|
|
||||||
+ "!"));
|
|
||||||
Log.debug("ComboPeriodType selected: "
|
Log.debug("ComboPeriodType selected: "
|
||||||
+ event.getSelectedItem());
|
+ event.getSelectedItem());
|
||||||
PeriodDataType periodDataType = event.getSelectedItem();
|
PeriodDataType periodDataType = event.getSelectedItem();
|
||||||
|
@ -766,13 +722,6 @@ public class ChangeColumnTypePanel extends FramedPanel implements
|
||||||
.addSelectionHandler(new SelectionHandler<ValueDataFormat>() {
|
.addSelectionHandler(new SelectionHandler<ValueDataFormat>() {
|
||||||
public void onSelection(
|
public void onSelection(
|
||||||
SelectionEvent<ValueDataFormat> event) {
|
SelectionEvent<ValueDataFormat> event) {
|
||||||
Info.display(
|
|
||||||
"Time Format Selected",
|
|
||||||
"You selected "
|
|
||||||
+ (event.getSelectedItem() == null ? "nothing"
|
|
||||||
: labelProvider.getLabel(event
|
|
||||||
.getSelectedItem())
|
|
||||||
+ "!"));
|
|
||||||
Log.debug("ComboTimeDataFormat selected: "
|
Log.debug("ComboTimeDataFormat selected: "
|
||||||
+ event.getSelectedItem());
|
+ event.getSelectedItem());
|
||||||
ValueDataFormat timeDataFormat = event
|
ValueDataFormat timeDataFormat = event
|
||||||
|
|
|
@ -2,6 +2,7 @@ package org.gcube.portlets.user.td.columnwidget.client;
|
||||||
|
|
||||||
import org.gcube.portlets.user.td.widgetcommonevent.shared.TRId;
|
import org.gcube.portlets.user.td.widgetcommonevent.shared.TRId;
|
||||||
|
|
||||||
|
import com.google.gwt.core.client.GWT;
|
||||||
import com.google.web.bindery.event.shared.EventBus;
|
import com.google.web.bindery.event.shared.EventBus;
|
||||||
import com.sencha.gxt.widget.core.client.Window;
|
import com.sencha.gxt.widget.core.client.Window;
|
||||||
import com.sencha.gxt.widget.core.client.event.SelectEvent;
|
import com.sencha.gxt.widget.core.client.event.SelectEvent;
|
||||||
|
@ -17,6 +18,7 @@ import com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler;
|
||||||
public class DeleteColumnDialog extends Window {
|
public class DeleteColumnDialog extends Window {
|
||||||
private static final int WIDTH=400;
|
private static final int WIDTH=400;
|
||||||
private static final int HEIGHT=120;
|
private static final int HEIGHT=120;
|
||||||
|
private DeleteColumnMessages msgs;
|
||||||
|
|
||||||
public DeleteColumnDialog(TRId trId, EventBus eventBus) {
|
public DeleteColumnDialog(TRId trId, EventBus eventBus) {
|
||||||
create(trId, null, eventBus);
|
create(trId, null, eventBus);
|
||||||
|
@ -27,7 +29,7 @@ public class DeleteColumnDialog extends Window {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void create(TRId trId, String columnName, EventBus eventBus) {
|
protected void create(TRId trId, String columnName, EventBus eventBus) {
|
||||||
|
msgs = GWT.create(DeleteColumnMessages.class);
|
||||||
initWindow();
|
initWindow();
|
||||||
|
|
||||||
DeleteColumnPanel deleteColumnPanel= new DeleteColumnPanel(trId, columnName, eventBus);
|
DeleteColumnPanel deleteColumnPanel= new DeleteColumnPanel(trId, columnName, eventBus);
|
||||||
|
@ -39,7 +41,7 @@ public class DeleteColumnDialog extends Window {
|
||||||
setHeight(HEIGHT);
|
setHeight(HEIGHT);
|
||||||
setBodyBorder(false);
|
setBodyBorder(false);
|
||||||
setResizable(false);
|
setResizable(false);
|
||||||
setHeadingText("Delete Columns");
|
setHeadingText(msgs.dialogHeadingText());
|
||||||
//getHeader().setIcon(Resources.IMAGES.side_list());
|
//getHeader().setIcon(Resources.IMAGES.side_list());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,27 @@
|
||||||
|
package org.gcube.portlets.user.td.columnwidget.client;
|
||||||
|
|
||||||
|
import com.google.gwt.i18n.client.Messages;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author giancarlo email: <a
|
||||||
|
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public interface DeleteColumnMessages extends Messages {
|
||||||
|
|
||||||
|
@DefaultMessage("Delete Columns")
|
||||||
|
String dialogHeadingText();
|
||||||
|
|
||||||
|
// Delete Button
|
||||||
|
@DefaultMessage("Delete")
|
||||||
|
String deleteBtnText();
|
||||||
|
|
||||||
|
@DefaultMessage("Delete Columns")
|
||||||
|
String deleteBtnToolTip();
|
||||||
|
|
||||||
|
//
|
||||||
|
@DefaultMessage("Columns")
|
||||||
|
String columnsLabel();
|
||||||
|
|
||||||
|
}
|
|
@ -76,7 +76,7 @@ public class DeleteColumnPanel extends FramedPanel implements
|
||||||
private String columnName;
|
private String columnName;
|
||||||
|
|
||||||
|
|
||||||
private TextButton delete;
|
private TextButton deleteBtn;
|
||||||
|
|
||||||
private ListLoader<ListLoadConfig, ListLoadResult<ColumnData>> loader;
|
private ListLoader<ListLoadConfig, ListLoadResult<ColumnData>> loader;
|
||||||
private Grid<ColumnData> grid;
|
private Grid<ColumnData> grid;
|
||||||
|
@ -85,8 +85,10 @@ public class DeleteColumnPanel extends FramedPanel implements
|
||||||
private DeleteColumnSession deleteColumnSession;
|
private DeleteColumnSession deleteColumnSession;
|
||||||
|
|
||||||
private ListStore<ColumnData> store;
|
private ListStore<ColumnData> store;
|
||||||
|
private DeleteColumnMessages msgs;
|
||||||
|
|
||||||
public DeleteColumnPanel(TRId trId, String columnName, EventBus eventBus) {
|
public DeleteColumnPanel(TRId trId, String columnName, EventBus eventBus) {
|
||||||
|
msgs = GWT.create(DeleteColumnMessages.class);
|
||||||
this.trId = trId;
|
this.trId = trId;
|
||||||
this.columnName = columnName;
|
this.columnName = columnName;
|
||||||
this.eventBus = eventBus;
|
this.eventBus = eventBus;
|
||||||
|
@ -179,10 +181,10 @@ public class DeleteColumnPanel extends FramedPanel implements
|
||||||
grid.setColumnResize(false);
|
grid.setColumnResize(false);
|
||||||
|
|
||||||
// Delete Button
|
// Delete Button
|
||||||
delete = new TextButton("Delete");
|
deleteBtn = new TextButton(msgs.deleteBtnText());
|
||||||
delete.setIcon(ResourceBundle.INSTANCE.columnDelete());
|
deleteBtn.setIcon(ResourceBundle.INSTANCE.columnDelete());
|
||||||
delete.setIconAlign(IconAlign.RIGHT);
|
deleteBtn.setIconAlign(IconAlign.RIGHT);
|
||||||
delete.setToolTip("Delete Column");
|
deleteBtn.setToolTip(msgs.deleteBtnToolTip());
|
||||||
|
|
||||||
SelectHandler deleteHandler = new SelectHandler() {
|
SelectHandler deleteHandler = new SelectHandler() {
|
||||||
|
|
||||||
|
@ -191,12 +193,12 @@ public class DeleteColumnPanel extends FramedPanel implements
|
||||||
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
delete.addSelectHandler(deleteHandler);
|
deleteBtn.addSelectHandler(deleteHandler);
|
||||||
|
|
||||||
FieldLabel columnsLabel = new FieldLabel(null, "Columns");
|
FieldLabel columnsLabel = new FieldLabel(null, msgs.columnsLabel());
|
||||||
columnsLabel.getElement().applyStyles("font-weight:bold");
|
columnsLabel.getElement().applyStyles("font-weight:bold");
|
||||||
HBoxLayoutContainer hBox = new HBoxLayoutContainer();
|
HBoxLayoutContainer hBox = new HBoxLayoutContainer();
|
||||||
hBox.add(delete, new BoxLayoutData(new Margins(2, 5, 2, 5)));
|
hBox.add(deleteBtn, new BoxLayoutData(new Margins(2, 5, 2, 5)));
|
||||||
|
|
||||||
VerticalLayoutContainer v = new VerticalLayoutContainer();
|
VerticalLayoutContainer v = new VerticalLayoutContainer();
|
||||||
v.setScrollMode(ScrollMode.AUTOY);
|
v.setScrollMode(ScrollMode.AUTOY);
|
||||||
|
|
|
@ -2,6 +2,7 @@ package org.gcube.portlets.user.td.columnwidget.client;
|
||||||
|
|
||||||
import org.gcube.portlets.user.td.widgetcommonevent.shared.TRId;
|
import org.gcube.portlets.user.td.widgetcommonevent.shared.TRId;
|
||||||
|
|
||||||
|
import com.google.gwt.core.client.GWT;
|
||||||
import com.google.web.bindery.event.shared.EventBus;
|
import com.google.web.bindery.event.shared.EventBus;
|
||||||
import com.sencha.gxt.widget.core.client.Window;
|
import com.sencha.gxt.widget.core.client.Window;
|
||||||
import com.sencha.gxt.widget.core.client.event.SelectEvent;
|
import com.sencha.gxt.widget.core.client.event.SelectEvent;
|
||||||
|
@ -17,6 +18,7 @@ import com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler;
|
||||||
public class LabelColumnDialog extends Window {
|
public class LabelColumnDialog extends Window {
|
||||||
private static final int WIDTH=400;
|
private static final int WIDTH=400;
|
||||||
private static final int HEIGHT=120;
|
private static final int HEIGHT=120;
|
||||||
|
private LabelColumnMessages msgs;
|
||||||
|
|
||||||
|
|
||||||
public LabelColumnDialog(TRId trId, EventBus eventBus) {
|
public LabelColumnDialog(TRId trId, EventBus eventBus) {
|
||||||
|
@ -28,6 +30,7 @@ public class LabelColumnDialog extends Window {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void create(TRId trId, String columnName, EventBus eventBus) {
|
protected void create(TRId trId, String columnName, EventBus eventBus) {
|
||||||
|
msgs = GWT.create(LabelColumnMessages.class);
|
||||||
initWindow();
|
initWindow();
|
||||||
|
|
||||||
LabelColumnPanel labelColumnPanel= new LabelColumnPanel(trId, columnName, eventBus);
|
LabelColumnPanel labelColumnPanel= new LabelColumnPanel(trId, columnName, eventBus);
|
||||||
|
@ -39,7 +42,7 @@ public class LabelColumnDialog extends Window {
|
||||||
setHeight(HEIGHT);
|
setHeight(HEIGHT);
|
||||||
setBodyBorder(false);
|
setBodyBorder(false);
|
||||||
setResizable(false);
|
setResizable(false);
|
||||||
setHeadingText("Label Columns");
|
setHeadingText(msgs.dialogHeadingText());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,46 @@
|
||||||
|
package org.gcube.portlets.user.td.columnwidget.client;
|
||||||
|
|
||||||
|
import com.google.gwt.i18n.client.Messages;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author giancarlo email: <a
|
||||||
|
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public interface LabelColumnMessages extends Messages {
|
||||||
|
|
||||||
|
@DefaultMessage("Label Columns")
|
||||||
|
String dialogHeadingText();
|
||||||
|
|
||||||
|
// Change Button
|
||||||
|
@DefaultMessage("Change")
|
||||||
|
String changeBtnText();
|
||||||
|
|
||||||
|
@DefaultMessage("Change Columns Label")
|
||||||
|
String changeBtnToolTip();
|
||||||
|
|
||||||
|
//
|
||||||
|
@DefaultMessage("Updated labels")
|
||||||
|
String updatedLabels();
|
||||||
|
|
||||||
|
//
|
||||||
|
@DefaultMessage("nolabel")
|
||||||
|
String nolabelText();
|
||||||
|
|
||||||
|
@DefaultMessage("nolabel")
|
||||||
|
String nolabelTextLabel();
|
||||||
|
|
||||||
|
//
|
||||||
|
@DefaultMessage("Insert valid labels!")
|
||||||
|
String insertValidLabels();
|
||||||
|
|
||||||
|
//Errors
|
||||||
|
@DefaultMessage("Error Changing The Column Label")
|
||||||
|
String errorChangingTheColumnLabelHead();
|
||||||
|
|
||||||
|
@DefaultMessage("Error in invocation of Change The Column Label operation!")
|
||||||
|
String errorChangingTheColumnLabel();
|
||||||
|
|
||||||
|
|
||||||
|
}
|
|
@ -22,6 +22,7 @@ import org.gcube.portlets.user.td.widgetcommonevent.shared.TRId;
|
||||||
import org.gcube.portlets.user.td.widgetcommonevent.shared.tr.column.ColumnData;
|
import org.gcube.portlets.user.td.widgetcommonevent.shared.tr.column.ColumnData;
|
||||||
|
|
||||||
import com.allen_sauer.gwt.log.client.Log;
|
import com.allen_sauer.gwt.log.client.Log;
|
||||||
|
import com.google.gwt.core.client.GWT;
|
||||||
import com.google.gwt.user.client.rpc.AsyncCallback;
|
import com.google.gwt.user.client.rpc.AsyncCallback;
|
||||||
import com.google.web.bindery.event.shared.EventBus;
|
import com.google.web.bindery.event.shared.EventBus;
|
||||||
import com.sencha.gxt.cell.core.client.ButtonCell.IconAlign;
|
import com.sencha.gxt.cell.core.client.ButtonCell.IconAlign;
|
||||||
|
@ -59,13 +60,15 @@ public class LabelColumnPanel extends FramedPanel implements
|
||||||
private ArrayList<ColumnData> columns;
|
private ArrayList<ColumnData> columns;
|
||||||
private VerticalLayoutContainer columnsLayoutContainer;
|
private VerticalLayoutContainer columnsLayoutContainer;
|
||||||
|
|
||||||
private TextButton change;
|
private TextButton changeBtn;
|
||||||
|
|
||||||
private LabelColumnSession labelColumnSession;
|
private LabelColumnSession labelColumnSession;
|
||||||
private boolean updateStatus;
|
private boolean updateStatus;
|
||||||
private VerticalLayoutContainer v;
|
private VerticalLayoutContainer v;
|
||||||
|
private LabelColumnMessages msgs;
|
||||||
|
|
||||||
public LabelColumnPanel(TRId trId, String columnName, EventBus eventBus) {
|
public LabelColumnPanel(TRId trId, String columnName, EventBus eventBus) {
|
||||||
|
msgs = GWT.create(LabelColumnMessages.class);
|
||||||
this.trId = trId;
|
this.trId = trId;
|
||||||
this.eventBus = eventBus;
|
this.eventBus = eventBus;
|
||||||
updateStatus = false;
|
updateStatus = false;
|
||||||
|
@ -149,12 +152,12 @@ public class LabelColumnPanel extends FramedPanel implements
|
||||||
|
|
||||||
columnsContainer.forceLayout();
|
columnsContainer.forceLayout();
|
||||||
|
|
||||||
change = new TextButton("Change");
|
changeBtn = new TextButton(msgs.changeBtnText());
|
||||||
change.setIcon(ResourceBundle.INSTANCE.columnLabel());
|
changeBtn.setIcon(ResourceBundle.INSTANCE.columnLabel());
|
||||||
change.setIconAlign(IconAlign.RIGHT);
|
changeBtn.setIconAlign(IconAlign.RIGHT);
|
||||||
change.setToolTip("Change Column Label");
|
changeBtn.setToolTip(msgs.changeBtnToolTip());
|
||||||
|
|
||||||
change.addSelectHandler(new SelectHandler() {
|
changeBtn.addSelectHandler(new SelectHandler() {
|
||||||
|
|
||||||
public void onSelect(SelectEvent event) {
|
public void onSelect(SelectEvent event) {
|
||||||
changeLabelColumns();
|
changeLabelColumns();
|
||||||
|
@ -166,7 +169,7 @@ public class LabelColumnPanel extends FramedPanel implements
|
||||||
v.setScrollMode(ScrollMode.AUTOY);
|
v.setScrollMode(ScrollMode.AUTOY);
|
||||||
v.setAdjustForScroll(true);
|
v.setAdjustForScroll(true);
|
||||||
v.add(columnsContainer, new VerticalLayoutData(1, -1, new Margins(0)));
|
v.add(columnsContainer, new VerticalLayoutData(1, -1, new Margins(0)));
|
||||||
v.add(change, new VerticalLayoutData(-1, -1, new Margins(10, 0, 10, 0)));
|
v.add(changeBtn, new VerticalLayoutData(-1, -1, new Margins(10, 0, 10, 0)));
|
||||||
add(v, new VerticalLayoutData(1, -1, new Margins(0)));
|
add(v, new VerticalLayoutData(1, -1, new Margins(0)));
|
||||||
|
|
||||||
forceLayout();
|
forceLayout();
|
||||||
|
@ -205,8 +208,8 @@ public class LabelColumnPanel extends FramedPanel implements
|
||||||
textLabel.setId(col.getColumnId());
|
textLabel.setId(col.getColumnId());
|
||||||
} else {
|
} else {
|
||||||
TextField text = new TextField();
|
TextField text = new TextField();
|
||||||
text.setValue("nolabel");
|
text.setValue(msgs.nolabelText());
|
||||||
textLabel = new FieldLabel(text, "nolabel");
|
textLabel = new FieldLabel(text, msgs.nolabelTextLabel());
|
||||||
textLabel.setLabelWidth(LABELWIDTH);
|
textLabel.setLabelWidth(LABELWIDTH);
|
||||||
textLabel.setId(col.getColumnId());
|
textLabel.setId(col.getColumnId());
|
||||||
}
|
}
|
||||||
|
@ -270,7 +273,7 @@ public class LabelColumnPanel extends FramedPanel implements
|
||||||
labelColumnSession = new LabelColumnSession(trId, maps);
|
labelColumnSession = new LabelColumnSession(trId, maps);
|
||||||
callLabelColumn();
|
callLabelColumn();
|
||||||
} else {
|
} else {
|
||||||
UtilsGXT3.alert("Attention", "Insert valid labels!");
|
UtilsGXT3.alert("Attention", msgs.insertValidLabels());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -297,8 +300,8 @@ public class LabelColumnPanel extends FramedPanel implements
|
||||||
Log.debug("Change The Column Label Error: "
|
Log.debug("Change The Column Label Error: "
|
||||||
+ caught.getLocalizedMessage());
|
+ caught.getLocalizedMessage());
|
||||||
UtilsGXT3
|
UtilsGXT3
|
||||||
.alert("Error Changing The Column Label",
|
.alert(msgs.errorChangingTheColumnLabelHead(),
|
||||||
"Error in invocation of Change The Column Label operation!");
|
msgs.errorChangingTheColumnLabel());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -306,7 +309,7 @@ public class LabelColumnPanel extends FramedPanel implements
|
||||||
|
|
||||||
public void onSuccess(String taskId) {
|
public void onSuccess(String taskId) {
|
||||||
UtilsGXT3
|
UtilsGXT3
|
||||||
.info("Success", "Updated labels");
|
.info("Success", msgs.updatedLabels());
|
||||||
syncOpComplete();
|
syncOpComplete();
|
||||||
|
|
||||||
//openMonitorDialog(taskId);
|
//openMonitorDialog(taskId);
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<module rename-to='ColumnWidget'>
|
<module rename-to='ColumnWidget'>
|
||||||
<!-- Inherit the core Web Toolkit stuff. -->
|
<!-- Inherit the core Web Toolkit stuff. -->
|
||||||
<inherits name='com.google.gwt.user.User' />
|
<inherits name='com.google.gwt.user.User' />
|
||||||
|
<!-- <inherits name="com.google.gwt.i18n.I18N" /> -->
|
||||||
|
|
||||||
<!-- We need the JUnit module in the main module, -->
|
<!-- We need the JUnit module in the main module, -->
|
||||||
<!-- otherwise eclipse complains (Google plugin bug?) -->
|
<!-- otherwise eclipse complains (Google plugin bug?) -->
|
||||||
|
@ -28,14 +28,22 @@
|
||||||
|
|
||||||
|
|
||||||
<!-- Specify the app entry point class. -->
|
<!-- Specify the app entry point class. -->
|
||||||
<!-- <entry-point class='org.gcube.portlets.user.td.columnwidget.client.ColumnWidgetEntry' /> -->
|
<!-- <entry-point class='org.gcube.portlets.user.td.columnwidget.client.ColumnWidgetEntry'
|
||||||
|
/> -->
|
||||||
|
|
||||||
|
<!-- <set-configuration-property name="locale.cookie" value="TDLangCookie"
|
||||||
|
/> <set-configuration-property name="locale.queryparam" value="TDLang" />
|
||||||
|
<set-configuration-property name="locale.usemeta" value="Y" /> <set-configuration-property
|
||||||
|
name="locale.useragent" value="Y" /> <set-configuration-property name="locale.searchorder"
|
||||||
|
value="cookie,queryparam,meta,useragent" /> <extend-property name="locale"
|
||||||
|
values="en" /> <extend-property name="locale" values="it" /> <extend-property
|
||||||
|
name="locale" values="es" /> <set-property name="locale" value="en, it, es"
|
||||||
|
/> <set-property-fallback name="locale" value="en" /> -->
|
||||||
|
|
||||||
<!--
|
<!-- <set-property name="log_ConsoleLogger" value="ENABLED" /> <set-property
|
||||||
<set-property name="log_ConsoleLogger" value="ENABLED" />
|
name="log_DivLogger" value="ENABLED" /> <set-property name="log_GWTLogger"
|
||||||
<set-property name="log_DivLogger" value="ENABLED" />
|
value="ENABLED" /> <set-property name="log_SystemLogger" value="ENABLED"
|
||||||
<set-property name="log_GWTLogger" value="ENABLED" />
|
/> -->
|
||||||
<set-property name="log_SystemLogger" value="ENABLED" /> -->
|
|
||||||
|
|
||||||
|
|
||||||
<set-property name="log_ConsoleLogger" value="DISABLED" />
|
<set-property name="log_ConsoleLogger" value="DISABLED" />
|
||||||
|
|
|
@ -0,0 +1,23 @@
|
||||||
|
dialogHeadingText = Change Column Type
|
||||||
|
comboColumnEmptyText = Select a column...
|
||||||
|
comboColumnLabel = Column
|
||||||
|
comboColumnTypeCodeEmptyText = Select a column type...
|
||||||
|
comboColumnTypeCodeLabel = Column Type
|
||||||
|
comboMeasureTypeEmptyText = Select a measure type...
|
||||||
|
comboMeasureTypeLabel = Measure Type
|
||||||
|
comboAttributeTypeEmptyText = Select a column type...
|
||||||
|
comboAttributeTypeLabel = Attribute Type
|
||||||
|
comboLocaleTypeEmptyText = Select a locale type...
|
||||||
|
comboLocaleTypeLabel = Locale
|
||||||
|
comboDimensionTypeEmptyText = Select a Codelist...
|
||||||
|
comboDimensionTypeLabel = Codelist
|
||||||
|
comboColumnReferenceTypeEmptyText = Select a Column Reference...
|
||||||
|
comboColumnReferenceTypeLabel = Column
|
||||||
|
comboColumnMappingEmptyText = Select optional mapping...
|
||||||
|
comboColumnMappingLabel = Mapping
|
||||||
|
comboPeriodTypeEmptyText = Select a period type...
|
||||||
|
comboPeriodTypeLabel = Period Type
|
||||||
|
comboValueDataFormatEmptyText = Select a format...
|
||||||
|
comboValueDataFormatLabel = Format
|
||||||
|
applyBtnText = Apply
|
||||||
|
applyBtnToolTip = Apply Column Type
|
|
@ -0,0 +1,23 @@
|
||||||
|
dialogHeadingText = Cambio del Tipo de Columna
|
||||||
|
comboColumnEmptyText = Seleccionar una columna...
|
||||||
|
comboColumnLabel = Columna
|
||||||
|
comboColumnTypeCodeEmptyText = Seleccionar tipo...
|
||||||
|
comboColumnTypeCodeLabel = Tipo
|
||||||
|
comboMeasureTypeEmptyText = Seleccionar medida...
|
||||||
|
comboMeasureTypeLabel = Medida
|
||||||
|
comboAttributeTypeEmptyText = Seleccionar attributo...
|
||||||
|
comboAttributeTypeLabel = Atributo
|
||||||
|
comboLocaleTypeEmptyText = Seleccionar locale...
|
||||||
|
comboLocaleTypeLabel = Locale
|
||||||
|
comboDimensionTypeEmptyText = Seleccionar Codelist...
|
||||||
|
comboDimensionTypeLabel = Codelist
|
||||||
|
comboColumnReferenceTypeEmptyText = Seleccionar referencia...
|
||||||
|
comboColumnReferenceTypeLabel = Columna
|
||||||
|
comboColumnMappingEmptyText = Seleccionar mapping opcional...
|
||||||
|
comboColumnMappingLabel = Mapping
|
||||||
|
comboPeriodTypeEmptyText = Seleccionar período...
|
||||||
|
comboPeriodTypeLabel = Período
|
||||||
|
comboValueDataFormatEmptyText = Seleccionar el tamaño...
|
||||||
|
comboValueDataFormatLabel = Tamaño
|
||||||
|
applyBtnText = Aplica
|
||||||
|
applyBtnToolTip = Aplica Tipo
|
|
@ -0,0 +1,23 @@
|
||||||
|
dialogHeadingText = Cambia Tipo della Colonna
|
||||||
|
comboColumnEmptyText = Seleziona una colonna...
|
||||||
|
comboColumnLabel = Colonna
|
||||||
|
comboColumnTypeCodeEmptyText = Seleziona tipo...
|
||||||
|
comboColumnTypeCodeLabel = Tipo
|
||||||
|
comboMeasureTypeEmptyText = Seleziona misura...
|
||||||
|
comboMeasureTypeLabel = Misura
|
||||||
|
comboAttributeTypeEmptyText = Seleziona attributo...
|
||||||
|
comboAttributeTypeLabel = Attributo
|
||||||
|
comboLocaleTypeEmptyText = Seleziona locale...
|
||||||
|
comboLocaleTypeLabel = Locale
|
||||||
|
comboDimensionTypeEmptyText = Seleziona Codelist...
|
||||||
|
comboDimensionTypeLabel = Codelist
|
||||||
|
comboColumnReferenceTypeEmptyText = Seleziona riferimento...
|
||||||
|
comboColumnReferenceTypeLabel = Colonna
|
||||||
|
comboColumnMappingEmptyText = Seleziona mapping opzionale...
|
||||||
|
comboColumnMappingLabel = Mapping
|
||||||
|
comboPeriodTypeEmptyText = Seleziona periodo...
|
||||||
|
comboPeriodTypeLabel = Periodo
|
||||||
|
comboValueDataFormatEmptyText = Seleziona formato...
|
||||||
|
comboValueDataFormatLabel = Formato
|
||||||
|
applyBtnText = Applica
|
||||||
|
applyBtnToolTip = Applica il Tipo alla Colonna
|
|
@ -0,0 +1,4 @@
|
||||||
|
dialogHeadingText = Delete Columns
|
||||||
|
deleteBtnText = Delete
|
||||||
|
deleteBtnToolTip = Delete Columns
|
||||||
|
columnsLabel = Columns
|
|
@ -0,0 +1,4 @@
|
||||||
|
dialogHeadingText = Borrar Columnas
|
||||||
|
deleteBtnText = Borrar
|
||||||
|
deleteBtnToolTip = Borrar Columnas
|
||||||
|
columnsLabel = Columnas
|
|
@ -0,0 +1,4 @@
|
||||||
|
dialogHeadingText = Elimina Colonne
|
||||||
|
deleteBtnText = Elimina
|
||||||
|
deleteBtnToolTip = Elimina Colonne
|
||||||
|
columnsLabel = Colonne
|
|
@ -0,0 +1,9 @@
|
||||||
|
dialogHeadingText = Label Columns
|
||||||
|
changeBtnText = Change
|
||||||
|
changeBtnToolTip = Change Columns Label
|
||||||
|
updatedLabels = Updated labels
|
||||||
|
nolabelText = nolabel
|
||||||
|
nolabelTextLabel = nolabel
|
||||||
|
insertValidLabels = Insert valid labels!
|
||||||
|
errorChangingTheColumnLabelHead = Error Changing The Column Label
|
||||||
|
errorChangingTheColumnLabel = Error in invocation of Change The Column Label operation!
|
|
@ -0,0 +1,9 @@
|
||||||
|
dialogHeadingText = Etiquetas
|
||||||
|
changeBtnText = Cambiar
|
||||||
|
changeBtnToolTip = Cambiar Etiquetas
|
||||||
|
updatedLabels = Etiquetas Actualizan
|
||||||
|
nolabelText = noetiqueta
|
||||||
|
nolabelTextLabel = noetiqueta
|
||||||
|
insertValidLabels = Introducir etiquetas válidas!
|
||||||
|
errorChangingTheColumnLabelHead = Error en el Cambio de las Etiquetas
|
||||||
|
errorChangingTheColumnLabel = Error en la Operación de Cambio de las Etiquetas!
|
|
@ -0,0 +1,9 @@
|
||||||
|
dialogHeadingText = Etichette
|
||||||
|
changeBtnText = Modifica
|
||||||
|
changeBtnToolTip = Modifica Etichette
|
||||||
|
updatedLabels = Etichette Aggiornate
|
||||||
|
nolabelText = senzaetichetta
|
||||||
|
nolabelTextLabel = senzaetichetta
|
||||||
|
insertValidLabels = Inserisci etichette valide!
|
||||||
|
errorChangingTheColumnLabelHead = Errore modificando l''etichette
|
||||||
|
errorChangingTheColumnLabel = Errore nell''invocazione dell''operazione di modifica etichette!
|
|
@ -1,2 +0,0 @@
|
||||||
sendButton = Send
|
|
||||||
nameField = Enter your name
|
|
|
@ -1,2 +0,0 @@
|
||||||
sendButton = Envoyer
|
|
||||||
nameField = Entrez votre nom
|
|
Loading…
Reference in New Issue