@Override
protected void setSectionTitle() {
if(getEntity() != null){
- this.setText(getHeading() + ": " + getEntity().getAuthorshipCache());
+ String title = getHeading() + ": " + getEntity().getAuthorshipCache();
+ // we have to duplicate ampersands otherwise they are treated as
+ // mnenomic (see Label.setText() documentation)
+ // see also #4302
+ title = title.replace("&", "&&");
+ this.setText(title);
}
}
setEntity(name);
}
+ /* (non-Javadoc)
+ * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#setSectionTitle()
+ */
+ @Override
+ protected void setSectionTitle() {
+ super.setSectionTitle();
+ String title = getText();
+ // we have to duplicate ampersands otherwise they are treated as
+ // mnenomic (see Label.setText() documentation)
+ // see also #4302
+ title = title.replace("&", "&&");
+ setText(title);
+ }
+
+
/* (non-Javadoc)
* @see eu.etaxonomy.taxeditor.section.ITaxonDetailSection#getTaxon(eu.etaxonomy.cdm.model.taxon.TaxonBase)
*/
return formFactory.createTaxonBaseDetailElement(parentElement, style);
}
+ /* (non-Javadoc)
+ * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#setSectionTitle()
+ */
+ @Override
+ protected void setSectionTitle() {
+ super.setSectionTitle();
+ String title = getText();
+ // we have to duplicate ampersands otherwise they are treated as
+ // mnenomic (see Label.setText() documentation)
+ // see also #4302
+ title = title.replace("&", "&&");
+ setText(title);
+ }
+
}
*/
protected void updateElement() {
String title = CdmUtils.Nz(getTitle());
- // we have to duplicate ampersands otherwise they are treated as
- // mnenomic (see Label.setText() documentation)
- title = title.replace("&", "&&");
text.setText(title); // title can be null
if (isEditable) {
updateButtonStates();