Fixed Charset Export to UTF8
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-csv-export-widget@120100 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
7ee13c848d
commit
09701f08bd
|
@ -50,6 +50,7 @@ import com.sencha.gxt.widget.core.client.tips.ToolTipConfig;
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class CSVExportConfigCard extends WizardCard {
|
public class CSVExportConfigCard extends WizardCard {
|
||||||
|
private static final String ENCODING_EXPORT_FORMAT = "UTF8";
|
||||||
private static final int LABEL_WIDTH = 128;
|
private static final int LABEL_WIDTH = 128;
|
||||||
private static final int LABEL_PAD_WIDTH = 2;
|
private static final int LABEL_PAD_WIDTH = 2;
|
||||||
private static final String DEFAULT_DELIMETER = ",";
|
private static final String DEFAULT_DELIMETER = ",";
|
||||||
|
@ -114,7 +115,7 @@ public class CSVExportConfigCard extends WizardCard {
|
||||||
comboEncodings.focus();
|
comboEncodings.focus();
|
||||||
|
|
||||||
TDGWTServiceAsync.INSTANCE
|
TDGWTServiceAsync.INSTANCE
|
||||||
.getAvailableCharset(new AsyncCallback<AvailableCharsetList>() {
|
.getAvailableCharsetForExport(new AsyncCallback<AvailableCharsetList>() {
|
||||||
|
|
||||||
public void onSuccess(AvailableCharsetList result) {
|
public void onSuccess(AvailableCharsetList result) {
|
||||||
GWT.log("CharsetInfo: "
|
GWT.log("CharsetInfo: "
|
||||||
|
@ -151,7 +152,7 @@ public class CSVExportConfigCard extends WizardCard {
|
||||||
FieldLabel comboEncodingsLabel=new FieldLabel(comboEncodings, msgs.comboEncodingsLabel());
|
FieldLabel comboEncodingsLabel=new FieldLabel(comboEncodings, msgs.comboEncodingsLabel());
|
||||||
comboEncodingsLabel.setLabelWidth(LABEL_WIDTH);
|
comboEncodingsLabel.setLabelWidth(LABEL_WIDTH);
|
||||||
comboEncodingsLabel.setLabelPad(LABEL_PAD_WIDTH);
|
comboEncodingsLabel.setLabelPad(LABEL_PAD_WIDTH);
|
||||||
content.add(comboEncodingsLabel);
|
//content.add(comboEncodingsLabel);
|
||||||
|
|
||||||
// Delimiter
|
// Delimiter
|
||||||
radioCommaDelimiter = new Radio();
|
radioCommaDelimiter = new Radio();
|
||||||
|
@ -319,7 +320,7 @@ public class CSVExportConfigCard extends WizardCard {
|
||||||
d.show();
|
d.show();
|
||||||
} else {
|
} else {
|
||||||
exportSession.setColumns(columns);
|
exportSession.setColumns(columns);
|
||||||
exportSession.setEncoding(comboEncodings.getCurrentValue());
|
exportSession.setEncoding(ENCODING_EXPORT_FORMAT);
|
||||||
exportSession.setSeparator(String.valueOf(getSelectedDelimiter()));
|
exportSession.setSeparator(String.valueOf(getSelectedDelimiter()));
|
||||||
exportSession.setExportViewColumns(getExportViewColumns());
|
exportSession.setExportViewColumns(getExportViewColumns());
|
||||||
useWorkspaceDestination();
|
useWorkspaceDestination();
|
||||||
|
|
|
@ -49,7 +49,7 @@ import com.sencha.gxt.widget.core.client.grid.Grid;
|
||||||
public class ColumnDataGridPanel extends ContentPanel implements
|
public class ColumnDataGridPanel extends ContentPanel implements
|
||||||
HasSelectionHandlers<ColumnData> {
|
HasSelectionHandlers<ColumnData> {
|
||||||
//private static final String GRID_WIDTH ="524px";
|
//private static final String GRID_WIDTH ="524px";
|
||||||
private static final String GRID_HEIGHT = "280px";
|
private static final String GRID_HEIGHT = "310px";
|
||||||
private static final ColumnDataProperties props = GWT
|
private static final ColumnDataProperties props = GWT
|
||||||
.create(ColumnDataProperties.class);
|
.create(ColumnDataProperties.class);
|
||||||
private final CheckBoxSelectionModel<ColumnData> sm;
|
private final CheckBoxSelectionModel<ColumnData> sm;
|
||||||
|
|
Loading…
Reference in New Issue