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@119588 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
e715c6313b
commit
0f15582d08
|
@ -79,8 +79,76 @@ public interface ChangeColumnTypeMessages extends Messages {
|
|||
|
||||
@DefaultMessage("Apply Column Type")
|
||||
String applyBtnToolTip();
|
||||
|
||||
|
||||
//Error
|
||||
@DefaultMessage("Error retrieving value data formats map!")
|
||||
String errorRetrievingValueDataFormatsMap();
|
||||
|
||||
@DefaultMessage("Error retrieving column")
|
||||
String errorRetrievingColumnOnServerHead();
|
||||
|
||||
@DefaultMessage("Error retrieving column on server!")
|
||||
String errorRetrievingColumnOnServer();
|
||||
|
||||
@DefaultMessage("The requested column is null!")
|
||||
String requestColumnIsNull();
|
||||
|
||||
@DefaultMessage("Error retrieving columns of tabular resource:")
|
||||
String errorRetrievingColumnsOfTabularResource();
|
||||
|
||||
@DefaultMessage("Error retrieving connection")
|
||||
String errorRetrievingConnectionHead();
|
||||
|
||||
@DefaultMessage("Error retrieving connection column!")
|
||||
String errorRetrievingConnection();
|
||||
|
||||
@DefaultMessage("Type format not selected!")
|
||||
String typeFormatNotSelected();
|
||||
|
||||
@DefaultMessage("Column data type not selected!")
|
||||
String columnDataTypeNotSelected();
|
||||
|
||||
@DefaultMessage("No locale selected!")
|
||||
String noLocaleSelected();
|
||||
|
||||
@DefaultMessage("Time Format not selected!")
|
||||
String timeFormatNotSelected();
|
||||
|
||||
@DefaultMessage("Period Type not selected!")
|
||||
String periodTypeNotSelected();
|
||||
|
||||
@DefaultMessage("This column type is not supported now!")
|
||||
String thisColumnTypeIsNotSupportedForNow();
|
||||
|
||||
@DefaultMessage("Select a column type!")
|
||||
String selectAColumnType();
|
||||
|
||||
@DefaultMessage("Select a column!")
|
||||
String selectAColumn();
|
||||
|
||||
@DefaultMessage("Change Column Type Error")
|
||||
String changeColumnTypeErrorHead();
|
||||
|
||||
@DefaultMessage("Error in invocation of change column type operation!")
|
||||
String changeColumnTypeError();
|
||||
|
||||
@DefaultMessage("Error retrieving tabular resource")
|
||||
String errorRetrievingTabularResource();
|
||||
|
||||
@DefaultMessage("Error retrieving locales")
|
||||
String errorRetrievingLocales();
|
||||
|
||||
@DefaultMessage("Error retrieving period type")
|
||||
String errorRetrievingPeriodType();
|
||||
|
||||
@DefaultMessage("Column not selected!")
|
||||
String columnNotSelected();
|
||||
|
||||
@DefaultMessage("Codelist not selected!")
|
||||
String codelistNotSelected();
|
||||
|
||||
@DefaultMessage("Reference column not selected!")
|
||||
String referenceColumnNotSelected();
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -180,7 +180,7 @@ public class ChangeColumnTypePanel extends FramedPanel implements
|
|||
Log.debug("Error retrieving value data formats map: "
|
||||
+ caught.getLocalizedMessage());
|
||||
UtilsGXT3.alert("Error",
|
||||
"Error retrieving value data formats map!");
|
||||
msgs.errorRetrievingValueDataFormatsMap());
|
||||
|
||||
}
|
||||
|
||||
|
@ -225,8 +225,8 @@ public class ChangeColumnTypePanel extends FramedPanel implements
|
|||
Log.debug("Error retrieving column: "
|
||||
+ caught.getLocalizedMessage());
|
||||
UtilsGXT3
|
||||
.alert("Error retrieving column",
|
||||
"Error retrieving column on server!");
|
||||
.alert(msgs.errorRetrievingColumnOnServerHead(),
|
||||
msgs.errorRetrievingColumnOnServer());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -238,7 +238,7 @@ public class ChangeColumnTypePanel extends FramedPanel implements
|
|||
Log.debug("Retrieved Column: " + result);
|
||||
if (result == null) {
|
||||
UtilsGXT3.alert("Error",
|
||||
"The requested column is null");
|
||||
msgs.requestColumnIsNull());
|
||||
}
|
||||
columnRequested = result;
|
||||
if (panelCreated) {
|
||||
|
@ -875,7 +875,7 @@ public class ChangeColumnTypePanel extends FramedPanel implements
|
|||
Log.error("load combo failure:"
|
||||
+ caught.getLocalizedMessage());
|
||||
UtilsGXT3.alert("Error",
|
||||
"Error retrieving columns of tabular resource:"
|
||||
msgs.errorRetrievingColumnsOfTabularResource()
|
||||
+ trId.getId());
|
||||
}
|
||||
}
|
||||
|
@ -1053,8 +1053,8 @@ public class ChangeColumnTypePanel extends FramedPanel implements
|
|||
Log.error("load column failure:"
|
||||
+ caught.getLocalizedMessage());
|
||||
UtilsGXT3
|
||||
.alert("Error retrieving connection",
|
||||
"Error retrieving connection column");
|
||||
.alert(msgs.errorRetrievingConnectionHead(),
|
||||
msgs.errorRetrievingConnection());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1179,17 +1179,17 @@ public class ChangeColumnTypePanel extends FramedPanel implements
|
|||
callChangeColumnType();
|
||||
} else {
|
||||
UtilsGXT3.alert("Attention",
|
||||
"Type format not selected!");
|
||||
msgs.typeFormatNotSelected());
|
||||
}
|
||||
|
||||
} else {
|
||||
UtilsGXT3.alert("Attention",
|
||||
"Column data type not selected!");
|
||||
msgs.columnDataTypeNotSelected());
|
||||
}
|
||||
|
||||
} else {
|
||||
UtilsGXT3.alert("Attention",
|
||||
"Column data type not selected!");
|
||||
msgs.columnDataTypeNotSelected());
|
||||
}
|
||||
break;
|
||||
case ATTRIBUTE:
|
||||
|
@ -1212,15 +1212,15 @@ public class ChangeColumnTypePanel extends FramedPanel implements
|
|||
callChangeColumnType();
|
||||
} else {
|
||||
UtilsGXT3.alert("Attention",
|
||||
"Type format not selected!");
|
||||
msgs.typeFormatNotSelected());
|
||||
}
|
||||
} else {
|
||||
UtilsGXT3.alert("Attention",
|
||||
"Column data type not selected!");
|
||||
msgs.columnDataTypeNotSelected());
|
||||
}
|
||||
} else {
|
||||
UtilsGXT3.alert("Attention",
|
||||
"Column data type not selected!");
|
||||
msgs.columnDataTypeNotSelected());
|
||||
}
|
||||
break;
|
||||
case CODE:
|
||||
|
@ -1236,7 +1236,7 @@ public class ChangeColumnTypePanel extends FramedPanel implements
|
|||
.getLocaleName());
|
||||
callChangeColumnType();
|
||||
} else {
|
||||
UtilsGXT3.alert("Attention", "No locale selected!");
|
||||
UtilsGXT3.alert("Attention", msgs.noLocaleSelected());
|
||||
}
|
||||
break;
|
||||
case CODEDESCRIPTION:
|
||||
|
@ -1263,7 +1263,7 @@ public class ChangeColumnTypePanel extends FramedPanel implements
|
|||
callChangeColumnType();
|
||||
} else {
|
||||
UtilsGXT3.alert("Attention",
|
||||
"No column reference selected!");
|
||||
msgs.referenceColumnNotSelected());
|
||||
}
|
||||
break;
|
||||
case TIMEDIMENSION:
|
||||
|
@ -1281,24 +1281,24 @@ public class ChangeColumnTypePanel extends FramedPanel implements
|
|||
callChangeColumnType();
|
||||
} else {
|
||||
UtilsGXT3.alert("Attention",
|
||||
"Time Format not selected!");
|
||||
msgs.timeFormatNotSelected());
|
||||
}
|
||||
|
||||
} else {
|
||||
UtilsGXT3.alert("Attention",
|
||||
"Period Type not selected!");
|
||||
msgs.periodTypeNotSelected());
|
||||
}
|
||||
break;
|
||||
default:
|
||||
UtilsGXT3.alert("Attention",
|
||||
"This column type is not supported now!");
|
||||
msgs.thisColumnTypeIsNotSupportedForNow());
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
UtilsGXT3.alert("Attention", "Select a column type!");
|
||||
UtilsGXT3.alert("Attention", msgs.selectAColumnType());
|
||||
}
|
||||
} else {
|
||||
UtilsGXT3.alert("Attention", "Select a column!");
|
||||
UtilsGXT3.alert("Attention", msgs.selectAColumn());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1323,8 +1323,8 @@ public class ChangeColumnTypePanel extends FramedPanel implements
|
|||
Log.debug("Change Column Type Error: "
|
||||
+ caught.getLocalizedMessage());
|
||||
UtilsGXT3
|
||||
.alert("Change Column Type Error ",
|
||||
"Error in invocation of change column type operation!");
|
||||
.alert(msgs.changeColumnTypeErrorHead(),
|
||||
msgs.changeColumnTypeError());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1390,8 +1390,8 @@ public class ChangeColumnTypePanel extends FramedPanel implements
|
|||
Log.debug("Error retrieving columns: "
|
||||
+ caught.getLocalizedMessage());
|
||||
UtilsGXT3
|
||||
.alert("Error retrieving columns",
|
||||
"Error retrieving columns on server!");
|
||||
.alert(msgs.errorRetrievingColumnOnServerHead(),
|
||||
msgs.errorRetrievingColumnOnServer());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1433,8 +1433,8 @@ public class ChangeColumnTypePanel extends FramedPanel implements
|
|||
Log.debug("Error retrieving columns: "
|
||||
+ caught.getLocalizedMessage());
|
||||
UtilsGXT3
|
||||
.alert("Error retrieving columns",
|
||||
"Error retrieving columns on server!");
|
||||
.alert(msgs.errorRetrievingColumnOnServerHead(),
|
||||
msgs.errorRetrievingColumnOnServer());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1478,7 +1478,7 @@ public class ChangeColumnTypePanel extends FramedPanel implements
|
|||
Log.debug("Error retrieving tabular resource: "
|
||||
+ caught.getLocalizedMessage());
|
||||
UtilsGXT3
|
||||
.alert("Error retrieving tabular resource",
|
||||
.alert(msgs.errorRetrievingTabularResource(),
|
||||
caught.getLocalizedMessage());
|
||||
}
|
||||
}
|
||||
|
@ -1518,7 +1518,7 @@ public class ChangeColumnTypePanel extends FramedPanel implements
|
|||
caught.getLocalizedMessage());
|
||||
} else {
|
||||
Log.debug(caught.getLocalizedMessage());
|
||||
UtilsGXT3.alert("Error retrieving locales",
|
||||
UtilsGXT3.alert(msgs.errorRetrievingLocales(),
|
||||
caught.getLocalizedMessage());
|
||||
}
|
||||
}
|
||||
|
@ -1565,7 +1565,7 @@ public class ChangeColumnTypePanel extends FramedPanel implements
|
|||
} else {
|
||||
Log.debug(caught.getLocalizedMessage());
|
||||
UtilsGXT3.alert(
|
||||
"Error retrieving period type",
|
||||
msgs.errorRetrievingPeriodType(),
|
||||
caught.getLocalizedMessage());
|
||||
}
|
||||
}
|
||||
|
@ -1597,19 +1597,19 @@ public class ChangeColumnTypePanel extends FramedPanel implements
|
|||
protected void callColumnMappingDialog() {
|
||||
ColumnData selectedColumn = comboColumn.getCurrentValue();
|
||||
if (selectedColumn == null) {
|
||||
UtilsGXT3.alert("Attention", "Column not selected!");
|
||||
UtilsGXT3.alert("Attention", msgs.columnNotSelected());
|
||||
return;
|
||||
}
|
||||
|
||||
TabResource dimensionTR = comboDimensionType.getValue();
|
||||
if (dimensionTR == null) {
|
||||
UtilsGXT3.alert("Attention", "Codelist not selected!");
|
||||
UtilsGXT3.alert("Attention", msgs.codelistNotSelected());
|
||||
return;
|
||||
}
|
||||
|
||||
ColumnData referenceColumn = comboColumnReferenceType.getValue();
|
||||
if (referenceColumn == null) {
|
||||
UtilsGXT3.alert("Attention", "Reference column not selected!");
|
||||
UtilsGXT3.alert("Attention", msgs.referenceColumnNotSelected());
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ import com.google.gwt.i18n.client.Messages;
|
|||
*/
|
||||
public interface PositionColumnMessages extends Messages {
|
||||
|
||||
@DefaultMessage("Change Columns Position")
|
||||
@DefaultMessage("Change columns position")
|
||||
String dialogHeadingText();
|
||||
|
||||
//
|
||||
|
@ -21,7 +21,7 @@ public interface PositionColumnMessages extends Messages {
|
|||
@DefaultMessage("Apply")
|
||||
String applyBtnText();
|
||||
|
||||
@DefaultMessage("Apply Position Columns")
|
||||
@DefaultMessage("Apply position columns")
|
||||
String applyBtnToolTip();
|
||||
|
||||
@DefaultMessage("Use drag and drop in order to change the position of the columns:")
|
||||
|
|
|
@ -29,6 +29,7 @@ import org.gcube.portlets.user.td.widgetcommonevent.shared.TRId;
|
|||
import org.gcube.portlets.user.td.widgetcommonevent.shared.tr.column.ColumnData;
|
||||
|
||||
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.web.bindery.event.shared.EventBus;
|
||||
import com.sencha.gxt.widget.core.client.Window;
|
||||
|
@ -42,11 +43,12 @@ import com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler;
|
|||
*
|
||||
*/
|
||||
public class ReplaceBatchDialog extends Window implements MonitorDialogListener {
|
||||
// ProgressDialogListener, ResumeDialogListener {
|
||||
protected enum CALLTYPE {
|
||||
REPLACEBATH, RESUME;
|
||||
}
|
||||
|
||||
private ReplaceBatchMessages msgs;
|
||||
|
||||
|
||||
private static final String WIDTH = "650px";
|
||||
private static final String HEIGHT = "560px";
|
||||
private TRId trId;
|
||||
|
@ -68,6 +70,7 @@ public class ReplaceBatchDialog extends Window implements MonitorDialogListener
|
|||
this.trId = trId;
|
||||
this.eventBus = eventBus;
|
||||
taskIdOfInvocationS = null;
|
||||
initMessages();
|
||||
initWindow();
|
||||
ReplaceBatchPanel batchRepalcePanel = new ReplaceBatchPanel(this, trId,
|
||||
columnLocalId, eventBus);
|
||||
|
@ -82,11 +85,12 @@ public class ReplaceBatchDialog extends Window implements MonitorDialogListener
|
|||
*/
|
||||
public ReplaceBatchDialog(TRId trId, RequestProperties requestProperties,
|
||||
EventBus eventBus) {
|
||||
Log.debug("ReplaceBatchDialog: " + trId + ", RequestProperties:"
|
||||
+ requestProperties);
|
||||
this.trId = trId;
|
||||
this.eventBus = eventBus;
|
||||
|
||||
initMessages();
|
||||
Log.debug("ReplaceBatchDialog: " + trId + ", RequestProperties:"
|
||||
+ requestProperties);
|
||||
|
||||
invocationS = (InvocationS) requestProperties.getMap().get(
|
||||
RequestPropertiesParameterType.InvocationS);
|
||||
taskIdOfInvocationS = invocationS.getTaskId();
|
||||
|
@ -101,7 +105,11 @@ public class ReplaceBatchDialog extends Window implements MonitorDialogListener
|
|||
requestProperties, eventBus);
|
||||
add(batchRepalcePanel);
|
||||
}
|
||||
|
||||
|
||||
protected void initMessages(){
|
||||
msgs = GWT.create(ReplaceBatchMessages.class);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
@ -115,14 +123,14 @@ public class ReplaceBatchDialog extends Window implements MonitorDialogListener
|
|||
setModal(true);
|
||||
forceLayoutOnResize = true;
|
||||
if (conditionCode == null) {
|
||||
setHeadingText("Replace Batch");
|
||||
setHeadingText(msgs.dialogReplaceBatchHeadingText());
|
||||
getHeader().setIcon(ResourceBundle.INSTANCE.replaceBatch());
|
||||
} else {
|
||||
switch (conditionCode) {
|
||||
case AllowedColumnType:
|
||||
break;
|
||||
case AmbiguousValueOnExternalReference:
|
||||
setHeadingText("Resolve Ambiguous Values");
|
||||
setHeadingText(msgs.dialogResolveAmbiguousValuesHeadingText());
|
||||
break;
|
||||
case CastValidation:
|
||||
break;
|
||||
|
@ -139,7 +147,7 @@ public class ReplaceBatchDialog extends Window implements MonitorDialogListener
|
|||
case MaxOneCodenameForDataLocale:
|
||||
break;
|
||||
case MissingValueOnExternalReference:
|
||||
setHeadingText("Resolve Value on External Reference");
|
||||
setHeadingText(msgs.dialogResolveValueOnExternalReferenceHeadingText());
|
||||
break;
|
||||
case MustContainAtLeastOneDimension:
|
||||
break;
|
||||
|
@ -154,7 +162,7 @@ public class ReplaceBatchDialog extends Window implements MonitorDialogListener
|
|||
case ValidPeriodFormat:
|
||||
break;
|
||||
default:
|
||||
setHeadingText("Replace Batch");
|
||||
setHeadingText(msgs.dialogReplaceBatchHeadingText());
|
||||
getHeader().setIcon(ResourceBundle.INSTANCE.replaceBatch());
|
||||
break;
|
||||
|
||||
|
@ -264,8 +272,8 @@ public class ReplaceBatchDialog extends Window implements MonitorDialogListener
|
|||
} else {
|
||||
Log.error("Start Replace Batch failed:"
|
||||
+ caught.getLocalizedMessage());
|
||||
UtilsGXT3.alert("Error on batch replace",
|
||||
"Error on batch replace");
|
||||
UtilsGXT3.alert(msgs.errorOnBatchReplaceHead(),
|
||||
msgs.errorOnBatchReplace());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -319,10 +327,8 @@ public class ReplaceBatchDialog extends Window implements MonitorDialogListener
|
|||
Log.error("Task Resume failed:"
|
||||
+ caught.getLocalizedMessage());
|
||||
UtilsGXT3
|
||||
.alert("Error on task resume",
|
||||
"Error on task resume (taskId="
|
||||
+ taskIdOfInvocationS
|
||||
+ ")");
|
||||
.alert(msgs.errorOnTaskResumeHead(),
|
||||
msgs.errorOnTaskResume(taskIdOfInvocationS));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -368,10 +374,8 @@ public class ReplaceBatchDialog extends Window implements MonitorDialogListener
|
|||
Log.error("Task Resume failed:"
|
||||
+ caught.getLocalizedMessage());
|
||||
UtilsGXT3
|
||||
.alert("Error on task resume",
|
||||
"Error on task resume (taskId="
|
||||
+ taskIdOfInvocationS
|
||||
+ ")");
|
||||
.alert(msgs.errorOnTaskResumeHead(),
|
||||
msgs.errorOnTaskResume(taskIdOfInvocationS));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -524,11 +528,11 @@ public class ReplaceBatchDialog extends Window implements MonitorDialogListener
|
|||
public void operationFailed(Throwable caught, String reason, String details) {
|
||||
switch (callType) {
|
||||
case REPLACEBATH:
|
||||
UtilsGXT3.alert("Error in Replace Batch", reason);
|
||||
UtilsGXT3.alert(msgs.errorOnBatchReplaceHead(), reason);
|
||||
close();
|
||||
break;
|
||||
case RESUME:
|
||||
UtilsGXT3.alert("Error in Task Resume", reason);
|
||||
UtilsGXT3.alert(msgs.errorOnTaskResumeHead(), reason);
|
||||
hide();
|
||||
break;
|
||||
default:
|
||||
|
|
|
@ -0,0 +1,121 @@
|
|||
package org.gcube.portlets.user.td.columnwidget.client.batch;
|
||||
|
||||
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 ReplaceBatchMessages extends Messages {
|
||||
|
||||
@DefaultMessage("Replace Batch")
|
||||
String dialogReplaceBatchHeadingText();
|
||||
|
||||
@DefaultMessage("Resolve Ambiguous Values")
|
||||
String dialogResolveAmbiguousValuesHeadingText();
|
||||
|
||||
@DefaultMessage("Resolve Value on External Reference")
|
||||
String dialogResolveValueOnExternalReferenceHeadingText();
|
||||
|
||||
@DefaultMessage("Error on batch replace")
|
||||
String errorOnBatchReplaceHead();
|
||||
|
||||
@DefaultMessage("Error on batch replace!")
|
||||
String errorOnBatchReplace();
|
||||
|
||||
@DefaultMessage("Error on task resume")
|
||||
String errorOnTaskResumeHead();
|
||||
|
||||
@DefaultMessage("Error on task resume (taskId={0})")
|
||||
String errorOnTaskResume(String taskIdOfInvocationS);
|
||||
|
||||
@DefaultMessage("Select a column...")
|
||||
String selectAColumn();
|
||||
|
||||
@DefaultMessage("Column")
|
||||
String column();
|
||||
|
||||
@DefaultMessage("Select a show type...")
|
||||
String selectAShowType();
|
||||
|
||||
@DefaultMessage("Show")
|
||||
String show();
|
||||
|
||||
@DefaultMessage("Connect")
|
||||
String connect();
|
||||
|
||||
@DefaultMessage("Disconnect")
|
||||
String disconnect();
|
||||
|
||||
@DefaultMessage("Connection")
|
||||
String connection();
|
||||
|
||||
@DefaultMessage("Values")
|
||||
String values();
|
||||
|
||||
@DefaultMessage("Occurrences")
|
||||
String occurrences();
|
||||
|
||||
@DefaultMessage("Replacement")
|
||||
String replacement();
|
||||
|
||||
@DefaultMessage("Not replaced")
|
||||
String notReplaced();
|
||||
|
||||
@DefaultMessage("Change")
|
||||
String change();
|
||||
|
||||
@DefaultMessage("No info")
|
||||
String noInfo();
|
||||
|
||||
@DefaultMessage("Save")
|
||||
String btnSaveText();
|
||||
|
||||
@DefaultMessage("Save")
|
||||
String btnSaveToolTip();
|
||||
|
||||
@DefaultMessage("Close")
|
||||
String btnCloseText();
|
||||
|
||||
@DefaultMessage("Close")
|
||||
String btnCloseToolTip();
|
||||
|
||||
@DefaultMessage("Error retrieving column")
|
||||
String errorRetrievingColumnHead();
|
||||
|
||||
@DefaultMessage("Error retrieving column")
|
||||
String errorRetrievingColumn();
|
||||
|
||||
@DefaultMessage("Error retrieving columns")
|
||||
String errorRetrievingColumnsHead();
|
||||
|
||||
@DefaultMessage("Error retrieving columns")
|
||||
String errorRetrievingColumns();
|
||||
|
||||
@DefaultMessage("Too many different occurrences")
|
||||
String tooManyDifferentOccurrences();
|
||||
|
||||
@DefaultMessage("Assigned")
|
||||
String assigned();
|
||||
|
||||
@DefaultMessage("occurrences) of")
|
||||
String occurrencesOf();
|
||||
|
||||
@DefaultMessage("occurrences")
|
||||
String occurrencesLow();
|
||||
|
||||
@DefaultMessage("Select at least one value to replace")
|
||||
String selectAtLeastOneValueToReplace();
|
||||
|
||||
@DefaultMessage("Error on connect")
|
||||
String errorOnConnectHead();
|
||||
|
||||
@DefaultMessage("Error retrieving connection")
|
||||
String errorRetrievingConnectionColumnHead();
|
||||
|
||||
@DefaultMessage("Error retrieving connection column!")
|
||||
String errorRetrievingConnectionColumn();
|
||||
|
||||
}
|
|
@ -91,7 +91,6 @@ import com.sencha.gxt.widget.core.client.grid.ColumnConfig;
|
|||
import com.sencha.gxt.widget.core.client.grid.ColumnModel;
|
||||
import com.sencha.gxt.widget.core.client.grid.Grid;
|
||||
import com.sencha.gxt.widget.core.client.grid.RowNumberer;
|
||||
import com.sencha.gxt.widget.core.client.info.Info;
|
||||
import com.sencha.gxt.widget.core.client.toolbar.ToolBar;
|
||||
|
||||
/**
|
||||
|
@ -103,7 +102,7 @@ import com.sencha.gxt.widget.core.client.toolbar.ToolBar;
|
|||
public class ReplaceBatchPanel extends FramedPanel implements
|
||||
SingleValueReplaceListener, DimensionRowSelectionListener,
|
||||
ConnectCodelistListener {
|
||||
private static final String DON_T_REPLACE = "Don't replace";
|
||||
private ReplaceBatchMessages msgs;
|
||||
private static final String WIDTH = "560px";
|
||||
private static final String HEIGHT = "550px";
|
||||
private static final String GRID_HEIGHT = "344px";
|
||||
|
@ -159,7 +158,9 @@ public class ReplaceBatchPanel extends FramedPanel implements
|
|||
this.parent = parent;
|
||||
this.trId = trId;
|
||||
this.eventBus = eventBus;
|
||||
|
||||
|
||||
initMessages();
|
||||
|
||||
InvocationS invocationS = (InvocationS) requestProperties.getMap().get(
|
||||
RequestPropertiesParameterType.InvocationS);
|
||||
|
||||
|
@ -190,7 +191,9 @@ public class ReplaceBatchPanel extends FramedPanel implements
|
|||
this.eventBus = eventBus;
|
||||
this.conditionCode = null;
|
||||
this.validationColumnColumnId = null;
|
||||
|
||||
|
||||
initMessages();
|
||||
|
||||
connection = null;
|
||||
hasValidationColumns = false;
|
||||
Log.debug("Create BatchReplacePanel(): [" + trId.toString()
|
||||
|
@ -199,7 +202,11 @@ public class ReplaceBatchPanel extends FramedPanel implements
|
|||
retrieveColumnsWithOnlyViewColumnInRel();
|
||||
|
||||
}
|
||||
|
||||
|
||||
protected void initMessages(){
|
||||
msgs = GWT.create(ReplaceBatchMessages.class);
|
||||
}
|
||||
|
||||
protected void init() {
|
||||
setWidth(WIDTH);
|
||||
setHeight(HEIGHT);
|
||||
|
@ -229,12 +236,12 @@ public class ReplaceBatchPanel extends FramedPanel implements
|
|||
|
||||
comboCols.addSelectionHandler(comboColsSelection());
|
||||
|
||||
comboCols.setEmptyText("Select a column...");
|
||||
comboCols.setEmptyText(msgs.selectAColumn());
|
||||
comboCols.setEditable(false);
|
||||
comboCols.setTriggerAction(TriggerAction.ALL);
|
||||
comboCols.setWidth(COMBOCOLS_WIDTH);
|
||||
|
||||
FieldLabel columnField = new FieldLabel(comboCols, "Column");
|
||||
FieldLabel columnField = new FieldLabel(comboCols, msgs.column());
|
||||
|
||||
flexTable.setWidget(0, 0, columnField);
|
||||
|
||||
|
@ -250,7 +257,7 @@ public class ReplaceBatchPanel extends FramedPanel implements
|
|||
|
||||
addHandlersForShowOccurrencesType(propsShowOccurrencesType.label());
|
||||
|
||||
comboShowOccurrencesType.setEmptyText("Select a show type...");
|
||||
comboShowOccurrencesType.setEmptyText(msgs.selectAShowType());
|
||||
comboShowOccurrencesType.setWidth(SHOW_OCCURENCE_TYPE_WIDTH);
|
||||
comboShowOccurrencesType.setTypeAhead(true);
|
||||
comboShowOccurrencesType.setEditable(false);
|
||||
|
@ -260,7 +267,7 @@ public class ReplaceBatchPanel extends FramedPanel implements
|
|||
.setValue(ShowOccurrencesTypeStore.onlyErrorsElement);
|
||||
|
||||
FieldLabel comboShowOccurrencesTypeField = new FieldLabel(
|
||||
comboShowOccurrencesType, "Show");
|
||||
comboShowOccurrencesType, msgs.show());
|
||||
flexTable.setWidget(1, 0, comboShowOccurrencesTypeField);
|
||||
|
||||
HorizontalLayoutContainer connectionLayout = new HorizontalLayoutContainer();
|
||||
|
@ -270,7 +277,7 @@ public class ReplaceBatchPanel extends FramedPanel implements
|
|||
btnConnect = new TextButton();
|
||||
btnConnect.setIcon(ResourceBundle.INSTANCE.codelistLink24());
|
||||
btnConnect.setIconAlign(IconAlign.TOP);
|
||||
btnConnect.setToolTip("Connect");
|
||||
btnConnect.setToolTip(msgs.connect());
|
||||
btnConnect.addSelectHandler(new SelectHandler() {
|
||||
|
||||
public void onSelect(SelectEvent event) {
|
||||
|
@ -290,7 +297,7 @@ public class ReplaceBatchPanel extends FramedPanel implements
|
|||
btnDisconnect
|
||||
.setIcon(ResourceBundle.INSTANCE.codelistLinkBreak24());
|
||||
btnDisconnect.setIconAlign(IconAlign.TOP);
|
||||
btnDisconnect.setToolTip("Disconnect");
|
||||
btnDisconnect.setToolTip(msgs.disconnect());
|
||||
btnDisconnect.addSelectHandler(new SelectHandler() {
|
||||
|
||||
public void onSelect(SelectEvent event) {
|
||||
|
@ -318,7 +325,7 @@ public class ReplaceBatchPanel extends FramedPanel implements
|
|||
|
||||
}
|
||||
|
||||
FieldLabel conField = new FieldLabel(connectionLayout, "Connection");
|
||||
FieldLabel conField = new FieldLabel(connectionLayout, msgs.connection());
|
||||
flexTable.setWidget(2, 0, conField);
|
||||
|
||||
cleanCells(flexTable.getElement());
|
||||
|
@ -347,11 +354,11 @@ public class ReplaceBatchPanel extends FramedPanel implements
|
|||
ReplaceEntryProperties props = GWT.create(ReplaceEntryProperties.class);
|
||||
|
||||
ColumnConfig<ReplaceEntry, String> valueCol = new ColumnConfig<ReplaceEntry, String>(
|
||||
props.value(), 130, "Values");
|
||||
props.value(), 130, msgs.values());
|
||||
ColumnConfig<ReplaceEntry, Integer> numberCol = new ColumnConfig<ReplaceEntry, Integer>(
|
||||
props.number(), 100, "Occurrences");
|
||||
props.number(), 100, msgs.occurrences());
|
||||
ColumnConfig<ReplaceEntry, String> replacementValueCol = new ColumnConfig<ReplaceEntry, String>(
|
||||
props.replacementValue(), 130, "Replacement");
|
||||
props.replacementValue(), 130, msgs.replacement());
|
||||
|
||||
replacementValueCol.setCell(new AbstractCell<String>() {
|
||||
|
||||
|
@ -360,7 +367,7 @@ public class ReplaceBatchPanel extends FramedPanel implements
|
|||
if (value == null) {
|
||||
String style = "style='color: black;font-weight:bold'";
|
||||
sb.appendHtmlConstant("<span " + style + ">"
|
||||
+ DON_T_REPLACE + "</span>");
|
||||
+ msgs.notReplaced() + "</span>");
|
||||
} else {
|
||||
|
||||
String style = "style='color: green;font-weight:normal'";
|
||||
|
@ -379,7 +386,7 @@ public class ReplaceBatchPanel extends FramedPanel implements
|
|||
|
||||
ActionButtonCell button = new ActionButtonCell();
|
||||
button.setIcon(ResourceBundle.INSTANCE.magnifier());
|
||||
button.setTitle("Change");
|
||||
button.setTitle(msgs.change());
|
||||
button.addSelectHandler(new SelectHandler() {
|
||||
|
||||
@Override
|
||||
|
@ -455,17 +462,17 @@ public class ReplaceBatchPanel extends FramedPanel implements
|
|||
grid.setColumnResize(true);
|
||||
grid.getView().setAutoExpandColumn(valueCol);
|
||||
|
||||
info = new HTML("No info");
|
||||
info = new HTML(msgs.noInfo());
|
||||
|
||||
ToolBar toolBar = new ToolBar();
|
||||
toolBar.add(info);
|
||||
toolBar.addStyleName(ThemeStyles.get().style().borderTop());
|
||||
toolBar.getElement().getStyle().setProperty("borderBottom", "none");
|
||||
|
||||
btnSave = new TextButton("Save");
|
||||
btnSave = new TextButton(msgs.btnSaveText());
|
||||
btnSave.setIcon(ResourceBundle.INSTANCE.save());
|
||||
btnSave.setIconAlign(IconAlign.RIGHT);
|
||||
btnSave.setToolTip("Save");
|
||||
btnSave.setToolTip(msgs.btnSaveToolTip());
|
||||
btnSave.addSelectHandler(new SelectHandler() {
|
||||
|
||||
public void onSelect(SelectEvent event) {
|
||||
|
@ -476,10 +483,10 @@ public class ReplaceBatchPanel extends FramedPanel implements
|
|||
}
|
||||
});
|
||||
|
||||
btnClose = new TextButton("Close");
|
||||
btnClose = new TextButton(msgs.btnCloseText());
|
||||
btnClose.setIcon(ResourceBundle.INSTANCE.close());
|
||||
btnClose.setIconAlign(IconAlign.RIGHT);
|
||||
btnClose.setToolTip("Close");
|
||||
btnClose.setToolTip(msgs.btnCloseToolTip());
|
||||
btnClose.addSelectHandler(new SelectHandler() {
|
||||
|
||||
public void onSelect(SelectEvent event) {
|
||||
|
@ -669,8 +676,8 @@ public class ReplaceBatchPanel extends FramedPanel implements
|
|||
} else {
|
||||
Log.error("load column failure:"
|
||||
+ caught.getLocalizedMessage());
|
||||
UtilsGXT3.alert("Error retrieving column",
|
||||
"Error retrieving column");
|
||||
UtilsGXT3.alert(msgs.errorRetrievingColumnHead(),
|
||||
msgs.errorRetrievingColumn());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -724,8 +731,8 @@ public class ReplaceBatchPanel extends FramedPanel implements
|
|||
} else {
|
||||
Log.error("load column failure:"
|
||||
+ caught.getLocalizedMessage());
|
||||
UtilsGXT3.alert("Error retrieving column",
|
||||
"Error retrieving column");
|
||||
UtilsGXT3.alert(msgs.errorRetrievingColumnHead(),
|
||||
msgs.errorRetrievingColumn());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -756,13 +763,6 @@ public class ReplaceBatchPanel extends FramedPanel implements
|
|||
.addSelectionHandler(new SelectionHandler<ShowOccurrencesTypeElement>() {
|
||||
public void onSelection(
|
||||
SelectionEvent<ShowOccurrencesTypeElement> event) {
|
||||
Info.display(
|
||||
"Show Type Selected",
|
||||
"You selected "
|
||||
+ (event.getSelectedItem() == null ? "nothing"
|
||||
: labelProvider.getLabel(event
|
||||
.getSelectedItem())
|
||||
+ "!"));
|
||||
Log.debug("ComboShowOccurrencesType selected: "
|
||||
+ event.getSelectedItem());
|
||||
ShowOccurrencesTypeElement showType = event
|
||||
|
@ -823,8 +823,8 @@ public class ReplaceBatchPanel extends FramedPanel implements
|
|||
} else {
|
||||
Log.error("load columns failure:"
|
||||
+ caught.getLocalizedMessage());
|
||||
UtilsGXT3.alert("Error retrieving columns",
|
||||
"Error retrieving columns");
|
||||
UtilsGXT3.alert(msgs.errorRetrievingColumnsHead(),
|
||||
msgs.errorRetrievingColumns());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -841,7 +841,7 @@ public class ReplaceBatchPanel extends FramedPanel implements
|
|||
} catch (Throwable e) {
|
||||
Log.error("Too many different occurrences");
|
||||
UtilsGXT3.alert("Attention",
|
||||
"Too many different occurrences");
|
||||
msgs.tooManyDifferentOccurrences());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -859,14 +859,14 @@ public class ReplaceBatchPanel extends FramedPanel implements
|
|||
int errors = record.getNumber();
|
||||
totalErrors += errors;
|
||||
if (record.getReplacementValue() != null
|
||||
&& record.getReplacementValue().compareTo(DON_T_REPLACE) != 0) {
|
||||
&& record.getReplacementValue().compareTo(msgs.notReplaced()) != 0) {
|
||||
assigned++;
|
||||
assignedErrors += errors;
|
||||
}
|
||||
}
|
||||
|
||||
String text = Format.substitute(
|
||||
"Assigned {0} ({1} occurrences) of {2} ({3} occurrences)",
|
||||
msgs.assigned()+" {0} ({1} "+msgs.occurrencesOf()+" {2} ({3} "+msgs.occurrencesLow()+")",
|
||||
String.valueOf(assigned), String.valueOf(assignedErrors),
|
||||
String.valueOf(total), String.valueOf(totalErrors));
|
||||
info.setText(text);
|
||||
|
@ -991,7 +991,7 @@ public class ReplaceBatchPanel extends FramedPanel implements
|
|||
|
||||
if (effectiveReplaceList.size() == 0) {
|
||||
UtilsGXT3
|
||||
.alert("Attention", "Select at least one value to replace");
|
||||
.alert("Attention", msgs.selectAtLeastOneValueToReplace());
|
||||
btnSave.enable();
|
||||
} else {
|
||||
startReplaceBatch(effectiveReplaceList);
|
||||
|
@ -1207,7 +1207,7 @@ public class ReplaceBatchPanel extends FramedPanel implements
|
|||
@Override
|
||||
public void failedConnectCodelist(String reason, String detail) {
|
||||
Log.debug("Connection Failed: " + reason + " " + detail);
|
||||
UtilsGXT3.alert("Error on connect", reason);
|
||||
UtilsGXT3.alert(msgs.errorOnConnectHead(), reason);
|
||||
btnConnect.enable();
|
||||
|
||||
}
|
||||
|
@ -1235,8 +1235,8 @@ public class ReplaceBatchPanel extends FramedPanel implements
|
|||
Log.error("load column failure:"
|
||||
+ caught.getLocalizedMessage());
|
||||
UtilsGXT3
|
||||
.alert("Error retrieving connection",
|
||||
"Error retrieving connection column");
|
||||
.alert(msgs.errorRetrievingConnectionColumnHead(),
|
||||
msgs.errorRetrievingConnectionColumn());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1275,8 +1275,8 @@ public class ReplaceBatchPanel extends FramedPanel implements
|
|||
Log.error("load column failure:"
|
||||
+ caught.getLocalizedMessage());
|
||||
UtilsGXT3
|
||||
.alert("Error retrieving connection",
|
||||
"Error retrieving connection column");
|
||||
.alert(msgs.errorRetrievingColumnsHead(),
|
||||
msgs.errorRetrievingConnectionColumn());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,6 +5,7 @@ import java.util.ArrayList;
|
|||
import org.gcube.portlets.user.td.columnwidget.client.resources.ResourceBundle;
|
||||
import org.gcube.portlets.user.td.widgetcommonevent.shared.tr.column.ColumnData;
|
||||
|
||||
import com.google.gwt.core.client.GWT;
|
||||
import com.google.web.bindery.event.shared.EventBus;
|
||||
import com.sencha.gxt.widget.core.client.Window;
|
||||
import com.sencha.gxt.widget.core.client.event.SelectEvent;
|
||||
|
@ -17,14 +18,15 @@ import com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler;
|
|||
*
|
||||
*/
|
||||
public class SingleValueReplaceDialog extends Window {
|
||||
protected String WIDTH = "500px";
|
||||
protected String HEIGHT = "150px";
|
||||
protected SingleValueReplacePanel ReplacePanel;
|
||||
protected EventBus eventBus;
|
||||
protected String value;
|
||||
protected String replaceValue;
|
||||
protected ColumnData column;
|
||||
protected ArrayList<SingleValueReplaceListener> listeners;
|
||||
private String WIDTH = "500px";
|
||||
private String HEIGHT = "150px";
|
||||
//private SingleValueReplacePanel ReplacePanel;
|
||||
private EventBus eventBus;
|
||||
private String value;
|
||||
private String replaceValue;
|
||||
private ColumnData column;
|
||||
private ArrayList<SingleValueReplaceListener> listeners;
|
||||
private SingleValueReplaceMessages msgs;
|
||||
|
||||
public SingleValueReplaceDialog(String value, String replaceValue,
|
||||
ColumnData column, EventBus eventBus) {
|
||||
|
@ -33,17 +35,22 @@ public class SingleValueReplaceDialog extends Window {
|
|||
this.replaceValue = replaceValue;
|
||||
this.column = column;
|
||||
this.eventBus = eventBus;
|
||||
initMessages();
|
||||
initWindow();
|
||||
create();
|
||||
|
||||
}
|
||||
|
||||
protected void initMessages(){
|
||||
msgs = GWT.create(SingleValueReplaceMessages.class);
|
||||
}
|
||||
|
||||
protected void initWindow() {
|
||||
setWidth(WIDTH);
|
||||
setHeight(HEIGHT);
|
||||
setBodyBorder(false);
|
||||
setResizable(false);
|
||||
setHeadingText("Replace Value");
|
||||
setHeadingText(msgs.dialogReplaceValue());
|
||||
setClosable(true);
|
||||
getHeader().setIcon(ResourceBundle.INSTANCE.columnValue());
|
||||
|
||||
|
|
|
@ -0,0 +1,40 @@
|
|||
package org.gcube.portlets.user.td.columnwidget.client.batch;
|
||||
|
||||
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 SingleValueReplaceMessages extends Messages {
|
||||
|
||||
@DefaultMessage("Replace Value")
|
||||
String dialogReplaceValue();
|
||||
|
||||
@DefaultMessage("Replace")
|
||||
String btnReplaceText();
|
||||
|
||||
@DefaultMessage("Replace Value")
|
||||
String btnReplaceToolTip();
|
||||
|
||||
@DefaultMessage("Close")
|
||||
String btnCloseText();
|
||||
|
||||
@DefaultMessage("Close")
|
||||
String btnCloseToolTip();
|
||||
|
||||
@DefaultMessage("Value")
|
||||
String value();
|
||||
|
||||
@DefaultMessage("Replace")
|
||||
String replace();
|
||||
|
||||
@DefaultMessage("Insert a valid replace value")
|
||||
String insertAValidReplaceValue();
|
||||
|
||||
@DefaultMessage("Insert a valid replace value for this column")
|
||||
String insertAValidReplaceValueForThisColumn();
|
||||
|
||||
}
|
|
@ -1,16 +1,13 @@
|
|||
package org.gcube.portlets.user.td.columnwidget.client.batch;
|
||||
|
||||
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import org.gcube.portlets.user.td.columnwidget.client.resources.ResourceBundle;
|
||||
import org.gcube.portlets.user.td.columnwidget.client.utils.UtilsGXT3;
|
||||
import org.gcube.portlets.user.td.gwtservice.shared.tr.DimensionRow;
|
||||
import org.gcube.portlets.user.td.gwtservice.shared.tr.column.ReplaceColumnSession;
|
||||
import org.gcube.portlets.user.td.widgetcommonevent.shared.tr.column.ColumnData;
|
||||
|
||||
import com.allen_sauer.gwt.log.client.Log;
|
||||
import com.google.gwt.core.client.GWT;
|
||||
import com.google.gwt.i18n.client.DateTimeFormat;
|
||||
import com.google.web.bindery.event.shared.EventBus;
|
||||
import com.sencha.gxt.cell.core.client.ButtonCell.IconAlign;
|
||||
|
@ -36,38 +33,39 @@ import com.sencha.gxt.widget.core.client.form.TextField;
|
|||
*/
|
||||
public class SingleValueReplacePanel extends FramedPanel {
|
||||
private DateTimeFormat sdf = DateTimeFormat.getFormat("yyyy-MM-dd");
|
||||
|
||||
protected String WIDTH = "500px";
|
||||
protected String HEIGHT = "150px";
|
||||
protected EventBus eventBus;
|
||||
protected SingleValueReplaceDialog parent;
|
||||
protected ColumnData column;
|
||||
protected String value;
|
||||
protected String replaceValue;
|
||||
protected DimensionRow dimensionRow;
|
||||
|
||||
protected ReplaceColumnSession replaceColumnSession;
|
||||
private static final String WIDTH = "500px";
|
||||
private static final String HEIGHT = "150px";
|
||||
|
||||
private SingleValueReplaceDialog parent;
|
||||
private ColumnData column;
|
||||
private String value;
|
||||
private String replaceValue;
|
||||
|
||||
private TextField valueField;
|
||||
private TextField replaceValueField;
|
||||
private TextButton btnApply;
|
||||
private TextButton btnReplace;
|
||||
private TextButton btnClose;
|
||||
|
||||
private SingleValueReplaceMessages msgs;
|
||||
|
||||
public SingleValueReplacePanel(SingleValueReplaceDialog parent,
|
||||
String value, String replaceValue,ColumnData column, EventBus eventBus) {
|
||||
String value, String replaceValue, ColumnData column,
|
||||
EventBus eventBus) {
|
||||
this.parent = parent;
|
||||
this.value = value;
|
||||
this.replaceValue=replaceValue;
|
||||
this.eventBus = eventBus;
|
||||
this.replaceValue = replaceValue;
|
||||
this.column = column;
|
||||
dimensionRow = null;
|
||||
Log.debug("SingleValueReplacePanel:[" + value + "]");
|
||||
initMessages();
|
||||
initPanel();
|
||||
create();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
protected void initMessages() {
|
||||
msgs = GWT.create(SingleValueReplaceMessages.class);
|
||||
}
|
||||
|
||||
protected void initPanel() {
|
||||
setWidth(WIDTH);
|
||||
|
@ -82,15 +80,15 @@ public class SingleValueReplacePanel extends FramedPanel {
|
|||
valueField.setReadOnly(true);
|
||||
|
||||
replaceValueField = new TextField();
|
||||
if(replaceValue!=null){
|
||||
if (replaceValue != null) {
|
||||
valueField.setValue(replaceValue);
|
||||
}
|
||||
|
||||
btnApply = new TextButton("Replace");
|
||||
btnApply.setIcon(ResourceBundle.INSTANCE.replace());
|
||||
btnApply.setIconAlign(IconAlign.RIGHT);
|
||||
btnApply.setToolTip("Replace Value");
|
||||
btnApply.addSelectHandler(new SelectHandler() {
|
||||
btnReplace = new TextButton(msgs.btnReplaceText());
|
||||
btnReplace.setIcon(ResourceBundle.INSTANCE.replace());
|
||||
btnReplace.setIconAlign(IconAlign.RIGHT);
|
||||
btnReplace.setToolTip(msgs.btnReplaceToolTip());
|
||||
btnReplace.addSelectHandler(new SelectHandler() {
|
||||
|
||||
public void onSelect(SelectEvent event) {
|
||||
Log.debug("Pressed Apply");
|
||||
|
@ -99,10 +97,10 @@ public class SingleValueReplacePanel extends FramedPanel {
|
|||
}
|
||||
});
|
||||
|
||||
btnClose = new TextButton("Close");
|
||||
btnClose = new TextButton(msgs.btnCloseText());
|
||||
btnClose.setIcon(ResourceBundle.INSTANCE.close());
|
||||
btnClose.setIconAlign(IconAlign.RIGHT);
|
||||
btnClose.setToolTip("Close");
|
||||
btnClose.setToolTip(msgs.btnCloseToolTip());
|
||||
btnClose.addSelectHandler(new SelectHandler() {
|
||||
|
||||
public void onSelect(SelectEvent event) {
|
||||
|
@ -116,17 +114,17 @@ public class SingleValueReplacePanel extends FramedPanel {
|
|||
flowButton.setHBoxLayoutAlign(HBoxLayoutAlign.MIDDLE);
|
||||
flowButton.setPack(BoxLayoutPack.CENTER);
|
||||
|
||||
BoxLayoutData boxLayoutData=new BoxLayoutData(new Margins(2, 4, 2, 4));
|
||||
flowButton.add(btnApply, boxLayoutData);
|
||||
BoxLayoutData boxLayoutData = new BoxLayoutData(new Margins(2, 4, 2, 4));
|
||||
flowButton.add(btnReplace, boxLayoutData);
|
||||
flowButton.add(btnClose, boxLayoutData);
|
||||
|
||||
VerticalLayoutContainer v = new VerticalLayoutContainer();
|
||||
v.add(new FieldLabel(valueField, "Value"),
|
||||
v.add(new FieldLabel(valueField, msgs.value()),
|
||||
new VerticalLayoutData(1, -1));
|
||||
v.add(new FieldLabel(replaceValueField, "Replace"),
|
||||
v.add(new FieldLabel(replaceValueField, msgs.replace()),
|
||||
new VerticalLayoutData(1, -1));
|
||||
v.add(flowButton, new VerticalLayoutData(1, 36,
|
||||
new Margins(5, 2, 5, 2)));
|
||||
v.add(flowButton,
|
||||
new VerticalLayoutData(1, 36, new Margins(5, 2, 5, 2)));
|
||||
add(v);
|
||||
|
||||
}
|
||||
|
@ -134,14 +132,14 @@ public class SingleValueReplacePanel extends FramedPanel {
|
|||
protected void replaceValue() {
|
||||
String rValue = replaceValueField.getCurrentValue();
|
||||
if (rValue == null || rValue.isEmpty()) {
|
||||
UtilsGXT3.alert("Attention", "Insert a valid replace value");
|
||||
UtilsGXT3.alert("Attention", msgs.insertAValidReplaceValue());
|
||||
} else {
|
||||
String checkedValue = checkTypeData(rValue);
|
||||
if (checkedValue != null && !checkedValue.isEmpty()) {
|
||||
callReplaceValue(rValue);
|
||||
} else {
|
||||
UtilsGXT3.alert("Attention",
|
||||
"Insert a valid replace value for this column");
|
||||
msgs.insertAValidReplaceValueForThisColumn());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -21,3 +21,28 @@ comboValueDataFormatEmptyText = Select a format...
|
|||
comboValueDataFormatLabel = Format
|
||||
applyBtnText = Apply
|
||||
applyBtnToolTip = Apply Column Type
|
||||
errorRetrievingValueDataFormatsMap = Error retrieving value data formats map!
|
||||
errorRetrievingColumnOnServerHead = Error retrieving column
|
||||
errorRetrievingColumnOnServer = Error retrieving column on server!
|
||||
requestColumnIsNull = The requested column is null!
|
||||
errorRetrievingColumnsOfTabularResource = Error retrieving columns of tabular resource:
|
||||
errorRetrievingConnectionHead = Error retrieving connection
|
||||
errorRetrievingConnection = Error retrieving connection column!
|
||||
typeFormatNotSelected = Type format not selected!
|
||||
columnDataTypeNotSelected = Column data type not selected!
|
||||
noLocaleSelected = No locale selected!
|
||||
timeFormatNotSelected = Time Format not selected!
|
||||
periodTypeNotSelected = Period Type not selected!
|
||||
thisColumnTypeIsNotSupportedForNow = This column type is not supported now!
|
||||
selectAColumnType = Select a column type!
|
||||
selectAColumn = Select a column!
|
||||
changeColumnTypeErrorHead = Change Column Type Error
|
||||
changeColumnTypeError = Error in invocation of change column type operation!
|
||||
errorRetrievingTabularResource = Error retrieving tabular resource
|
||||
errorRetrievingLocales = Error retrieving locales
|
||||
errorRetrievingPeriodType = Error retrieving period type
|
||||
columnNotSelected = Column not selected!
|
||||
codelistNotSelected = Codelist not selected!
|
||||
referenceColumnNotSelected = Reference column not selected!
|
||||
|
||||
|
||||
|
|
|
@ -20,4 +20,27 @@ comboPeriodTypeLabel = Período
|
|||
comboValueDataFormatEmptyText = Seleccionar el tamaño...
|
||||
comboValueDataFormatLabel = Tamaño
|
||||
applyBtnText = Aplica
|
||||
applyBtnToolTip = Aplica Tipo
|
||||
applyBtnToolTip = Aplica Tipo
|
||||
errorRetrievingValueDataFormatsMap = Error al recuperar el mapa de los posibles formatos para los valores!
|
||||
errorRetrievingColumnOnServerHead = Error al recuperar la columna
|
||||
errorRetrievingColumnOnServer = Error al recuperar la columna en el servidor!
|
||||
requestColumnIsNull = La columna solicitada es null!
|
||||
errorRetrievingColumnsOfTabularResource = Error al recuperar las columnas de la tabular resource:
|
||||
errorRetrievingConnectionHead = Error al recuperar la conexión
|
||||
errorRetrievingConnection = Error al recuperar la columna de conexión!
|
||||
typeFormatNotSelected = Formato no seleccionado!
|
||||
columnDataTypeNotSelected = Tipo de columna no seleccionado!
|
||||
noLocaleSelected = Locale no seleccionado!
|
||||
timeFormatNotSelected = Formato no seleccionado!
|
||||
periodTypeNotSelected = Período no seleccionado!
|
||||
thisColumnTypeIsNotSupportedForNow = Este tipo de columna no está soportada en este momento!
|
||||
selectAColumnType = Seleccione un tipo de columna!
|
||||
selectAColumn = Seleccione una columna!
|
||||
changeColumnTypeErrorHead = Error en el cambio de tipo de la columna
|
||||
changeColumnTypeError = Error con la invocación de cambio del tipo de la columna!
|
||||
errorRetrievingTabularResource = Error al recuperar la tabular resource
|
||||
errorRetrievingLocales = Error al recuperar Locales
|
||||
errorRetrievingPeriodType = Error al recuperar Períodos
|
||||
columnNotSelected = Columna no seleccionada!
|
||||
codelistNotSelected = Codelist no seleccionada!
|
||||
referenceColumnNotSelected = Columna de referencia no seleccionada!
|
|
@ -21,3 +21,26 @@ comboValueDataFormatEmptyText = Seleziona formato...
|
|||
comboValueDataFormatLabel = Formato
|
||||
applyBtnText = Applica
|
||||
applyBtnToolTip = Applica il Tipo alla Colonna
|
||||
errorRetrievingValueDataFormatsMap = Errore recuperando la mappa dei possibili formati per i valori!
|
||||
errorRetrievingColumnOnServerHead = Errore recuperando la colonna
|
||||
errorRetrievingColumnOnServer = Errore recuperando la colonna sul server!
|
||||
requestColumnIsNull = La colonna richiesta è nulla!
|
||||
errorRetrievingColumnsOfTabularResource = Errore recuperando le colonne della tabular resource:
|
||||
errorRetrievingConnectionHead = Errore recuperando la connessione
|
||||
errorRetrievingConnection = Errore recuperando la colonna di connessione!
|
||||
typeFormatNotSelected = Formato non selezionato!
|
||||
columnDataTypeNotSelected = Tipo di colonna non selezionato!
|
||||
noLocaleSelected = Locale non selezionato!
|
||||
timeFormatNotSelected = Formato non selezionato!
|
||||
periodTypeNotSelected = Periodo non selezionato!
|
||||
thisColumnTypeIsNotSupportedForNow = Questo tipo di colonna non è supportata al momento!
|
||||
selectAColumnType = Seleziona un tipo di colonna!
|
||||
selectAColumn = Seleziona una colonna!
|
||||
changeColumnTypeErrorHead = Errore Cambiando Tipo di Colonna
|
||||
changeColumnTypeError = Errore nell''invocazione dell''operazione di cambio tipo della colonna!
|
||||
errorRetrievingTabularResource = Errore recuperando la tabular resource
|
||||
errorRetrievingLocales = Errore recuperando i locali
|
||||
errorRetrievingPeriodType = Errore recuperando i periodi
|
||||
columnNotSelected = Colonna non selezionata!
|
||||
codelistNotSelected = Codelist non selezionata!
|
||||
referenceColumnNotSelected = Colonna di riferimento non selezionata!
|
|
@ -0,0 +1,10 @@
|
|||
dialogHeadingText = Change columns position
|
||||
labelColHeader = Columns
|
||||
applyBtnText = Apply
|
||||
applyBtnToolTip = Apply position columns
|
||||
tipForReorganization = Use drag and drop in order to change the position of the columns:
|
||||
errorRetrievingColumnsHead = Error retrieving columns
|
||||
errorRetrievingColumns = Error retrieving columns!
|
||||
attentionNoColumnChange = Attention no column change!
|
||||
errorChangingPositionOfColumns = Error changing the position of the columns!
|
||||
positionUpdated = Positions Updated!
|
|
@ -0,0 +1,11 @@
|
|||
dialogHeadingText = Mover columnas
|
||||
labelColHeader = Columnas
|
||||
applyBtnText = Aplica
|
||||
applyBtnToolTip = Aplica reposicionamiento de columnas
|
||||
tipForReorganization = Usas arrastrar y soltar para cambiar la posición de las columnas:
|
||||
errorRetrievingColumnsHead = Error al recuperar las columnas
|
||||
errorRetrievingColumns = Error al recuperar las columnas!
|
||||
attentionNoColumnChange = Atención ninguna posición cambió!
|
||||
errorChangingPositionOfColumns = Error cambiando la posición de las columnas!
|
||||
positionUpdated = Posiciones Actualizadas!
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
dialogHeadingText = Spostare le colonne
|
||||
labelColHeader = Colonne
|
||||
applyBtnText = Applica
|
||||
applyBtnToolTip = Applica riposizionamento delle colonne
|
||||
tipForReorganization = Usa drag and drop per modificare la posizione delle colonne:
|
||||
errorRetrievingColumnsHead = Errore recuperando le colonne
|
||||
errorRetrievingColumns = Errore recuperando le colonne!
|
||||
attentionNoColumnChange = Attenzione nessuna posizione modificata!
|
||||
errorChangingPositionOfColumns = Errore modificando la posizione delle colonne!
|
||||
positionUpdated = Posizioni Aggiornate!
|
|
@ -0,0 +1,36 @@
|
|||
dialogReplaceBatchHeadingText = Replace Batch
|
||||
dialogResolveAmbiguousValuesHeadingText = Resolve Ambiguous Values
|
||||
dialogResolveValueOnExternalReferenceHeadingText = Resolve Value on External Reference
|
||||
errorOnBatchReplaceHead = Error on batch replace
|
||||
errorOnBatchReplace = Error on batch replace!
|
||||
errorOnTaskResumeHead = Error on task resume
|
||||
errorOnTaskResume = Error on task resume (taskId={0})
|
||||
selectAColumn = Select a column...
|
||||
column = Column
|
||||
selectAShowType = Select a show type...
|
||||
show = Show
|
||||
connect = Connect
|
||||
disconnect = Disconnect
|
||||
connection = Connection
|
||||
values = Values
|
||||
occurrences = Occurrences
|
||||
replacement = Replacement
|
||||
notReplaced = Not replaced
|
||||
change = Change
|
||||
noInfo = No info
|
||||
btnSaveText = Save
|
||||
btnSaveToolTip = Save
|
||||
btnCloseText = Close
|
||||
btnCloseToolTip = Close
|
||||
errorRetrievingColumnHead = Error retrieving column
|
||||
errorRetrievingColumn = Error retrieving column
|
||||
errorRetrievingColumnsHead = Error retrieving columns
|
||||
errorRetrievingColumns = Error retrieving columns
|
||||
tooManyDifferentOccurrences = Too many different occurrences
|
||||
assigned = Assigned
|
||||
occurrencesOf = occurrences) of
|
||||
occurrencesLow = occurrences
|
||||
selectAtLeastOneValueToReplace = Select at least one value to replace
|
||||
errorOnConnectHead = Error on connect
|
||||
errorRetrievingConnectionColumnHead = Error retrieving connection
|
||||
errorRetrievingConnectionColumn = Error retrieving connection column!
|
|
@ -0,0 +1,38 @@
|
|||
dialogReplaceBatchHeadingText = Reemplazar Batch
|
||||
dialogResolveAmbiguousValuesHeadingText = Resolver Valores Ambiguos
|
||||
dialogResolveValueOnExternalReferenceHeadingText = Resolver los Valores utilizando una Referencia Externa
|
||||
errorOnBatchReplaceHead = Error reemplazando batch
|
||||
errorOnBatchReplace = Error reemplazando batch!
|
||||
errorOnTaskResumeHead = Error en task resume
|
||||
errorOnTaskResume = Error en task resume (taskId={0})
|
||||
selectAColumn = Seleccione una columna...
|
||||
column = Columna
|
||||
selectAShowType = Selección del tipo de visualización...
|
||||
show = Mostrar
|
||||
connect = Conectar
|
||||
disconnect = Desconectar
|
||||
connection = Conexión
|
||||
values = Valores
|
||||
occurrences = Ocurrencias
|
||||
replacement = Reemplazo
|
||||
notReplaced = No sustituido
|
||||
change = Cambio
|
||||
noInfo = No hay información
|
||||
btnSaveText = Guardar
|
||||
btnSaveToolTip = Guardar
|
||||
btnCloseText = Cerrar
|
||||
btnCloseToolTip = Cerrar
|
||||
errorRetrievingColumnHead = Error al recuperar la columna
|
||||
errorRetrievingColumn = Error al recuperar la columna
|
||||
errorRetrievingColumnsHead = Error al recuperar las columnas
|
||||
errorRetrievingColumns = Error al recuperar las columnas
|
||||
tooManyDifferentOccurrences = Demasiadas ocurrencias diferentes
|
||||
assigned = Asignado
|
||||
occurrencesOf = ocurrencias) de
|
||||
occurrencesLow = ocurrencias
|
||||
selectAtLeastOneValueToReplace = Seleccionar al menos un valor para ser sustituido
|
||||
errorOnConnectHead = Error en la conexión
|
||||
errorRetrievingConnectionColumnHead = Error al recuperar la conexión
|
||||
errorRetrievingConnectionColumn = Error al recuperar la columna de conexión!
|
||||
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
dialogReplaceBatchHeadingText = Rimpiazza in Batch
|
||||
dialogResolveAmbiguousValuesHeadingText = Risolvi i Valori Ambigui
|
||||
dialogResolveValueOnExternalReferenceHeadingText = Risolvi i Valori usando un Riferimento Esterno
|
||||
errorOnBatchReplaceHead = Errore rimpiazzando in batch
|
||||
errorOnBatchReplace = Errore rimiazzando in batch!
|
||||
errorOnTaskResumeHead = Errore nel task resume
|
||||
errorOnTaskResume = Errore nel task resume (taskId={0})
|
||||
selectAColumn = Seleziona una colonna...
|
||||
column = Colonna
|
||||
selectAShowType = Selezione tipo di visualizzazione...
|
||||
show = Visualizza
|
||||
connect = Connetti
|
||||
disconnect = Disconnetti
|
||||
connection = Connessione
|
||||
values = Valori
|
||||
occurrences = Occorenze
|
||||
replacement = Rimpiazzo
|
||||
notReplaced = Non rimpiazzato
|
||||
change = Cambia
|
||||
noInfo = Nessuna info
|
||||
btnSaveText = Salva
|
||||
btnSaveToolTip = Salva
|
||||
btnCloseText = Chiudi
|
||||
btnCloseToolTip = Chiudi
|
||||
errorRetrievingColumnHead = Errore recuperando la colonna
|
||||
errorRetrievingColumn = Errore recuperando la colonna
|
||||
errorRetrievingColumnsHead = Errore recuperando le colonne
|
||||
errorRetrievingColumns = Errore recuperando le colonne
|
||||
tooManyDifferentOccurrences = Troppe occorrenze differenti
|
||||
assigned = Assegnato
|
||||
occurrencesOf = occorrenze) di
|
||||
occurrencesLow = occorrenze
|
||||
selectAtLeastOneValueToReplace = Seleziona almeno un valore da rimpiazzare
|
||||
errorOnConnectHead = Errore nella colonna di connessione
|
||||
errorRetrievingConnectionColumnHead = Errore recuperando la connessione
|
||||
errorRetrievingConnectionColumn = Errore recuperando la colonna di connessione!
|
|
@ -0,0 +1,9 @@
|
|||
dialogReplaceValue = Replace Value
|
||||
btnReplaceText = Replace
|
||||
btnReplaceToolTip = Replace Value
|
||||
btnCloseText = Close
|
||||
btnCloseToolTip = Close
|
||||
value = Value
|
||||
replace = Replace
|
||||
insertAValidReplaceValue = Insert a valid replace value
|
||||
insertAValidReplaceValueForThisColumn = Insert a valid replace value for this column
|
|
@ -0,0 +1,9 @@
|
|||
dialogReplaceValue = Reemplaza el Valor
|
||||
btnReplaceText = Reemplaza
|
||||
btnReplaceToolTip = Reemplaza el Valor
|
||||
btnCloseText = Cerrar
|
||||
btnCloseToolTip = Cerrar
|
||||
value = Valor
|
||||
replace = Reemplaza
|
||||
insertAValidReplaceValue = Introducir un valor válido
|
||||
insertAValidReplaceValueForThisColumn = Introducir un valor válido para la columna
|
|
@ -0,0 +1,9 @@
|
|||
dialogReplaceValue = Rimpiazza Valore
|
||||
btnReplaceText = Rimpiazza
|
||||
btnReplaceToolTip = Rimpiazza Valore
|
||||
btnCloseText = Chiudi
|
||||
btnCloseToolTip = Chiudi
|
||||
value = Valore
|
||||
replace = Rimpiazza
|
||||
insertAValidReplaceValue = Inserisci un valore valido
|
||||
insertAValidReplaceValueForThisColumn = Inserisci un valore valido per la colonna
|
Loading…
Reference in New Issue