|
|
|
@ -41,7 +41,7 @@ public class RelazioneScavoView extends Composite {
|
|
|
|
|
Paragraph abstractParagraphEng;
|
|
|
|
|
|
|
|
|
|
@UiField
|
|
|
|
|
Button linkAbstractEng;
|
|
|
|
|
Button linkAbstractLanguage;
|
|
|
|
|
|
|
|
|
|
private CustomFlexTable customTable = new CustomFlexTable();
|
|
|
|
|
|
|
|
|
@ -52,9 +52,9 @@ public class RelazioneScavoView extends Composite {
|
|
|
|
|
if(abstractDV.getAbstractSectionIta()!=null) {
|
|
|
|
|
abstractParagraphIta.setText(abstractDV.getAbstractSectionIta());
|
|
|
|
|
if(abstractDV.getAbstractSectionEng()!=null) {
|
|
|
|
|
linkAbstractEng.setVisible(true);
|
|
|
|
|
linkAbstractLanguage.setVisible(true);
|
|
|
|
|
abstractParagraphEng.setText(abstractDV.getAbstractSectionEng());
|
|
|
|
|
linkAbstractEng.setText(SHOW_ENGLISH_DESCR);
|
|
|
|
|
linkAbstractLanguage.setText(SHOW_ENGLISH_DESCR);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -63,18 +63,19 @@ public class RelazioneScavoView extends Composite {
|
|
|
|
|
customTable.addNextKeyValues("Responsabili", relazioneScavoDV.getResponsabili(), GeoportalDataViewerConstants.NEW_LINE_BR);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
linkAbstractEng.addClickHandler(new ClickHandler() {
|
|
|
|
|
linkAbstractLanguage.addClickHandler(new ClickHandler() {
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void onClick(ClickEvent event) {
|
|
|
|
|
GWT.log("Clicked");
|
|
|
|
|
if(abstractParagraphIta.isVisible()) {
|
|
|
|
|
linkAbstractLanguage.setText(SHOW_ITALIAN_DESCR);
|
|
|
|
|
abstractParagraphIta.setVisible(false);
|
|
|
|
|
abstractParagraphEng.setVisible(true);
|
|
|
|
|
linkAbstractEng.setText(SHOW_ENGLISH_DESCR);
|
|
|
|
|
}else {
|
|
|
|
|
linkAbstractLanguage.setText(SHOW_ENGLISH_DESCR);
|
|
|
|
|
abstractParagraphIta.setVisible(true);
|
|
|
|
|
abstractParagraphEng.setVisible(false);
|
|
|
|
|
linkAbstractEng.setText(SHOW_ITALIAN_DESCR);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|