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-extractcodelist-widget@120230 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
a37a3b83cc
commit
af6d14f0a3
|
@ -39,7 +39,7 @@ Documentation
|
||||||
tabular-data-extractcodelist-widget ensures the extraction of codelist from tabular resources
|
tabular-data-extractcodelist-widget ensures the extraction of codelist from tabular resources
|
||||||
|
|
||||||
Documentation is available on-line from the Projects Documentation Wiki:
|
Documentation is available on-line from the Projects Documentation Wiki:
|
||||||
https://gcube.wiki.gcube-system.org/gcube/index.php/Tabular_Data_Manager
|
http://wiki.gcube-system.org/gcube/Tabular_Data_Manager
|
||||||
|
|
||||||
|
|
||||||
Licensing
|
Licensing
|
||||||
|
|
3
pom.xml
3
pom.xml
|
@ -38,7 +38,8 @@
|
||||||
<distroDirectory>${project.basedir}/distro</distroDirectory>
|
<distroDirectory>${project.basedir}/distro</distroDirectory>
|
||||||
<webappDirectory>${project.build.directory}/${project.build.finalName}</webappDirectory>
|
<webappDirectory>${project.build.directory}/${project.build.finalName}</webappDirectory>
|
||||||
<release.date>2015-10-15</release.date>
|
<release.date>2015-10-15</release.date>
|
||||||
<wikiurl>https://gcube.wiki.gcube-system.org/gcube/index.php/Tabular_Data_Manager</wikiurl>
|
<wikiurl>http://wiki.gcube-system.org/gcube/Tabular_Data_Manager</wikiurl>
|
||||||
|
|
||||||
<templatesDirectory>templates</templatesDirectory>
|
<templatesDirectory>templates</templatesDirectory>
|
||||||
<distroDirectory>distro</distroDirectory>
|
<distroDirectory>distro</distroDirectory>
|
||||||
<configDirectory>config</configDirectory>
|
<configDirectory>config</configDirectory>
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
package org.gcube.portlets.user.td.extractcodelistwidget.client;
|
package org.gcube.portlets.user.td.extractcodelistwidget.client;
|
||||||
|
|
||||||
|
|
||||||
import org.gcube.portlets.user.td.expressionwidget.client.properties.ColumnDataPropertiesCombo;
|
import org.gcube.portlets.user.td.expressionwidget.client.properties.ColumnDataPropertiesCombo;
|
||||||
import org.gcube.portlets.user.td.gwtservice.shared.extract.ExtractCodelistSession;
|
import org.gcube.portlets.user.td.gwtservice.shared.extract.ExtractCodelistSession;
|
||||||
import org.gcube.portlets.user.td.gwtservice.shared.tr.TabResource;
|
import org.gcube.portlets.user.td.gwtservice.shared.tr.TabResource;
|
||||||
|
import org.gcube.portlets.user.td.widgetcommonevent.client.CommonMessages;
|
||||||
import org.gcube.portlets.user.td.widgetcommonevent.shared.tr.column.ColumnData;
|
import org.gcube.portlets.user.td.widgetcommonevent.shared.tr.column.ColumnData;
|
||||||
import org.gcube.portlets.user.td.wizardwidget.client.WizardCard;
|
import org.gcube.portlets.user.td.wizardwidget.client.WizardCard;
|
||||||
|
|
||||||
|
@ -33,7 +33,6 @@ import com.sencha.gxt.widget.core.client.form.FieldLabel;
|
||||||
import com.sencha.gxt.widget.core.client.form.FieldSet;
|
import com.sencha.gxt.widget.core.client.form.FieldSet;
|
||||||
import com.sencha.gxt.widget.core.client.form.Radio;
|
import com.sencha.gxt.widget.core.client.form.Radio;
|
||||||
import com.sencha.gxt.widget.core.client.form.TextField;
|
import com.sencha.gxt.widget.core.client.form.TextField;
|
||||||
import com.sencha.gxt.widget.core.client.info.Info;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -42,12 +41,13 @@ import com.sencha.gxt.widget.core.client.info.Info;
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class ExtractCodelistDetailsCard extends WizardCard {
|
public class ExtractCodelistDetailsCard extends WizardCard {
|
||||||
// private static DateTimeFormat sdf =
|
|
||||||
// DateTimeFormat.getFormat("yyyy-MM-dd");
|
|
||||||
|
|
||||||
private static final String TABLEDETAILPANELWIDTH = "100%";
|
private static final String TABLEDETAILPANELWIDTH = "100%";
|
||||||
private static final String TABLEDETAILPANELHEIGHT = "100%";
|
private static final String TABLEDETAILPANELHEIGHT = "100%";
|
||||||
private static final String FORMWIDTH = "538px";
|
private static final String FORMWIDTH = "538px";
|
||||||
|
private static ExtractCodelistMessages msgs = GWT
|
||||||
|
.create(ExtractCodelistMessages.class);
|
||||||
|
private CommonMessages msgsCommon;
|
||||||
|
|
||||||
private ExtractCodelistSession extractCodelistSession;
|
private ExtractCodelistSession extractCodelistSession;
|
||||||
private ExtractCodelistDetailsCard thisCard;
|
private ExtractCodelistDetailsCard thisCard;
|
||||||
|
@ -55,23 +55,34 @@ public class ExtractCodelistDetailsCard extends WizardCard {
|
||||||
private VerticalLayoutContainer p;
|
private VerticalLayoutContainer p;
|
||||||
private VerticalPanel tableDetailPanel;
|
private VerticalPanel tableDetailPanel;
|
||||||
|
|
||||||
private TextField name;
|
private TextField nameField;
|
||||||
private Radio automaticallyAttachTrue;
|
private Radio automaticallyAttachTrue;
|
||||||
private Radio automaticallyAttachFalse;
|
private Radio automaticallyAttachFalse;
|
||||||
|
|
||||||
private TabResource detail;
|
private TabResource detail;
|
||||||
private ComboBox<ColumnData> comboAttachToColumn;
|
private ComboBox<ColumnData> comboAttachToColumn;
|
||||||
private ColumnData attachColumn;
|
private ColumnData attachColumn;
|
||||||
private FieldLabel attachToColumnField;
|
private FieldLabel comboAttachToColumnLabel;
|
||||||
|
|
||||||
public ExtractCodelistDetailsCard(
|
public ExtractCodelistDetailsCard(
|
||||||
final ExtractCodelistSession extractCodelistSession) {
|
final ExtractCodelistSession extractCodelistSession) {
|
||||||
super("Codelist Detail", "");
|
super(msgs.extractCodelistDetailCardHead(), "");
|
||||||
|
|
||||||
this.extractCodelistSession = extractCodelistSession;
|
this.extractCodelistSession = extractCodelistSession;
|
||||||
thisCard = this;
|
thisCard = this;
|
||||||
attachColumn = null;
|
attachColumn = null;
|
||||||
|
|
||||||
|
initMessages();
|
||||||
|
create();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void initMessages() {
|
||||||
|
msgsCommon = GWT.create(CommonMessages.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void create() {
|
||||||
|
|
||||||
tableDetailPanel = new VerticalPanel();
|
tableDetailPanel = new VerticalPanel();
|
||||||
|
|
||||||
tableDetailPanel.setSpacing(4);
|
tableDetailPanel.setSpacing(4);
|
||||||
|
@ -79,34 +90,35 @@ public class ExtractCodelistDetailsCard extends WizardCard {
|
||||||
tableDetailPanel.setHeight(TABLEDETAILPANELHEIGHT);
|
tableDetailPanel.setHeight(TABLEDETAILPANELHEIGHT);
|
||||||
|
|
||||||
FramedPanel form = new FramedPanel();
|
FramedPanel form = new FramedPanel();
|
||||||
form.setHeadingText("Details");
|
form.setHeadingText(msgs.extractCodelistDetailsCardFormHead());
|
||||||
form.setWidth(FORMWIDTH);
|
form.setWidth(FORMWIDTH);
|
||||||
|
|
||||||
FieldSet fieldSet = new FieldSet();
|
FieldSet infoFieldSet = new FieldSet();
|
||||||
fieldSet.setHeadingText("Information");
|
infoFieldSet.setHeadingText(msgs.infoFieldSetHead());
|
||||||
fieldSet.setCollapsible(false);
|
infoFieldSet.setCollapsible(false);
|
||||||
form.add(fieldSet);
|
form.add(infoFieldSet);
|
||||||
|
|
||||||
p = new VerticalLayoutContainer();
|
p = new VerticalLayoutContainer();
|
||||||
fieldSet.add(p);
|
infoFieldSet.add(p);
|
||||||
|
|
||||||
name = new TextField();
|
nameField = new TextField();
|
||||||
name.setAllowBlank(false);
|
nameField.setAllowBlank(false);
|
||||||
name.setEmptyText("Enter a name...");
|
nameField.setEmptyText(msgs.nameFieldEmptyText());
|
||||||
name.setAllowBlank(false);
|
nameField.setAllowBlank(false);
|
||||||
FieldLabel nameField=new FieldLabel(name, "Name");
|
FieldLabel nameFieldLabel = new FieldLabel(nameField,
|
||||||
nameField.setToolTip("Enter the name of new codelist extracted");
|
msgs.nameFieldLabel());
|
||||||
p.add(nameField, new VerticalLayoutData(1, -1,
|
nameFieldLabel.setToolTip(msgs.nameFieldToolTip());
|
||||||
new Margins(0)));
|
p.add(nameFieldLabel, new VerticalLayoutData(1, -1, new Margins(0)));
|
||||||
|
|
||||||
// /
|
// /
|
||||||
automaticallyAttachTrue = new Radio();
|
automaticallyAttachTrue = new Radio();
|
||||||
automaticallyAttachTrue.setBoxLabel("True");
|
automaticallyAttachTrue
|
||||||
|
.setBoxLabel(msgs.automaticallyAttachTrueLabel());
|
||||||
automaticallyAttachTrue.setValue(true);
|
automaticallyAttachTrue.setValue(true);
|
||||||
|
|
||||||
automaticallyAttachFalse = new Radio();
|
automaticallyAttachFalse = new Radio();
|
||||||
automaticallyAttachFalse.setBoxLabel("False");
|
automaticallyAttachFalse.setBoxLabel(msgs
|
||||||
|
.automaticallyAttachFalseLabel());
|
||||||
|
|
||||||
ToggleGroup automaticallyAttachGroup = new ToggleGroup();
|
ToggleGroup automaticallyAttachGroup = new ToggleGroup();
|
||||||
automaticallyAttachGroup.add(automaticallyAttachTrue);
|
automaticallyAttachGroup.add(automaticallyAttachTrue);
|
||||||
|
@ -120,9 +132,9 @@ public class ExtractCodelistDetailsCard extends WizardCard {
|
||||||
ValueChangeEvent<HasValue<Boolean>> event) {
|
ValueChangeEvent<HasValue<Boolean>> event) {
|
||||||
try {
|
try {
|
||||||
if (automaticallyAttachTrue.getValue()) {
|
if (automaticallyAttachTrue.getValue()) {
|
||||||
attachToColumnField.setVisible(true);
|
comboAttachToColumnLabel.setVisible(true);
|
||||||
} else {
|
} else {
|
||||||
attachToColumnField.setVisible(false);
|
comboAttachToColumnLabel.setVisible(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
thisCard.forceLayout();
|
thisCard.forceLayout();
|
||||||
|
@ -139,10 +151,10 @@ public class ExtractCodelistDetailsCard extends WizardCard {
|
||||||
automaticallyAttachPanel.add(automaticallyAttachTrue);
|
automaticallyAttachPanel.add(automaticallyAttachTrue);
|
||||||
automaticallyAttachPanel.add(automaticallyAttachFalse);
|
automaticallyAttachPanel.add(automaticallyAttachFalse);
|
||||||
|
|
||||||
FieldLabel fieldAttach = new FieldLabel(automaticallyAttachPanel,
|
FieldLabel attachFieldLabel = new FieldLabel(automaticallyAttachPanel,
|
||||||
"Attach");
|
msgs.attachFieldLabel());
|
||||||
fieldAttach.setToolTip("Select true if you want automatically attach the generated codelist");
|
attachFieldLabel.setToolTip(msgs.attachFieldToolTip());
|
||||||
p.add(fieldAttach, new VerticalLayoutData(-1, -1, new Margins(0)));
|
p.add(attachFieldLabel, new VerticalLayoutData(-1, -1, new Margins(0)));
|
||||||
|
|
||||||
// //
|
// //
|
||||||
|
|
||||||
|
@ -159,16 +171,16 @@ public class ExtractCodelistDetailsCard extends WizardCard {
|
||||||
Log.trace("Combo AttachToColumn created");
|
Log.trace("Combo AttachToColumn created");
|
||||||
addHandlersForComboAttachToColumn(propsColumnData.label());
|
addHandlersForComboAttachToColumn(propsColumnData.label());
|
||||||
|
|
||||||
comboAttachToColumn.setEmptyText("Select a column...");
|
comboAttachToColumn.setEmptyText(msgs.comboAttachToColumnEmptyText());
|
||||||
comboAttachToColumn.setWidth(191);
|
comboAttachToColumn.setWidth(191);
|
||||||
comboAttachToColumn.setTypeAhead(false);
|
comboAttachToColumn.setTypeAhead(false);
|
||||||
comboAttachToColumn.setEditable(false);
|
comboAttachToColumn.setEditable(false);
|
||||||
comboAttachToColumn.setTriggerAction(TriggerAction.ALL);
|
comboAttachToColumn.setTriggerAction(TriggerAction.ALL);
|
||||||
attachToColumnField = new FieldLabel(comboAttachToColumn,
|
comboAttachToColumnLabel = new FieldLabel(comboAttachToColumn,
|
||||||
"Attach To Column");
|
msgs.comboAttachToColumnLabel());
|
||||||
attachToColumnField.setToolTip("Select the column to be attached to extraced codelist");
|
comboAttachToColumnLabel.setToolTip(msgs.comboAttachToColumnToolTip());
|
||||||
p.add(attachToColumnField,
|
p.add(comboAttachToColumnLabel, new VerticalLayoutData(1, -1,
|
||||||
new VerticalLayoutData(1, -1, new Margins(0)));
|
new Margins(0)));
|
||||||
|
|
||||||
// /
|
// /
|
||||||
tableDetailPanel.add(form);
|
tableDetailPanel.add(form);
|
||||||
|
@ -186,13 +198,6 @@ public class ExtractCodelistDetailsCard extends WizardCard {
|
||||||
comboAttachToColumn
|
comboAttachToColumn
|
||||||
.addSelectionHandler(new SelectionHandler<ColumnData>() {
|
.addSelectionHandler(new SelectionHandler<ColumnData>() {
|
||||||
public void onSelection(SelectionEvent<ColumnData> event) {
|
public void onSelection(SelectionEvent<ColumnData> event) {
|
||||||
Info.display(
|
|
||||||
"Column Selected",
|
|
||||||
"You selected "
|
|
||||||
+ (event.getSelectedItem() == null ? "nothing"
|
|
||||||
: label.getLabel(event
|
|
||||||
.getSelectedItem())
|
|
||||||
+ "!"));
|
|
||||||
Log.debug("ComboAttachToColumn selected: "
|
Log.debug("ComboAttachToColumn selected: "
|
||||||
+ event.getSelectedItem());
|
+ event.getSelectedItem());
|
||||||
ColumnData column = event.getSelectedItem();
|
ColumnData column = event.getSelectedItem();
|
||||||
|
@ -249,25 +254,26 @@ public class ExtractCodelistDetailsCard extends WizardCard {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
if (name.getValue() == null || name.getValue().isEmpty()
|
if (nameField.getValue() == null || nameField.getValue().isEmpty()
|
||||||
|| !name.isValid()) {
|
|| !nameField.isValid()) {
|
||||||
d = new AlertMessageBox("Attention!", "Fill name fields");
|
d = new AlertMessageBox(msgsCommon.attention(),
|
||||||
|
msgs.attentionFillNameField());
|
||||||
d.addHideHandler(hideHandler);
|
d.addHideHandler(hideHandler);
|
||||||
d.show();
|
d.show();
|
||||||
} else {
|
} else {
|
||||||
if (getAutomaticallyAttach()) {
|
if (getAutomaticallyAttach()) {
|
||||||
attachColumn = comboAttachToColumn.getCurrentValue();
|
attachColumn = comboAttachToColumn.getCurrentValue();
|
||||||
if (attachColumn == null) {
|
if (attachColumn == null) {
|
||||||
d = new AlertMessageBox("Attention!",
|
d = new AlertMessageBox(msgsCommon.attention(),
|
||||||
"Select column to attach codelist!");
|
msgs.attentionSelectColumnToAttachCodelist());
|
||||||
d.addHideHandler(hideHandler);
|
d.addHideHandler(hideHandler);
|
||||||
d.show();
|
d.show();
|
||||||
} else {
|
} else {
|
||||||
name.setReadOnly(true);
|
nameField.setReadOnly(true);
|
||||||
goNext();
|
goNext();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
name.setReadOnly(true);
|
nameField.setReadOnly(true);
|
||||||
goNext();
|
goNext();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -284,7 +290,7 @@ public class ExtractCodelistDetailsCard extends WizardCard {
|
||||||
protected void goNext() {
|
protected void goNext() {
|
||||||
try {
|
try {
|
||||||
detail = new TabResource();
|
detail = new TabResource();
|
||||||
detail.setName(name.getCurrentValue());
|
detail.setName(nameField.getCurrentValue());
|
||||||
|
|
||||||
extractCodelistSession.setTabResource(detail);
|
extractCodelistSession.setTabResource(detail);
|
||||||
extractCodelistSession
|
extractCodelistSession
|
||||||
|
@ -297,7 +303,7 @@ public class ExtractCodelistDetailsCard extends WizardCard {
|
||||||
getWizardWindow().nextCard();
|
getWizardWindow().nextCard();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Log.error("sayNextCard :" + e.getLocalizedMessage());
|
Log.error("sayNextCard :" + e.getLocalizedMessage());
|
||||||
name.setReadOnly(false);
|
nameField.setReadOnly(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,139 @@
|
||||||
|
package org.gcube.portlets.user.td.extractcodelistwidget.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 ExtractCodelistMessages extends Messages {
|
||||||
|
|
||||||
|
@DefaultMessage("Extract Codelist")
|
||||||
|
String extractCodelistWizardHead();
|
||||||
|
|
||||||
|
@DefaultMessage("Codelist Detail")
|
||||||
|
String extractCodelistDetailCardHead();
|
||||||
|
|
||||||
|
@DefaultMessage("Details")
|
||||||
|
String extractCodelistDetailsCardFormHead();
|
||||||
|
|
||||||
|
@DefaultMessage("Information")
|
||||||
|
String infoFieldSetHead();
|
||||||
|
|
||||||
|
@DefaultMessage("Enter a name...")
|
||||||
|
String nameFieldEmptyText();
|
||||||
|
|
||||||
|
@DefaultMessage("Name")
|
||||||
|
String nameFieldLabel();
|
||||||
|
|
||||||
|
@DefaultMessage("Enter the name of new codelist extracted")
|
||||||
|
String nameFieldToolTip();
|
||||||
|
|
||||||
|
@DefaultMessage("True")
|
||||||
|
String automaticallyAttachTrueLabel();
|
||||||
|
|
||||||
|
@DefaultMessage("False")
|
||||||
|
String automaticallyAttachFalseLabel();
|
||||||
|
|
||||||
|
@DefaultMessage("Attach")
|
||||||
|
String attachFieldLabel();
|
||||||
|
|
||||||
|
@DefaultMessage("Select true if you want automatically attach the generated codelist")
|
||||||
|
String attachFieldToolTip();
|
||||||
|
|
||||||
|
@DefaultMessage("Select a column...")
|
||||||
|
String comboAttachToColumnEmptyText();
|
||||||
|
|
||||||
|
@DefaultMessage("Attach To Column")
|
||||||
|
String comboAttachToColumnLabel();
|
||||||
|
|
||||||
|
@DefaultMessage("Select the column to be attached to extracted codelist")
|
||||||
|
String comboAttachToColumnToolTip();
|
||||||
|
|
||||||
|
@DefaultMessage("Fill name fields!")
|
||||||
|
String attentionFillNameField();
|
||||||
|
|
||||||
|
@DefaultMessage("Select column to attach codelist!")
|
||||||
|
String attentionSelectColumnToAttachCodelist();
|
||||||
|
|
||||||
|
@DefaultMessage("Source Column")
|
||||||
|
String sourceColumnsSelectionCardHead();
|
||||||
|
|
||||||
|
@DefaultMessage("No column selected!")
|
||||||
|
String attentionNoColumnSelected();
|
||||||
|
|
||||||
|
@DefaultMessage("Target Column")
|
||||||
|
String targetColumnsSelectionCardHead();
|
||||||
|
|
||||||
|
@DefaultMessage("Connect Codelist")
|
||||||
|
String btnConnectTitle();
|
||||||
|
|
||||||
|
@DefaultMessage("Disconnect Codelist")
|
||||||
|
String btnDisconnectTitle();
|
||||||
|
|
||||||
|
@DefaultMessage("Select a Column...")
|
||||||
|
String comboDefNewColumnEmptyText();
|
||||||
|
|
||||||
|
@DefaultMessage("Select a new column...")
|
||||||
|
String comboReferenceDefColumnEmptyText();
|
||||||
|
|
||||||
|
@DefaultMessage("Select from Codelist...")
|
||||||
|
String comboColumnEmptyText();
|
||||||
|
|
||||||
|
@DefaultMessage("New")
|
||||||
|
String checkNewLabel();
|
||||||
|
|
||||||
|
@DefaultMessage("Error retrieving columns on server.")
|
||||||
|
String errorRetrievingColumnsFixed();
|
||||||
|
|
||||||
|
@DefaultMessage("Error creating form!")
|
||||||
|
String errorCreatingForm();
|
||||||
|
|
||||||
|
@DefaultMessage("Error creating form for check radio!")
|
||||||
|
String errorCreatingFormForCheckRadio();
|
||||||
|
|
||||||
|
@DefaultMessage("Fill all column!")
|
||||||
|
String attentionFillAllColumn();
|
||||||
|
|
||||||
|
@DefaultMessage("An error occurred in extract codelist.")
|
||||||
|
String errorInExtractCodelistFixed();
|
||||||
|
|
||||||
|
@DefaultMessage("An error occurred setting collateral table final.")
|
||||||
|
String errorAnErrorOccurredSettingCollateralTableFinalFixed();
|
||||||
|
|
||||||
|
@DefaultMessage("No collateral id retrieved")
|
||||||
|
String errorNoCollateralIdRetrieved();
|
||||||
|
|
||||||
|
@DefaultMessage("Collateral id is null")
|
||||||
|
String errorCollateralIdIsNull();
|
||||||
|
|
||||||
|
@DefaultMessage("An error occurred retrieving column on collateral table.")
|
||||||
|
String errorAnErrorOccurredRetrievingColumnOnCollateralTableFixed();
|
||||||
|
|
||||||
|
@DefaultMessage("An error occured no label retrieved for attach column")
|
||||||
|
String errorAnErrorOccurredNoLabelRetrievedForAttachColumnFixed();
|
||||||
|
|
||||||
|
@DefaultMessage("No label retrieved for attach column")
|
||||||
|
String errorNoLabelRetrievedForAttachColumn();
|
||||||
|
|
||||||
|
@DefaultMessage("An error occurred no attach column match")
|
||||||
|
String errorAnErrorOccurredNoAttachColumnMatchFixed();
|
||||||
|
|
||||||
|
@DefaultMessage("No attach column match")
|
||||||
|
String errorNoAttachColumnMatch();
|
||||||
|
|
||||||
|
@DefaultMessage("An error occurred on start change column type.")
|
||||||
|
String errorAnErrorOccurredOnStartChangeColumnTypeFixed();
|
||||||
|
|
||||||
|
@DefaultMessage("The Codelists is available in the list of yours tabular resources")
|
||||||
|
String codelistAvailableInResources();
|
||||||
|
|
||||||
|
@DefaultMessage("Columns")
|
||||||
|
String columns();
|
||||||
|
|
||||||
|
@DefaultMessage("No column loaded: ")
|
||||||
|
String errorNoColumnLoadedFixed();
|
||||||
|
|
||||||
|
}
|
|
@ -12,6 +12,7 @@ import org.gcube.portlets.user.td.gwtservice.shared.extract.ExtractCodelistTarge
|
||||||
import org.gcube.portlets.user.td.gwtservice.shared.tr.column.type.ChangeColumnTypeSession;
|
import org.gcube.portlets.user.td.gwtservice.shared.tr.column.type.ChangeColumnTypeSession;
|
||||||
import org.gcube.portlets.user.td.monitorwidget.client.MonitorDialog;
|
import org.gcube.portlets.user.td.monitorwidget.client.MonitorDialog;
|
||||||
import org.gcube.portlets.user.td.monitorwidget.client.MonitorDialogListener;
|
import org.gcube.portlets.user.td.monitorwidget.client.MonitorDialogListener;
|
||||||
|
import org.gcube.portlets.user.td.widgetcommonevent.client.CommonMessages;
|
||||||
import org.gcube.portlets.user.td.widgetcommonevent.client.event.SessionExpiredEvent;
|
import org.gcube.portlets.user.td.widgetcommonevent.client.event.SessionExpiredEvent;
|
||||||
import org.gcube.portlets.user.td.widgetcommonevent.client.type.SessionExpiredType;
|
import org.gcube.portlets.user.td.widgetcommonevent.client.type.SessionExpiredType;
|
||||||
import org.gcube.portlets.user.td.widgetcommonevent.shared.OperationResult;
|
import org.gcube.portlets.user.td.widgetcommonevent.shared.OperationResult;
|
||||||
|
@ -22,6 +23,7 @@ import org.gcube.portlets.user.td.widgetcommonevent.shared.tr.column.ColumnTypeC
|
||||||
import org.gcube.portlets.user.td.wizardwidget.client.WizardCard;
|
import org.gcube.portlets.user.td.wizardwidget.client.WizardCard;
|
||||||
|
|
||||||
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.safehtml.shared.SafeHtmlBuilder;
|
import com.google.gwt.safehtml.shared.SafeHtmlBuilder;
|
||||||
import com.google.gwt.user.client.Command;
|
import com.google.gwt.user.client.Command;
|
||||||
import com.google.gwt.user.client.rpc.AsyncCallback;
|
import com.google.gwt.user.client.rpc.AsyncCallback;
|
||||||
|
@ -40,6 +42,8 @@ import com.sencha.gxt.widget.core.client.container.VBoxLayoutContainer.VBoxLayou
|
||||||
*/
|
*/
|
||||||
public class ExtractCodelistOperationInProgressCard extends WizardCard
|
public class ExtractCodelistOperationInProgressCard extends WizardCard
|
||||||
implements MonitorDialogListener {
|
implements MonitorDialogListener {
|
||||||
|
private static CommonMessages msgsCommon = GWT.create(CommonMessages.class);
|
||||||
|
private ExtractCodelistMessages msgs;
|
||||||
|
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
private ExtractCodelistOperationInProgressCard thisCard;
|
private ExtractCodelistOperationInProgressCard thisCard;
|
||||||
|
@ -52,12 +56,14 @@ public class ExtractCodelistOperationInProgressCard extends WizardCard
|
||||||
|
|
||||||
public ExtractCodelistOperationInProgressCard(
|
public ExtractCodelistOperationInProgressCard(
|
||||||
final ExtractCodelistSession extractCodelistSession) {
|
final ExtractCodelistSession extractCodelistSession) {
|
||||||
super("Operation In Progress", "");
|
super(msgsCommon.operationInProgress(), "");
|
||||||
|
|
||||||
this.extractCodelistSession = extractCodelistSession;
|
this.extractCodelistSession = extractCodelistSession;
|
||||||
thisCard = this;
|
thisCard = this;
|
||||||
automaticallyAttached = false;
|
automaticallyAttached = false;
|
||||||
|
|
||||||
|
initMessages();
|
||||||
|
|
||||||
VBoxLayoutContainer operationInProgressPanel = new VBoxLayoutContainer();
|
VBoxLayoutContainer operationInProgressPanel = new VBoxLayoutContainer();
|
||||||
operationInProgressPanel.setVBoxLayoutAlign(VBoxLayoutAlign.LEFT);
|
operationInProgressPanel.setVBoxLayoutAlign(VBoxLayoutAlign.LEFT);
|
||||||
|
|
||||||
|
@ -71,6 +77,11 @@ public class ExtractCodelistOperationInProgressCard extends WizardCard
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected void initMessages() {
|
||||||
|
msgs = GWT.create(ExtractCodelistMessages.class);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
public void extractCodelist() {
|
public void extractCodelist() {
|
||||||
TDGWTServiceAsync.INSTANCE.startExtractCodelist(extractCodelistSession,
|
TDGWTServiceAsync.INSTANCE.startExtractCodelist(extractCodelistSession,
|
||||||
new AsyncCallback<String>() {
|
new AsyncCallback<String>() {
|
||||||
|
@ -87,8 +98,8 @@ public class ExtractCodelistOperationInProgressCard extends WizardCard
|
||||||
new SessionExpiredEvent(
|
new SessionExpiredEvent(
|
||||||
SessionExpiredType.EXPIREDONSERVER));
|
SessionExpiredType.EXPIREDONSERVER));
|
||||||
} else {
|
} else {
|
||||||
showErrorAndHide("Error in extract codelist",
|
showErrorAndHide(msgsCommon.error(),
|
||||||
"An error occured in extract codelist.",
|
msgs.errorInExtractCodelistFixed(),
|
||||||
caught.getLocalizedMessage(), caught);
|
caught.getLocalizedMessage(), caught);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -99,10 +110,11 @@ public class ExtractCodelistOperationInProgressCard extends WizardCard
|
||||||
public void setCollateralTRIdFinal(ArrayList<TRId> collateralIds) {
|
public void setCollateralTRIdFinal(ArrayList<TRId> collateralIds) {
|
||||||
if (collateralIds == null || collateralIds.isEmpty()) {
|
if (collateralIds == null || collateralIds.isEmpty()) {
|
||||||
monitorDialog.hide();
|
monitorDialog.hide();
|
||||||
showErrorAndHide("Error in extract codelist",
|
showErrorAndHide(
|
||||||
"An error occured setting collateral table final.",
|
msgsCommon.error(),
|
||||||
"No collateral id retrieved", new Throwable(
|
msgs.errorAnErrorOccurredSettingCollateralTableFinalFixed(),
|
||||||
"No collateral id retrieved"));
|
msgs.errorNoCollateralIdRetrieved(),
|
||||||
|
new Throwable(msgs.errorNoCollateralIdRetrieved()));
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -110,10 +122,11 @@ public class ExtractCodelistOperationInProgressCard extends WizardCard
|
||||||
collateralTRId = collateralIds.get(0);
|
collateralTRId = collateralIds.get(0);
|
||||||
if (collateralTRId == null) {
|
if (collateralTRId == null) {
|
||||||
monitorDialog.hide();
|
monitorDialog.hide();
|
||||||
showErrorAndHide("Error in extract codelist",
|
showErrorAndHide(
|
||||||
"An error occured setting collateral table final.",
|
msgsCommon.error(),
|
||||||
"Collateral id is null", new Throwable(
|
msgs.errorAnErrorOccurredSettingCollateralTableFinalFixed(),
|
||||||
"Collateral id is null"));
|
msgs.errorCollateralIdIsNull(),
|
||||||
|
new Throwable(msgs.errorCollateralIdIsNull()));
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -136,8 +149,8 @@ public class ExtractCodelistOperationInProgressCard extends WizardCard
|
||||||
SessionExpiredType.EXPIREDONSERVER));
|
SessionExpiredType.EXPIREDONSERVER));
|
||||||
} else {
|
} else {
|
||||||
showErrorAndHide(
|
showErrorAndHide(
|
||||||
"Error in extract codelist",
|
msgsCommon.error(),
|
||||||
"An error occured setting collateral table final.",
|
msgs.errorAnErrorOccurredSettingCollateralTableFinalFixed(),
|
||||||
caught.getLocalizedMessage(), caught);
|
caught.getLocalizedMessage(), caught);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -158,8 +171,8 @@ public class ExtractCodelistOperationInProgressCard extends WizardCard
|
||||||
SessionExpiredType.EXPIREDONSERVER));
|
SessionExpiredType.EXPIREDONSERVER));
|
||||||
} else {
|
} else {
|
||||||
showErrorAndHide(
|
showErrorAndHide(
|
||||||
"Error in extract codelist",
|
msgsCommon.error(),
|
||||||
"An error occured retrieving column on collateral table.",
|
msgs.errorAnErrorOccurredRetrievingColumnOnCollateralTableFixed(),
|
||||||
caught.getLocalizedMessage(), caught);
|
caught.getLocalizedMessage(), caught);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -193,8 +206,8 @@ public class ExtractCodelistOperationInProgressCard extends WizardCard
|
||||||
labelOfAttachColumn = targetCol.getTargetColumn()
|
labelOfAttachColumn = targetCol.getTargetColumn()
|
||||||
.getLabel();
|
.getLabel();
|
||||||
typeCodeOfColumnAttach = ColumnTypeCode
|
typeCodeOfColumnAttach = ColumnTypeCode
|
||||||
.getColumnTypeCodeFromId(targetCol.getTargetColumn()
|
.getColumnTypeCodeFromId(targetCol
|
||||||
.getTypeCode());
|
.getTargetColumn().getTypeCode());
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -203,17 +216,18 @@ public class ExtractCodelistOperationInProgressCard extends WizardCard
|
||||||
ColumnData codelistColumnReference = null;
|
ColumnData codelistColumnReference = null;
|
||||||
|
|
||||||
if (labelOfAttachColumn == null) {
|
if (labelOfAttachColumn == null) {
|
||||||
showErrorAndHide("Error in extract codelist",
|
showErrorAndHide(
|
||||||
"An error occured no label retrieved for attach column",
|
msgsCommon.error(),
|
||||||
"No label retrieved for attach column", new Throwable(
|
msgs.errorAnErrorOccurredNoLabelRetrievedForAttachColumnFixed(),
|
||||||
"No label retrieved for attach column"));
|
msgs.errorNoLabelRetrievedForAttachColumn(), new Throwable(
|
||||||
|
msgs.errorNoLabelRetrievedForAttachColumn()));
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
for (ColumnData refColumn : refColumns) {
|
for (ColumnData refColumn : refColumns) {
|
||||||
if (refColumn.getLabel().compareTo(labelOfAttachColumn) == 0) {
|
if (refColumn.getLabel().compareTo(labelOfAttachColumn) == 0) {
|
||||||
if (ColumnTypeCode
|
if (ColumnTypeCode.getColumnTypeCodeFromId(
|
||||||
.getColumnTypeCodeFromId(refColumn.getTypeCode())
|
refColumn.getTypeCode()).compareTo(
|
||||||
.compareTo(typeCodeOfColumnAttach) == 0) {
|
typeCodeOfColumnAttach) == 0) {
|
||||||
codelistColumnReference = refColumn;
|
codelistColumnReference = refColumn;
|
||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
|
@ -231,10 +245,10 @@ public class ExtractCodelistOperationInProgressCard extends WizardCard
|
||||||
columnTypeCodeTarget, null, codelistColumnReference);
|
columnTypeCodeTarget, null, codelistColumnReference);
|
||||||
callChangeColumnType(changeColumnTypeSession);
|
callChangeColumnType(changeColumnTypeSession);
|
||||||
} else {
|
} else {
|
||||||
showErrorAndHide("Error in extract codelist",
|
showErrorAndHide(msgsCommon.error(),
|
||||||
"An error occured no attach column match",
|
msgs.errorAnErrorOccurredNoAttachColumnMatchFixed(),
|
||||||
"No attach column match", new Throwable(
|
msgs.errorNoAttachColumnMatch(),
|
||||||
"No attach column match"));
|
new Throwable(msgs.errorNoAttachColumnMatch()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -250,8 +264,8 @@ public class ExtractCodelistOperationInProgressCard extends WizardCard
|
||||||
SessionExpiredType.EXPIREDONSERVER));
|
SessionExpiredType.EXPIREDONSERVER));
|
||||||
} else {
|
} else {
|
||||||
showErrorAndHide(
|
showErrorAndHide(
|
||||||
"Error in extract codelist",
|
msgsCommon.error(),
|
||||||
"An error occured on start change column type.",
|
msgs.errorAnErrorOccurredOnStartChangeColumnTypeFixed(),
|
||||||
caught.getLocalizedMessage(), caught);
|
caught.getLocalizedMessage(), caught);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -300,8 +314,11 @@ public class ExtractCodelistOperationInProgressCard extends WizardCard
|
||||||
protected void updateOnComplete() {
|
protected void updateOnComplete() {
|
||||||
SafeHtmlBuilder safeHtmlBuilder = new SafeHtmlBuilder();
|
SafeHtmlBuilder safeHtmlBuilder = new SafeHtmlBuilder();
|
||||||
safeHtmlBuilder
|
safeHtmlBuilder
|
||||||
.appendHtmlConstant("<div style='display:block;margin:auto;left:0;text-align:center;font-size:large;font-weight:bold; color:#009900;'>Operation Completed</div>"
|
.appendHtmlConstant("<div style='display:block;margin:auto;left:0;text-align:center;font-size:large;font-weight:bold; color:#009900;'>"
|
||||||
+ "<div style='display:block;margin:auto; margin-top:30px;left:0;text-align:center;font-size:medium;font-weight:bold; color:black;'>The Codelists is available in the list of yours tabular resources</div>");
|
+ msgsCommon.operationCompleted()
|
||||||
|
+ "</div>"
|
||||||
|
+ "<div style='display:block;margin:auto; margin-top:30px;left:0;text-align:center;font-size:medium;font-weight:bold; color:black;'>"
|
||||||
|
+ msgs.codelistAvailableInResources() + "</div>");
|
||||||
resultField.setHTML(safeHtmlBuilder.toSafeHtml());
|
resultField.setHTML(safeHtmlBuilder.toSafeHtml());
|
||||||
resultField.setVisible(true);
|
resultField.setVisible(true);
|
||||||
Command sayComplete = new Command() {
|
Command sayComplete = new Command() {
|
||||||
|
@ -329,7 +346,8 @@ public class ExtractCodelistOperationInProgressCard extends WizardCard
|
||||||
public void operationFailed(Throwable caught, String reason, String details) {
|
public void operationFailed(Throwable caught, String reason, String details) {
|
||||||
SafeHtmlBuilder safeHtmlBuilder = new SafeHtmlBuilder();
|
SafeHtmlBuilder safeHtmlBuilder = new SafeHtmlBuilder();
|
||||||
safeHtmlBuilder
|
safeHtmlBuilder
|
||||||
.appendHtmlConstant("<div style='display:block;margin:auto;left:0;text-align:center;font-size:large;font-weight:bold;color:red;'>Operation Failed</div>");
|
.appendHtmlConstant("<div style='display:block;margin:auto;left:0;text-align:center;font-size:large;font-weight:bold;color:red;'>"
|
||||||
|
+ msgsCommon.operationFailed() + "</div>");
|
||||||
resultField.setHTML(safeHtmlBuilder.toSafeHtml());
|
resultField.setHTML(safeHtmlBuilder.toSafeHtml());
|
||||||
resultField.setVisible(true);
|
resultField.setVisible(true);
|
||||||
if (caught instanceof TDGWTSessionExpiredException) {
|
if (caught instanceof TDGWTSessionExpiredException) {
|
||||||
|
@ -338,8 +356,7 @@ public class ExtractCodelistOperationInProgressCard extends WizardCard
|
||||||
new SessionExpiredEvent(
|
new SessionExpiredEvent(
|
||||||
SessionExpiredType.EXPIREDONSERVER));
|
SessionExpiredType.EXPIREDONSERVER));
|
||||||
} else {
|
} else {
|
||||||
showErrorAndHide("Error in Extract Codelist", reason, details,
|
showErrorAndHide(msgsCommon.error(), reason, details, caught);
|
||||||
caught);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
forceLayout();
|
forceLayout();
|
||||||
|
@ -351,7 +368,8 @@ public class ExtractCodelistOperationInProgressCard extends WizardCard
|
||||||
newTrId = operationResult.getTrId();
|
newTrId = operationResult.getTrId();
|
||||||
SafeHtmlBuilder safeHtmlBuilder = new SafeHtmlBuilder();
|
SafeHtmlBuilder safeHtmlBuilder = new SafeHtmlBuilder();
|
||||||
safeHtmlBuilder
|
safeHtmlBuilder
|
||||||
.appendHtmlConstant("<div style='display:block;margin:auto;left:0;text-align:center;font-size:large;font-weight:bold;color: #FF9900;'>Problems in the Operation</div>");
|
.appendHtmlConstant("<div style='display:block;margin:auto;left:0;text-align:center;font-size:large;font-weight:bold;color: #FF9900;'>"
|
||||||
|
+ msgsCommon.operationProblem() + "</div>");
|
||||||
resultField.setHTML(safeHtmlBuilder.toSafeHtml());
|
resultField.setHTML(safeHtmlBuilder.toSafeHtml());
|
||||||
resultField.setVisible(true);
|
resultField.setVisible(true);
|
||||||
|
|
||||||
|
@ -382,7 +400,8 @@ public class ExtractCodelistOperationInProgressCard extends WizardCard
|
||||||
public void operationAborted() {
|
public void operationAborted() {
|
||||||
SafeHtmlBuilder safeHtmlBuilder = new SafeHtmlBuilder();
|
SafeHtmlBuilder safeHtmlBuilder = new SafeHtmlBuilder();
|
||||||
safeHtmlBuilder
|
safeHtmlBuilder
|
||||||
.appendHtmlConstant("<div style='diplay:block;margin:auto;left:0;text-align:center;font-size:large;font-weight:bold;color: #AA00AA;'>Operation Aborted</div>");
|
.appendHtmlConstant("<div style='diplay:block;margin:auto;left:0;text-align:center;font-size:large;font-weight:bold;color: #AA00AA;'>"
|
||||||
|
+ msgsCommon.operationAborted() + "</div>");
|
||||||
resultField.setHTML(safeHtmlBuilder.toSafeHtml());
|
resultField.setHTML(safeHtmlBuilder.toSafeHtml());
|
||||||
resultField.setVisible(true);
|
resultField.setVisible(true);
|
||||||
|
|
||||||
|
@ -412,7 +431,8 @@ public class ExtractCodelistOperationInProgressCard extends WizardCard
|
||||||
public void operationPutInBackground() {
|
public void operationPutInBackground() {
|
||||||
SafeHtmlBuilder safeHtmlBuilder = new SafeHtmlBuilder();
|
SafeHtmlBuilder safeHtmlBuilder = new SafeHtmlBuilder();
|
||||||
safeHtmlBuilder
|
safeHtmlBuilder
|
||||||
.appendHtmlConstant("<div style='display:block;margin:auto;left:0;text-align:center;font-size:large;font-weight:bold;color: #00AAAA;'>Operation in Background</div>");
|
.appendHtmlConstant("<div style='display:block;margin:auto;left:0;text-align:center;font-size:large;font-weight:bold;color: #00AAAA;'>"
|
||||||
|
+ msgsCommon.operationInBackground() + "</div>");
|
||||||
resultField.setHTML(safeHtmlBuilder.toSafeHtml());
|
resultField.setHTML(safeHtmlBuilder.toSafeHtml());
|
||||||
resultField.setVisible(true);
|
resultField.setVisible(true);
|
||||||
|
|
||||||
|
|
|
@ -1,24 +1,17 @@
|
||||||
package org.gcube.portlets.user.td.extractcodelistwidget.client;
|
package org.gcube.portlets.user.td.extractcodelistwidget.client;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
import org.gcube.portlets.user.td.gwtservice.shared.extract.ExtractCodelistSession;
|
import org.gcube.portlets.user.td.gwtservice.shared.extract.ExtractCodelistSession;
|
||||||
import org.gcube.portlets.user.td.widgetcommonevent.shared.TRId;
|
import org.gcube.portlets.user.td.widgetcommonevent.shared.TRId;
|
||||||
import org.gcube.portlets.user.td.wizardwidget.client.WizardWindow;
|
import org.gcube.portlets.user.td.wizardwidget.client.WizardWindow;
|
||||||
|
|
||||||
import com.google.web.bindery.event.shared.EventBus;
|
import com.google.web.bindery.event.shared.EventBus;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class ExtractCodelistWizardTD extends WizardWindow {
|
public class ExtractCodelistWizardTD extends WizardWindow {
|
||||||
|
|
||||||
protected ExtractCodelistSession exportSession;
|
private ExtractCodelistSession exportSession;
|
||||||
protected TRId trId;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -27,18 +20,14 @@ public class ExtractCodelistWizardTD extends WizardWindow {
|
||||||
*/
|
*/
|
||||||
public ExtractCodelistWizardTD(TRId trId, String title, EventBus eventBus) {
|
public ExtractCodelistWizardTD(TRId trId, String title, EventBus eventBus) {
|
||||||
super(title, eventBus);
|
super(title, eventBus);
|
||||||
this.trId=trId;
|
|
||||||
|
|
||||||
exportSession = new ExtractCodelistSession();
|
exportSession = new ExtractCodelistSession();
|
||||||
exportSession.setTrId(trId);
|
exportSession.setTrId(trId);
|
||||||
SourceColumnsSelectionCard sourceColumnsSelectionCard=new SourceColumnsSelectionCard(exportSession);
|
SourceColumnsSelectionCard sourceColumnsSelectionCard = new SourceColumnsSelectionCard(
|
||||||
|
exportSession);
|
||||||
addCard(sourceColumnsSelectionCard);
|
addCard(sourceColumnsSelectionCard);
|
||||||
sourceColumnsSelectionCard.setup();
|
sourceColumnsSelectionCard.setup();
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
|
@ -4,20 +4,30 @@ import org.gcube.portlets.user.td.widgetcommonevent.shared.TRId;
|
||||||
|
|
||||||
import com.allen_sauer.gwt.log.client.Log;
|
import com.allen_sauer.gwt.log.client.Log;
|
||||||
import com.google.gwt.core.client.EntryPoint;
|
import com.google.gwt.core.client.EntryPoint;
|
||||||
|
import com.google.gwt.core.client.GWT;
|
||||||
import com.google.web.bindery.event.shared.SimpleEventBus;
|
import com.google.web.bindery.event.shared.SimpleEventBus;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi"
|
* @author giancarlo email: <a
|
||||||
|
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class ExtractCodelistWizardTDEntry implements EntryPoint {
|
public class ExtractCodelistWizardTDEntry implements EntryPoint {
|
||||||
|
|
||||||
|
private ExtractCodelistMessages msgs;
|
||||||
|
|
||||||
public void onModuleLoad() {
|
public void onModuleLoad() {
|
||||||
|
initMessages();
|
||||||
SimpleEventBus eventBus = new SimpleEventBus();
|
SimpleEventBus eventBus = new SimpleEventBus();
|
||||||
TRId trId = new TRId("10");
|
TRId trId = new TRId("10");
|
||||||
ExtractCodelistWizardTD extractWizard= new ExtractCodelistWizardTD(trId,"ExtractCodelist",eventBus);
|
ExtractCodelistWizardTD extractWizard = new ExtractCodelistWizardTD(
|
||||||
|
trId, msgs.extractCodelistWizardHead(), eventBus);
|
||||||
Log.info(extractWizard.getId());
|
Log.info(extractWizard.getId());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected void initMessages() {
|
||||||
|
msgs = GWT.create(ExtractCodelistMessages.class);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,14 +1,15 @@
|
||||||
package org.gcube.portlets.user.td.extractcodelistwidget.client;
|
package org.gcube.portlets.user.td.extractcodelistwidget.client;
|
||||||
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
import org.gcube.portlets.user.td.extractcodelistwidget.client.grid.ColumnDataGridPanel;
|
import org.gcube.portlets.user.td.extractcodelistwidget.client.grid.ColumnDataGridPanel;
|
||||||
import org.gcube.portlets.user.td.gwtservice.shared.extract.ExtractCodelistSession;
|
import org.gcube.portlets.user.td.gwtservice.shared.extract.ExtractCodelistSession;
|
||||||
|
import org.gcube.portlets.user.td.widgetcommonevent.client.CommonMessages;
|
||||||
import org.gcube.portlets.user.td.widgetcommonevent.shared.tr.column.ColumnData;
|
import org.gcube.portlets.user.td.widgetcommonevent.shared.tr.column.ColumnData;
|
||||||
import org.gcube.portlets.user.td.wizardwidget.client.WizardCard;
|
import org.gcube.portlets.user.td.wizardwidget.client.WizardCard;
|
||||||
|
|
||||||
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.event.logical.shared.SelectionEvent;
|
import com.google.gwt.event.logical.shared.SelectionEvent;
|
||||||
import com.google.gwt.event.logical.shared.SelectionHandler;
|
import com.google.gwt.event.logical.shared.SelectionHandler;
|
||||||
import com.google.gwt.user.client.Command;
|
import com.google.gwt.user.client.Command;
|
||||||
|
@ -19,33 +20,37 @@ import com.sencha.gxt.widget.core.client.event.HideEvent;
|
||||||
import com.sencha.gxt.widget.core.client.event.HideEvent.HideHandler;
|
import com.sencha.gxt.widget.core.client.event.HideEvent.HideHandler;
|
||||||
import com.sencha.gxt.widget.core.client.form.FormPanel;
|
import com.sencha.gxt.widget.core.client.form.FormPanel;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author "Giancarlo Panichi"
|
* @author giancarlo email: <a
|
||||||
|
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class SourceColumnsSelectionCard extends WizardCard {
|
public class SourceColumnsSelectionCard extends WizardCard {
|
||||||
|
private static ExtractCodelistMessages msgs = GWT
|
||||||
|
.create(ExtractCodelistMessages.class);
|
||||||
|
private CommonMessages msgsCommon;
|
||||||
|
private ExtractCodelistSession extractCodelistSession;
|
||||||
|
private ColumnDataGridPanel columnsGridPanel;
|
||||||
|
|
||||||
|
public SourceColumnsSelectionCard(
|
||||||
protected ExtractCodelistSession extractCodelistSession;
|
final ExtractCodelistSession extractCodelistSession) {
|
||||||
protected ColumnDataGridPanel columnsGridPanel;
|
super(msgs.sourceColumnsSelectionCardHead(), "");
|
||||||
|
|
||||||
public SourceColumnsSelectionCard(final ExtractCodelistSession extractCodelistSession) {
|
|
||||||
super("Source Column", "");
|
|
||||||
|
|
||||||
if (extractCodelistSession == null) {
|
if (extractCodelistSession == null) {
|
||||||
Log.error("ExtractCodelistSession is null");
|
Log.error("ExtractCodelistSession is null");
|
||||||
}
|
}
|
||||||
this.extractCodelistSession = extractCodelistSession;
|
this.extractCodelistSession = extractCodelistSession;
|
||||||
|
|
||||||
FormPanel panel = createPanel();
|
initMessages();
|
||||||
setContent(panel);
|
createPanel();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected FormPanel createPanel() {
|
protected void initMessages() {
|
||||||
|
msgsCommon = GWT.create(CommonMessages.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void createPanel() {
|
||||||
FormPanel panel = new FormPanel();
|
FormPanel panel = new FormPanel();
|
||||||
panel.setLabelWidth(90);
|
panel.setLabelWidth(90);
|
||||||
panel.getElement().setPadding(new Padding(5));
|
panel.getElement().setPadding(new Padding(5));
|
||||||
|
@ -66,11 +71,10 @@ public class SourceColumnsSelectionCard extends WizardCard {
|
||||||
|
|
||||||
content.add(columnsGridPanel);
|
content.add(columnsGridPanel);
|
||||||
|
|
||||||
return panel;
|
setContent(panel);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setup() {
|
public void setup() {
|
||||||
Log.debug("SourceColumnsSelectionCard Setup");
|
Log.debug("SourceColumnsSelectionCard Setup");
|
||||||
|
@ -85,7 +89,9 @@ public class SourceColumnsSelectionCard extends WizardCard {
|
||||||
|
|
||||||
getWizardWindow().setNextButtonCommand(sayNextCard);
|
getWizardWindow().setNextButtonCommand(sayNextCard);
|
||||||
setEnableBackButton(false);
|
setEnableBackButton(false);
|
||||||
|
setBackButtonVisible(false);
|
||||||
setEnableNextButton(true);
|
setEnableNextButton(true);
|
||||||
|
setNextButtonVisible(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void checkData() {
|
protected void checkData() {
|
||||||
|
@ -103,7 +109,8 @@ public class SourceColumnsSelectionCard extends WizardCard {
|
||||||
|
|
||||||
ArrayList<ColumnData> columns = columnsGridPanel.getSelectedItems();
|
ArrayList<ColumnData> columns = columnsGridPanel.getSelectedItems();
|
||||||
if (columns.size() == 0) {
|
if (columns.size() == 0) {
|
||||||
d = new AlertMessageBox("Attention", "No columns selected");
|
d = new AlertMessageBox(msgsCommon.attention(),
|
||||||
|
msgs.attentionNoColumnSelected());
|
||||||
d.addHideHandler(hideHandler);
|
d.addHideHandler(hideHandler);
|
||||||
d.setModal(false);
|
d.setModal(false);
|
||||||
d.show();
|
d.show();
|
||||||
|
@ -122,6 +129,7 @@ public class SourceColumnsSelectionCard extends WizardCard {
|
||||||
getWizardWindow().nextCard();
|
getWizardWindow().nextCard();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Log.error("sayNextCard :" + e.getLocalizedMessage());
|
Log.error("sayNextCard :" + e.getLocalizedMessage());
|
||||||
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -131,4 +139,3 @@ public class SourceColumnsSelectionCard extends WizardCard {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,15 +4,26 @@ import org.gcube.portlets.user.td.gwtservice.shared.extract.ExtractCodelistSessi
|
||||||
import org.gcube.portlets.user.td.wizardwidget.client.WizardCard;
|
import org.gcube.portlets.user.td.wizardwidget.client.WizardCard;
|
||||||
|
|
||||||
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.Command;
|
import com.google.gwt.user.client.Command;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author giancarlo email: <a
|
||||||
|
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
||||||
|
*
|
||||||
|
*/
|
||||||
public class TargetColumnsSelectionCard extends WizardCard {
|
public class TargetColumnsSelectionCard extends WizardCard {
|
||||||
private TargetColumnsSelectionCard thisCard;
|
private static ExtractCodelistMessages msgs = GWT
|
||||||
protected ExtractCodelistSession extractCodelistSession;
|
.create(ExtractCodelistMessages.class);
|
||||||
protected TargetColumnsSelectionPanel targetColumnsSelectionPanel;
|
|
||||||
|
|
||||||
public TargetColumnsSelectionCard(final ExtractCodelistSession extractCodelistSession) {
|
private TargetColumnsSelectionCard thisCard;
|
||||||
super("Target Column", "");
|
private ExtractCodelistSession extractCodelistSession;
|
||||||
|
private TargetColumnsSelectionPanel targetColumnsSelectionPanel;
|
||||||
|
|
||||||
|
public TargetColumnsSelectionCard(
|
||||||
|
final ExtractCodelistSession extractCodelistSession) {
|
||||||
|
super(msgs.targetColumnsSelectionCardHead(), "");
|
||||||
thisCard = this;
|
thisCard = this;
|
||||||
if (extractCodelistSession == null) {
|
if (extractCodelistSession == null) {
|
||||||
Log.error("ExtractCodelistSession is null");
|
Log.error("ExtractCodelistSession is null");
|
||||||
|
@ -37,7 +48,6 @@ public class TargetColumnsSelectionCard extends WizardCard {
|
||||||
|
|
||||||
getWizardWindow().setNextButtonCommand(sayNextCard);
|
getWizardWindow().setNextButtonCommand(sayNextCard);
|
||||||
|
|
||||||
|
|
||||||
Command sayPreviousCard = new Command() {
|
Command sayPreviousCard = new Command() {
|
||||||
public void execute() {
|
public void execute() {
|
||||||
try {
|
try {
|
||||||
|
@ -53,7 +63,10 @@ public class TargetColumnsSelectionCard extends WizardCard {
|
||||||
getWizardWindow().setPreviousButtonCommand(sayPreviousCard);
|
getWizardWindow().setPreviousButtonCommand(sayPreviousCard);
|
||||||
|
|
||||||
setEnableBackButton(true);
|
setEnableBackButton(true);
|
||||||
|
setBackButtonVisible(true);
|
||||||
setEnableNextButton(true);
|
setEnableNextButton(true);
|
||||||
|
setNextButtonVisible(true);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void checkData() {
|
protected void checkData() {
|
||||||
|
@ -71,8 +84,10 @@ public class TargetColumnsSelectionCard extends WizardCard {
|
||||||
try {
|
try {
|
||||||
ExtractCodelistDetailsCard destCard = new ExtractCodelistDetailsCard(
|
ExtractCodelistDetailsCard destCard = new ExtractCodelistDetailsCard(
|
||||||
extractCodelistSession);
|
extractCodelistSession);
|
||||||
/*ExtractCodelistOperationInProgressCard destCard = new ExtractCodelistOperationInProgressCard(
|
/*
|
||||||
extractCodelistSession);*/
|
* ExtractCodelistOperationInProgressCard destCard = new
|
||||||
|
* ExtractCodelistOperationInProgressCard( extractCodelistSession);
|
||||||
|
*/
|
||||||
Log.info("NextCard ExtractCodelistOperationInProgressCard");
|
Log.info("NextCard ExtractCodelistOperationInProgressCard");
|
||||||
getWizardWindow().addCard(destCard);
|
getWizardWindow().addCard(destCard);
|
||||||
getWizardWindow().nextCard();
|
getWizardWindow().nextCard();
|
||||||
|
@ -86,5 +101,12 @@ public class TargetColumnsSelectionCard extends WizardCard {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public ExtractCodelistSession getExtractCodelistSession() {
|
||||||
|
return extractCodelistSession;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,6 +15,7 @@ import org.gcube.portlets.user.td.columnwidget.client.dimension.CodelistSelectio
|
||||||
import org.gcube.portlets.user.td.columnwidget.client.properties.ExtractCodelistDefColumnPropertiesCombo;
|
import org.gcube.portlets.user.td.columnwidget.client.properties.ExtractCodelistDefColumnPropertiesCombo;
|
||||||
import org.gcube.portlets.user.td.columnwidget.client.resources.ResourceBundle;
|
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.columnwidget.client.utils.UtilsGXT3;
|
||||||
|
import org.gcube.portlets.user.td.widgetcommonevent.client.CommonMessages;
|
||||||
import org.gcube.portlets.user.td.widgetcommonevent.client.event.SessionExpiredEvent;
|
import org.gcube.portlets.user.td.widgetcommonevent.client.event.SessionExpiredEvent;
|
||||||
import org.gcube.portlets.user.td.widgetcommonevent.client.type.SessionExpiredType;
|
import org.gcube.portlets.user.td.widgetcommonevent.client.type.SessionExpiredType;
|
||||||
import org.gcube.portlets.user.td.widgetcommonevent.shared.tr.TableType;
|
import org.gcube.portlets.user.td.widgetcommonevent.shared.tr.TableType;
|
||||||
|
@ -70,6 +71,9 @@ public class TargetColumnsSelectionPanel extends FramedPanel implements
|
||||||
private static final int LABEL_SIZE_IN_CHAR = 17;
|
private static final int LABEL_SIZE_IN_CHAR = 17;
|
||||||
private static final int COMBOWIDTH = 270;
|
private static final int COMBOWIDTH = 270;
|
||||||
|
|
||||||
|
private CommonMessages msgsCommon;
|
||||||
|
private ExtractCodelistMessages msgs;
|
||||||
|
|
||||||
private TargetColumnsSelectionCard parent;
|
private TargetColumnsSelectionCard parent;
|
||||||
private TabResource connection;
|
private TabResource connection;
|
||||||
private ArrayList<ColumnData> connectionColumns;
|
private ArrayList<ColumnData> connectionColumns;
|
||||||
|
@ -90,11 +94,17 @@ public class TargetColumnsSelectionPanel extends FramedPanel implements
|
||||||
this.parent = parent;
|
this.parent = parent;
|
||||||
connection = null;
|
connection = null;
|
||||||
Log.debug("Create TargetColumnsSelectionPanel()");
|
Log.debug("Create TargetColumnsSelectionPanel()");
|
||||||
|
initMessages();
|
||||||
init();
|
init();
|
||||||
create();
|
create();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected void initMessages() {
|
||||||
|
msgs = GWT.create(ExtractCodelistMessages.class);
|
||||||
|
msgsCommon = GWT.create(CommonMessages.class);
|
||||||
|
}
|
||||||
|
|
||||||
protected void init() {
|
protected void init() {
|
||||||
setWidth(WIDTH);
|
setWidth(WIDTH);
|
||||||
setHeight(HEIGHT);
|
setHeight(HEIGHT);
|
||||||
|
@ -109,7 +119,7 @@ public class TargetColumnsSelectionPanel extends FramedPanel implements
|
||||||
btnConnect = new TextButton();
|
btnConnect = new TextButton();
|
||||||
btnConnect.setIcon(ResourceBundle.INSTANCE.codelistLink24());
|
btnConnect.setIcon(ResourceBundle.INSTANCE.codelistLink24());
|
||||||
btnConnect.setIconAlign(IconAlign.TOP);
|
btnConnect.setIconAlign(IconAlign.TOP);
|
||||||
btnConnect.setTitle("Connect Codelist");
|
btnConnect.setTitle(msgs.btnConnectTitle());
|
||||||
btnConnect.addSelectHandler(new SelectHandler() {
|
btnConnect.addSelectHandler(new SelectHandler() {
|
||||||
|
|
||||||
public void onSelect(SelectEvent event) {
|
public void onSelect(SelectEvent event) {
|
||||||
|
@ -127,7 +137,7 @@ public class TargetColumnsSelectionPanel extends FramedPanel implements
|
||||||
btnDisconnect = new TextButton();
|
btnDisconnect = new TextButton();
|
||||||
btnDisconnect.setIcon(ResourceBundle.INSTANCE.codelistLinkBreak24());
|
btnDisconnect.setIcon(ResourceBundle.INSTANCE.codelistLinkBreak24());
|
||||||
btnDisconnect.setIconAlign(IconAlign.TOP);
|
btnDisconnect.setIconAlign(IconAlign.TOP);
|
||||||
btnDisconnect.setTitle("Disconnect Codelist");
|
btnDisconnect.setTitle(msgs.btnDisconnectTitle());
|
||||||
btnDisconnect.addSelectHandler(new SelectHandler() {
|
btnDisconnect.addSelectHandler(new SelectHandler() {
|
||||||
|
|
||||||
public void onSelect(SelectEvent event) {
|
public void onSelect(SelectEvent event) {
|
||||||
|
@ -178,7 +188,7 @@ public class TargetColumnsSelectionPanel extends FramedPanel implements
|
||||||
protected ArrayList<FieldLabel> generateFields() {
|
protected ArrayList<FieldLabel> generateFields() {
|
||||||
ArrayList<FieldLabel> fields = new ArrayList<FieldLabel>();
|
ArrayList<FieldLabel> fields = new ArrayList<FieldLabel>();
|
||||||
int i = 0;
|
int i = 0;
|
||||||
for (ColumnData sourceCol : parent.extractCodelistSession
|
for (ColumnData sourceCol : parent.getExtractCodelistSession()
|
||||||
.getSourceColumns()) {
|
.getSourceColumns()) {
|
||||||
String label = new String();
|
String label = new String();
|
||||||
if (sourceCol != null && sourceCol.getLabel() != null) {
|
if (sourceCol != null && sourceCol.getLabel() != null) {
|
||||||
|
@ -213,14 +223,14 @@ public class TargetColumnsSelectionPanel extends FramedPanel implements
|
||||||
// comboDefColumn
|
// comboDefColumn
|
||||||
ExtractCodelistDefColumnPropertiesCombo props = GWT
|
ExtractCodelistDefColumnPropertiesCombo props = GWT
|
||||||
.create(ExtractCodelistDefColumnPropertiesCombo.class);
|
.create(ExtractCodelistDefColumnPropertiesCombo.class);
|
||||||
ListStore<ColumnMockUp> storeComboDefColumn = new ListStore<ColumnMockUp>(
|
ListStore<ColumnMockUp> storeComboDefNewColumn = new ListStore<ColumnMockUp>(
|
||||||
props.id());
|
props.id());
|
||||||
|
|
||||||
final ComboBox<ColumnMockUp> comboDefColumn = new ComboBox<ColumnMockUp>(
|
final ComboBox<ColumnMockUp> comboDefNewColumn = new ComboBox<ColumnMockUp>(
|
||||||
storeComboDefColumn, props.label());
|
storeComboDefNewColumn, props.label());
|
||||||
Log.debug("ComboDefColumn created");
|
Log.debug("ComboDefColumn created");
|
||||||
|
|
||||||
final CreateDefColumnListener createDefColumnListener = new CreateDefColumnListener() {
|
final CreateDefColumnListener createDefNewColumnListener = new CreateDefColumnListener() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void failedDefColumnCreation(String reason, String details) {
|
public void failedDefColumnCreation(String reason, String details) {
|
||||||
|
@ -230,7 +240,7 @@ public class TargetColumnsSelectionPanel extends FramedPanel implements
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void completedDefColumnCreation(ColumnMockUp columnMockUp) {
|
public void completedDefColumnCreation(ColumnMockUp columnMockUp) {
|
||||||
comboDefColumn.setValue(columnMockUp, true);
|
comboDefNewColumn.setValue(columnMockUp, true);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -241,47 +251,49 @@ public class TargetColumnsSelectionPanel extends FramedPanel implements
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
comboDefColumn.addTriggerClickHandler(new TriggerClickHandler() {
|
comboDefNewColumn.addTriggerClickHandler(new TriggerClickHandler() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onTriggerClick(TriggerClickEvent event) {
|
public void onTriggerClick(TriggerClickEvent event) {
|
||||||
Log.debug("ComboDefColumn TriggerClickEvent");
|
Log.debug("ComboDefColumn TriggerClickEvent");
|
||||||
comboDefColumn.collapse();
|
comboDefNewColumn.collapse();
|
||||||
|
|
||||||
CreateDefColumnDialog createDefColumnDialog = new CreateDefColumnDialog(
|
CreateDefColumnDialog createDefNewColumnDialog = new CreateDefColumnDialog(
|
||||||
TableType.CODELIST, parent.getEventBus());
|
TableType.CODELIST, parent.getEventBus());
|
||||||
createDefColumnDialog.addListener(createDefColumnListener);
|
createDefNewColumnDialog
|
||||||
createDefColumnDialog.show();
|
.addListener(createDefNewColumnListener);
|
||||||
|
createDefNewColumnDialog.show();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
comboDefColumn.setEmptyText("Select a Column...");
|
comboDefNewColumn.setEmptyText(msgs.comboDefNewColumnEmptyText());
|
||||||
comboDefColumn.setWidth(COMBOWIDTH);
|
comboDefNewColumn.setWidth(COMBOWIDTH);
|
||||||
comboDefColumn.setEditable(false);
|
comboDefNewColumn.setEditable(false);
|
||||||
comboDefColumn.setTriggerAction(TriggerAction.ALL);
|
comboDefNewColumn.setTriggerAction(TriggerAction.ALL);
|
||||||
|
|
||||||
FieldLabel columnLabel = new FieldLabel(comboDefColumn, label);
|
FieldLabel comboDefNewColumnLabel = new FieldLabel(comboDefNewColumn,
|
||||||
columnLabel.setId(col.getColumnId());
|
label);
|
||||||
return columnLabel;
|
comboDefNewColumnLabel.setId(col.getColumnId());
|
||||||
|
return comboDefNewColumnLabel;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected FieldLabel retrieveReferenceColumnLabel(int index,
|
protected FieldLabel retrieveReferenceColumnLabel(int index,
|
||||||
final ColumnData col, String label) {
|
final ColumnData col, String label) {
|
||||||
// comboDefColumn
|
// comboReferenceDefColumn
|
||||||
ExtractCodelistDefColumnPropertiesCombo props = GWT
|
ExtractCodelistDefColumnPropertiesCombo props = GWT
|
||||||
.create(ExtractCodelistDefColumnPropertiesCombo.class);
|
.create(ExtractCodelistDefColumnPropertiesCombo.class);
|
||||||
ListStore<ColumnMockUp> storeComboDefColumn = new ListStore<ColumnMockUp>(
|
ListStore<ColumnMockUp> storeComboReferenceDefColumn = new ListStore<ColumnMockUp>(
|
||||||
props.id());
|
props.id());
|
||||||
|
|
||||||
final ComboBox<ColumnMockUp> comboDefColumn = new ComboBox<ColumnMockUp>(
|
final ComboBox<ColumnMockUp> comboReferenceDefColumn = new ComboBox<ColumnMockUp>(
|
||||||
storeComboDefColumn, props.label());
|
storeComboReferenceDefColumn, props.label());
|
||||||
comboDefColumn.setItemId(COMBO_DEF_COLUMN);
|
comboReferenceDefColumn.setItemId(COMBO_DEF_COLUMN);
|
||||||
|
|
||||||
Log.debug("ComboDefColumn created");
|
Log.debug("ComboDefColumn created");
|
||||||
|
|
||||||
final CreateDefColumnListener createDefColumnListener = new CreateDefColumnListener() {
|
final CreateDefColumnListener createReferenceDefColumnListener = new CreateDefColumnListener() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void failedDefColumnCreation(String reason, String details) {
|
public void failedDefColumnCreation(String reason, String details) {
|
||||||
|
@ -291,7 +303,7 @@ public class TargetColumnsSelectionPanel extends FramedPanel implements
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void completedDefColumnCreation(ColumnMockUp columnMockUp) {
|
public void completedDefColumnCreation(ColumnMockUp columnMockUp) {
|
||||||
comboDefColumn.setValue(columnMockUp, true);
|
comboReferenceDefColumn.setValue(columnMockUp, true);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -302,26 +314,29 @@ public class TargetColumnsSelectionPanel extends FramedPanel implements
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
comboDefColumn.addTriggerClickHandler(new TriggerClickHandler() {
|
comboReferenceDefColumn
|
||||||
|
.addTriggerClickHandler(new TriggerClickHandler() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onTriggerClick(TriggerClickEvent event) {
|
public void onTriggerClick(TriggerClickEvent event) {
|
||||||
Log.debug("ComboDefColumn TriggerClickEvent");
|
Log.debug("ComboDefColumn TriggerClickEvent");
|
||||||
comboDefColumn.collapse();
|
comboReferenceDefColumn.collapse();
|
||||||
|
|
||||||
CreateDefColumnDialog createDefColumnDialog = new CreateDefColumnDialog(
|
CreateDefColumnDialog createReferenceDefColumnDialog = new CreateDefColumnDialog(
|
||||||
TableType.CODELIST, parent.getEventBus());
|
TableType.CODELIST, parent.getEventBus());
|
||||||
createDefColumnDialog.addListener(createDefColumnListener);
|
createReferenceDefColumnDialog
|
||||||
createDefColumnDialog.show();
|
.addListener(createReferenceDefColumnListener);
|
||||||
|
createReferenceDefColumnDialog.show();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
comboDefColumn.setEmptyText("Select a new column...");
|
comboReferenceDefColumn.setEmptyText(msgs
|
||||||
comboDefColumn.setWidth(COMBOWIDTH);
|
.comboReferenceDefColumnEmptyText());
|
||||||
comboDefColumn.setEditable(false);
|
comboReferenceDefColumn.setWidth(COMBOWIDTH);
|
||||||
comboDefColumn.setTriggerAction(TriggerAction.ALL);
|
comboReferenceDefColumn.setEditable(false);
|
||||||
|
comboReferenceDefColumn.setTriggerAction(TriggerAction.ALL);
|
||||||
|
|
||||||
// comboColumn
|
// comboColumn
|
||||||
ColumnDataPropertiesCombo propsCod = GWT
|
ColumnDataPropertiesCombo propsCod = GWT
|
||||||
|
@ -336,7 +351,7 @@ public class TargetColumnsSelectionPanel extends FramedPanel implements
|
||||||
|
|
||||||
Log.debug("ComboColumn created");
|
Log.debug("ComboColumn created");
|
||||||
|
|
||||||
comboColumn.setEmptyText("Select from Codelist...");
|
comboColumn.setEmptyText(msgs.comboColumnEmptyText());
|
||||||
comboColumn.setWidth(COMBOWIDTH);
|
comboColumn.setWidth(COMBOWIDTH);
|
||||||
comboColumn.setEditable(false);
|
comboColumn.setEditable(false);
|
||||||
comboColumn.setTriggerAction(TriggerAction.ALL);
|
comboColumn.setTriggerAction(TriggerAction.ALL);
|
||||||
|
@ -344,18 +359,18 @@ public class TargetColumnsSelectionPanel extends FramedPanel implements
|
||||||
CheckBox checkNew = new CheckBox();
|
CheckBox checkNew = new CheckBox();
|
||||||
checkNew.setItemId(CHECK_NEW);
|
checkNew.setItemId(CHECK_NEW);
|
||||||
checkNew.setEnabled(true);
|
checkNew.setEnabled(true);
|
||||||
checkNew.setBoxLabel("New");
|
checkNew.setBoxLabel(msgs.checkNewLabel());
|
||||||
checkNew.addValueChangeHandler(new ValueChangeHandler<Boolean>() {
|
checkNew.addValueChangeHandler(new ValueChangeHandler<Boolean>() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onValueChange(ValueChangeEvent<Boolean> event) {
|
public void onValueChange(ValueChangeEvent<Boolean> event) {
|
||||||
if (event.getValue()) {
|
if (event.getValue()) {
|
||||||
comboColumn.setVisible(false);
|
comboColumn.setVisible(false);
|
||||||
comboDefColumn.setVisible(true);
|
comboReferenceDefColumn.setVisible(true);
|
||||||
forceLayout();
|
forceLayout();
|
||||||
} else {
|
} else {
|
||||||
comboColumn.setVisible(true);
|
comboColumn.setVisible(true);
|
||||||
comboDefColumn.setVisible(false);
|
comboReferenceDefColumn.setVisible(false);
|
||||||
forceLayout();
|
forceLayout();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -369,11 +384,11 @@ public class TargetColumnsSelectionPanel extends FramedPanel implements
|
||||||
BoxLayoutData boxLayoutData = new BoxLayoutData(new Margins(2, 4, 2, 4));
|
BoxLayoutData boxLayoutData = new BoxLayoutData(new Margins(2, 4, 2, 4));
|
||||||
flowButton.add(checkNew, boxLayoutData);
|
flowButton.add(checkNew, boxLayoutData);
|
||||||
flowButton.add(comboColumn, boxLayoutData);
|
flowButton.add(comboColumn, boxLayoutData);
|
||||||
flowButton.add(comboDefColumn, boxLayoutData);
|
flowButton.add(comboReferenceDefColumn, boxLayoutData);
|
||||||
|
|
||||||
FieldLabel columnLabel = new FieldLabel(flowButton, label);
|
FieldLabel columnLabel = new FieldLabel(flowButton, label);
|
||||||
columnLabel.setId(col.getColumnId());
|
columnLabel.setId(col.getColumnId());
|
||||||
comboDefColumn.setVisible(false);
|
comboReferenceDefColumn.setVisible(false);
|
||||||
|
|
||||||
return columnLabel;
|
return columnLabel;
|
||||||
}
|
}
|
||||||
|
@ -416,7 +431,7 @@ public class TargetColumnsSelectionPanel extends FramedPanel implements
|
||||||
@Override
|
@Override
|
||||||
public void failed(String reason, String detail) {
|
public void failed(String reason, String detail) {
|
||||||
Log.debug("Connection Failed: " + reason + " " + detail);
|
Log.debug("Connection Failed: " + reason + " " + detail);
|
||||||
UtilsGXT3.alert("Error on connect", reason);
|
UtilsGXT3.alert(msgsCommon.error(), reason);
|
||||||
btnConnect.enable();
|
btnConnect.enable();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -435,13 +450,16 @@ public class TargetColumnsSelectionPanel extends FramedPanel implements
|
||||||
} else {
|
} else {
|
||||||
if (caught instanceof TDGWTIsLockedException) {
|
if (caught instanceof TDGWTIsLockedException) {
|
||||||
Log.error(caught.getLocalizedMessage());
|
Log.error(caught.getLocalizedMessage());
|
||||||
parent.showErrorAndHide("Error Locked",
|
parent.showErrorAndHide(
|
||||||
caught.getLocalizedMessage(), "", caught);
|
msgsCommon.errorLocked(),
|
||||||
|
caught.getLocalizedMessage(), "",
|
||||||
|
caught);
|
||||||
} else {
|
} else {
|
||||||
Log.debug("Error retrieving columns: "
|
Log.debug("Error retrieving columns: "
|
||||||
+ caught.getLocalizedMessage());
|
+ caught.getLocalizedMessage());
|
||||||
parent.showErrorAndHide("Error retrieving columns",
|
parent.showErrorAndHide(msgsCommon.error(),
|
||||||
"Error retrieving columns on server.",caught.getLocalizedMessage(), caught);
|
msgs.errorRetrievingColumnsFixed(),
|
||||||
|
caught.getLocalizedMessage(), caught);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -494,7 +512,7 @@ public class TargetColumnsSelectionPanel extends FramedPanel implements
|
||||||
String columnId = fieldLabel.getId();
|
String columnId = fieldLabel.getId();
|
||||||
Log.debug("Field id:" + columnId);
|
Log.debug("Field id:" + columnId);
|
||||||
ColumnData colCurrent = null;
|
ColumnData colCurrent = null;
|
||||||
for (ColumnData col : parent.extractCodelistSession
|
for (ColumnData col : parent.getExtractCodelistSession()
|
||||||
.getSourceColumns()) {
|
.getSourceColumns()) {
|
||||||
if (col.getColumnId().compareTo(columnId) == 0) {
|
if (col.getColumnId().compareTo(columnId) == 0) {
|
||||||
colCurrent = col;
|
colCurrent = col;
|
||||||
|
@ -503,7 +521,7 @@ public class TargetColumnsSelectionPanel extends FramedPanel implements
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (colCurrent == null) {
|
if (colCurrent == null) {
|
||||||
UtilsGXT3.alert("Error creating form", "Error creating form!");
|
UtilsGXT3.alert(msgsCommon.error(), msgs.errorCreatingForm());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -524,8 +542,8 @@ public class TargetColumnsSelectionPanel extends FramedPanel implements
|
||||||
CheckBox checkNew = (CheckBox) flowButton
|
CheckBox checkNew = (CheckBox) flowButton
|
||||||
.getItemByItemId(CHECK_NEW);
|
.getItemByItemId(CHECK_NEW);
|
||||||
if (checkNew == null) {
|
if (checkNew == null) {
|
||||||
UtilsGXT3.alert("Error creating form",
|
UtilsGXT3.alert(msgsCommon.error(),
|
||||||
"Error creating form for check radio!");
|
msgs.errorCreatingFormForCheckRadio());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -545,7 +563,8 @@ public class TargetColumnsSelectionPanel extends FramedPanel implements
|
||||||
.getItemByItemId(COMBO_COLUMN);
|
.getItemByItemId(COMBO_COLUMN);
|
||||||
ColumnData columnData = comboColumn.getCurrentValue();
|
ColumnData columnData = comboColumn.getCurrentValue();
|
||||||
if (columnData == null) {
|
if (columnData == null) {
|
||||||
UtilsGXT3.alert("Attention", "Fill all column!");
|
UtilsGXT3.alert(msgsCommon.attention(),
|
||||||
|
msgs.attentionFillAllColumn());
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
ExtractCodelistTargetColumn extractCodelistTargetC = new ExtractCodelistTargetColumn(
|
ExtractCodelistTargetColumn extractCodelistTargetC = new ExtractCodelistTargetColumn(
|
||||||
|
@ -559,7 +578,7 @@ public class TargetColumnsSelectionPanel extends FramedPanel implements
|
||||||
}
|
}
|
||||||
|
|
||||||
Log.debug("UpdateExtractCodelistSession:" + targetColumns);
|
Log.debug("UpdateExtractCodelistSession:" + targetColumns);
|
||||||
parent.extractCodelistSession.setTargetColumns(targetColumns);
|
parent.getExtractCodelistSession().setTargetColumns(targetColumns);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,9 +3,11 @@ package org.gcube.portlets.user.td.extractcodelistwidget.client.grid;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import org.gcube.portlets.user.td.extractcodelistwidget.client.ExtractCodelistMessages;
|
||||||
import org.gcube.portlets.user.td.gwtservice.client.rpc.TDGWTServiceAsync;
|
import org.gcube.portlets.user.td.gwtservice.client.rpc.TDGWTServiceAsync;
|
||||||
import org.gcube.portlets.user.td.gwtservice.shared.exception.TDGWTIsLockedException;
|
import org.gcube.portlets.user.td.gwtservice.shared.exception.TDGWTIsLockedException;
|
||||||
import org.gcube.portlets.user.td.gwtservice.shared.exception.TDGWTSessionExpiredException;
|
import org.gcube.portlets.user.td.gwtservice.shared.exception.TDGWTSessionExpiredException;
|
||||||
|
import org.gcube.portlets.user.td.widgetcommonevent.client.CommonMessages;
|
||||||
import org.gcube.portlets.user.td.widgetcommonevent.client.event.SessionExpiredEvent;
|
import org.gcube.portlets.user.td.widgetcommonevent.client.event.SessionExpiredEvent;
|
||||||
import org.gcube.portlets.user.td.widgetcommonevent.client.type.SessionExpiredType;
|
import org.gcube.portlets.user.td.widgetcommonevent.client.type.SessionExpiredType;
|
||||||
import org.gcube.portlets.user.td.widgetcommonevent.shared.tr.column.ColumnData;
|
import org.gcube.portlets.user.td.widgetcommonevent.shared.tr.column.ColumnData;
|
||||||
|
@ -49,20 +51,21 @@ 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 int GRIDHEIGHT = 360;
|
private static final int GRIDHEIGHT = 360;
|
||||||
|
|
||||||
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;
|
||||||
|
|
||||||
private final Grid<ColumnData> grid;
|
private final Grid<ColumnData> grid;
|
||||||
|
|
||||||
|
private ExtractCodelistMessages msgs;
|
||||||
|
private CommonMessages msgsCommon;
|
||||||
private WizardCard parent;
|
private WizardCard parent;
|
||||||
|
|
||||||
public ColumnDataGridPanel(WizardCard parent) {
|
public ColumnDataGridPanel(WizardCard parent) {
|
||||||
this.parent = parent;
|
this.parent = parent;
|
||||||
Log.debug("ColumnDataGridPanel");
|
Log.debug("ColumnDataGridPanel");
|
||||||
setHeadingText("Columns");
|
initMessages();
|
||||||
|
|
||||||
|
setHeadingText(msgs.columns());
|
||||||
|
|
||||||
ColumnConfig<ColumnData, String> labelCol = new ColumnConfig<ColumnData, String>(
|
ColumnConfig<ColumnData, String> labelCol = new ColumnConfig<ColumnData, String>(
|
||||||
props.label());
|
props.label());
|
||||||
|
@ -126,6 +129,11 @@ public class ColumnDataGridPanel extends ContentPanel implements
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected void initMessages(){
|
||||||
|
msgsCommon = GWT.create(CommonMessages.class);
|
||||||
|
msgs = GWT.create(ExtractCodelistMessages.class);
|
||||||
|
}
|
||||||
|
|
||||||
public Grid<ColumnData> getGrid() {
|
public Grid<ColumnData> getGrid() {
|
||||||
return grid;
|
return grid;
|
||||||
}
|
}
|
||||||
|
@ -144,12 +152,12 @@ public class ColumnDataGridPanel extends ContentPanel implements
|
||||||
} else {
|
} else {
|
||||||
if (caught instanceof TDGWTIsLockedException) {
|
if (caught instanceof TDGWTIsLockedException) {
|
||||||
Log.error(caught.getLocalizedMessage());
|
Log.error(caught.getLocalizedMessage());
|
||||||
UtilsGXT3.alert("Error Locked",
|
UtilsGXT3.alert(msgsCommon.errorLocked(),
|
||||||
caught.getLocalizedMessage());
|
caught.getLocalizedMessage());
|
||||||
} else {
|
} else {
|
||||||
Log.error("No columns loaded: "
|
Log.error("No columns loaded: "
|
||||||
+ caught.getLocalizedMessage());
|
+ caught.getLocalizedMessage());
|
||||||
UtilsGXT3.alert("Error", "No columns loaded: "
|
UtilsGXT3.alert(msgsCommon.error(), msgs.errorNoColumnLoadedFixed()
|
||||||
+ caught.getLocalizedMessage());
|
+ caught.getLocalizedMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
<module rename-to='ExtractCodelistWizardTD'>
|
<module rename-to='ExtractCodelistWizardTD'>
|
||||||
<!-- 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?) -->
|
||||||
|
@ -10,7 +11,7 @@
|
||||||
<!-- Inherit the default GWT style sheet. You can change -->
|
<!-- Inherit the default GWT style sheet. You can change -->
|
||||||
<!-- the theme of your GWT application by uncommenting -->
|
<!-- the theme of your GWT application by uncommenting -->
|
||||||
<!-- any one of the following lines. -->
|
<!-- any one of the following lines. -->
|
||||||
<inherits name='com.google.gwt.user.theme.standard.Standard' />
|
<!-- <inherits name='com.google.gwt.user.theme.standard.Standard' /> -->
|
||||||
<!-- <inherits name='com.google.gwt.user.theme.chrome.Chrome'/> -->
|
<!-- <inherits name='com.google.gwt.user.theme.chrome.Chrome'/> -->
|
||||||
<!-- <inherits name='com.google.gwt.user.theme.dark.Dark'/> -->
|
<!-- <inherits name='com.google.gwt.user.theme.dark.Dark'/> -->
|
||||||
|
|
||||||
|
@ -25,7 +26,17 @@
|
||||||
<inherits name='org.gcube.portlets.user.td.monitorwidget.MonitorWidgetTD' />
|
<inherits name='org.gcube.portlets.user.td.monitorwidget.MonitorWidgetTD' />
|
||||||
|
|
||||||
<!-- Specify the app entry point class. -->
|
<!-- Specify the app entry point class. -->
|
||||||
<!-- <entry-point class='org.gcube.portlets.user.SDMXImportWizardTD.client.SDMXImportWizardTDEntry' /> -->
|
<!-- <entry-point class='org.gcube.portlets.user.SDMXImportWizardTD.client.SDMXImportWizardTDEntry'
|
||||||
|
/> -->
|
||||||
|
|
||||||
|
<!-- <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' />
|
||||||
|
|
|
@ -0,0 +1,42 @@
|
||||||
|
extractCodelistWizardHead = Extract Codelist
|
||||||
|
extractCodelistDetailCardHead = Codelist Detail
|
||||||
|
extractCodelistDetailsCardFormHead = Details
|
||||||
|
infoFieldSetHead = Information
|
||||||
|
nameFieldEmptyText = Enter a name...
|
||||||
|
nameFieldLabel = Name
|
||||||
|
nameFieldToolTip = Enter the name of new codelist extracted
|
||||||
|
automaticallyAttachTrueLabel = True
|
||||||
|
automaticallyAttachFalseLabel = False
|
||||||
|
attachFieldLabel = Attach
|
||||||
|
attachFieldToolTip = Select true if you want automatically attach the generated codelist
|
||||||
|
comboAttachToColumnEmptyText = Select a column...
|
||||||
|
comboAttachToColumnLabel = Attach To Column
|
||||||
|
comboAttachToColumnToolTip = Select the column to be attached to extracted codelist
|
||||||
|
attentionFillNameField = Fill name fields!
|
||||||
|
attentionSelectColumnToAttachCodelist = Select column to attach codelist!
|
||||||
|
sourceColumnsSelectionCardHead = Source Column
|
||||||
|
attentionNoColumnSelected = No column selected!
|
||||||
|
targetColumnsSelectionCardHead = Target Column
|
||||||
|
btnConnectTitle = Connect Codelist
|
||||||
|
btnDisconnectTitle = Disconnect Codelist
|
||||||
|
comboDefNewColumnEmptyText = Select a Column...
|
||||||
|
comboReferenceDefColumnEmptyText = Select a new column...
|
||||||
|
comboColumnEmptyText = Select from Codelist...
|
||||||
|
checkNewLabel = New
|
||||||
|
errorRetrievingColumnsFixed = Error retrieving columns on server.
|
||||||
|
errorCreatingForm = Error creating form!
|
||||||
|
errorCreatingFormForCheckRadio = Error creating form for check radio!
|
||||||
|
attentionFillAllColumn = Fill all column!
|
||||||
|
errorInExtractCodelistFixed = An error occurred in extract codelist.
|
||||||
|
errorAnErrorOccurredSettingCollateralTableFinalFixed = An error occurred setting collateral table final.
|
||||||
|
errorNoCollateralIdRetrieved = No collateral id retrieved
|
||||||
|
errorCollateralIdIsNull = Collateral id is null
|
||||||
|
errorAnErrorOccurredRetrievingColumnOnCollateralTableFixed = An error occurred retrieving column on collateral table.
|
||||||
|
errorAnErrorOccurredNoLabelRetrievedForAttachColumnFixed = An error occured no label retrieved for attach column
|
||||||
|
errorNoLabelRetrievedForAttachColumn = No label retrieved for attach column
|
||||||
|
errorAnErrorOccurredNoAttachColumnMatchFixed = An error occurred no attach column match
|
||||||
|
errorNoAttachColumnMatch = No attach column match
|
||||||
|
errorAnErrorOccurredOnStartChangeColumnTypeFixed = An error occurred on start change column type.
|
||||||
|
codelistAvailableInResources = The Codelists is available in the list of yours tabular resources
|
||||||
|
columns = Columns
|
||||||
|
errorNoColumnLoadedFixed = No column loaded:
|
|
@ -0,0 +1,42 @@
|
||||||
|
extractCodelistWizardHead = Estrai Codelist
|
||||||
|
extractCodelistDetailCardHead = Codelist Dettaglio
|
||||||
|
extractCodelistDetailsCardFormHead = Dettagli
|
||||||
|
infoFieldSetHead = Info
|
||||||
|
nameFieldEmptyText = Inserisci un nome...
|
||||||
|
nameFieldLabel = Nome
|
||||||
|
nameFieldToolTip = Inserisci il nome della nuova codelist estratta
|
||||||
|
automaticallyAttachTrueLabel = Vero
|
||||||
|
automaticallyAttachFalseLabel = Falso
|
||||||
|
attachFieldLabel = Aggancia
|
||||||
|
attachFieldToolTip = Seleziona vero se vuoi automaticamente agganciare la codelist generata
|
||||||
|
comboAttachToColumnEmptyText = Seleziona una colonna...
|
||||||
|
comboAttachToColumnLabel = Aggancia alla Colonna
|
||||||
|
comboAttachToColumnToolTip = Seleziona la colonna per essere agganciata alla codelist estratta
|
||||||
|
attentionFillNameField = Riempi il campo nome!
|
||||||
|
attentionSelectColumnToAttachCodelist = Seleziona la colonna per essere agganciata alla codelist!
|
||||||
|
sourceColumnsSelectionCardHead = Colonna Sorgente
|
||||||
|
attentionNoColumnSelected = Nessuna colonna selezionata!
|
||||||
|
targetColumnsSelectionCardHead = Colonna Target
|
||||||
|
btnConnectTitle = Connetti Codelist
|
||||||
|
btnDisconnectTitle = Disconnetti Codelist
|
||||||
|
comboDefNewColumnEmptyText = Seleziona una colonna...
|
||||||
|
comboReferenceDefColumnEmptyText = Seleziona una nuova colonna...
|
||||||
|
comboColumnEmptyText = Seleziona dalla codelist...
|
||||||
|
checkNewLabel = Nuovo
|
||||||
|
errorRetrievingColumnsFixed = Errore recuperando le colonne sul server.
|
||||||
|
errorCreatingForm = Errore creando la form!
|
||||||
|
errorCreatingFormForCheckRadio = Errore creando la form per i radio check!
|
||||||
|
attentionFillAllColumn = Riempi tutte le colonne!
|
||||||
|
errorInExtractCodelistFixed = Un errore è stato generato nell''estrazione della codelist.
|
||||||
|
errorAnErrorOccurredSettingCollateralTableFinalFixed = Un errore è stato generato settando la collateral table a finale.
|
||||||
|
errorNoCollateralIdRetrieved = Nessun collateral id recuperato
|
||||||
|
errorCollateralIdIsNull = Collateral id è null
|
||||||
|
errorAnErrorOccurredRetrievingColumnOnCollateralTableFixed = Un errore è stato generato recuperando la colonna su collateral table.
|
||||||
|
errorAnErrorOccurredNoLabelRetrievedForAttachColumnFixed = Errore nessuna etichetta recuperata per agganciare la colonna
|
||||||
|
errorNoLabelRetrievedForAttachColumn = Nessuna etichetta recuperata per agganciare la colonna
|
||||||
|
errorAnErrorOccurredNoAttachColumnMatchFixed = Errore nessuna colonna di aggancio combacia
|
||||||
|
errorNoAttachColumnMatch = Nessuna colonna di aggancio combacia
|
||||||
|
errorAnErrorOccurredOnStartChangeColumnTypeFixed = Un errore è stato generato nel cambio tipo di colonna.
|
||||||
|
codelistAvailableInResources = La Codelist è disponibile nella lista delle tabular resources
|
||||||
|
columns = Colonne
|
||||||
|
errorNoColumnLoadedFixed = Nessuna colonna caricata:
|
|
@ -0,0 +1,42 @@
|
||||||
|
extractCodelistWizardHead = Extract Codelist
|
||||||
|
extractCodelistDetailCardHead = Codelist Detail
|
||||||
|
extractCodelistDetailsCardFormHead = Details
|
||||||
|
infoFieldSetHead = Information
|
||||||
|
nameFieldEmptyText = Enter a name...
|
||||||
|
nameFieldLabel = Name
|
||||||
|
nameFieldToolTip = Enter the name of new codelist extracted
|
||||||
|
automaticallyAttachTrueLabel = True
|
||||||
|
automaticallyAttachFalseLabel = False
|
||||||
|
attachFieldLabel = Attach
|
||||||
|
attachFieldToolTip = Select true if you want automatically attach the generated codelist
|
||||||
|
comboAttachToColumnEmptyText = Select a column...
|
||||||
|
comboAttachToColumnLabel = Attach To Column
|
||||||
|
comboAttachToColumnToolTip = Select the column to be attached to extracted codelist
|
||||||
|
attentionFillNameField = Fill name fields!
|
||||||
|
attentionSelectColumnToAttachCodelist = Select column to attach codelist!
|
||||||
|
sourceColumnsSelectionCardHead = Source Column
|
||||||
|
attentionNoColumnSelected = No column selected!
|
||||||
|
targetColumnsSelectionCardHead = Target Column
|
||||||
|
btnConnectTitle = Connect Codelist
|
||||||
|
btnDisconnectTitle = Disconnect Codelist
|
||||||
|
comboDefNewColumnEmptyText = Select a Column...
|
||||||
|
comboReferenceDefColumnEmptyText = Select a new column...
|
||||||
|
comboColumnEmptyText = Select from Codelist...
|
||||||
|
checkNewLabel = New
|
||||||
|
errorRetrievingColumnsFixed = Error retrieving columns on server.
|
||||||
|
errorCreatingForm = Error creating form!
|
||||||
|
errorCreatingFormForCheckRadio = Error creating form for check radio!
|
||||||
|
attentionFillAllColumn = Fill all column!
|
||||||
|
errorInExtractCodelistFixed = An error occurred in extract codelist.
|
||||||
|
errorAnErrorOccurredSettingCollateralTableFinalFixed = An error occurred setting collateral table final.
|
||||||
|
errorNoCollateralIdRetrieved = No collateral id retrieved
|
||||||
|
errorCollateralIdIsNull = Collateral id is null
|
||||||
|
errorAnErrorOccurredRetrievingColumnOnCollateralTableFixed = An error occurred retrieving column on collateral table.
|
||||||
|
errorAnErrorOccurredNoLabelRetrievedForAttachColumnFixed = An error occured no label retrieved for attach column
|
||||||
|
errorNoLabelRetrievedForAttachColumn = No label retrieved for attach column
|
||||||
|
errorAnErrorOccurredNoAttachColumnMatchFixed = An error occurred no attach column match
|
||||||
|
errorNoAttachColumnMatch = No attach column match
|
||||||
|
errorAnErrorOccurredOnStartChangeColumnTypeFixed = An error occurred on start change column type.
|
||||||
|
codelistAvailableInResources = The Codelists is available in the list of yours tabular resources
|
||||||
|
columns = Columns
|
||||||
|
errorNoColumnLoadedFixed = No column loaded:
|
|
@ -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