Skip to content
Snippets Groups Projects
Commit 37d28738 authored by buczekp's avatar buczekp
Browse files

minor: improved vocabulary term tooltip

SVN: 12794
parent a8e897f7
No related branches found
No related tags found
No related merge requests found
......@@ -76,9 +76,6 @@ public class VocabularyPropertyColRenderer<T extends IEntityPropertiesHolder> ex
if (label == null)
{
return code;
} else if (code == null)
{
return label;
} else
{
return label + " [" + code + "]";
......@@ -90,14 +87,18 @@ public class VocabularyPropertyColRenderer<T extends IEntityPropertiesHolder> ex
final String code = term.getCode();
final String label = term.getLabel();
final String description = term.getDescription();
String result = "<b>" + code + "</b>";
if (label != null)
String result = "";
if (label == null)
{
result += "<b>" + code + "</b>";
} else
{
result += "<br>" + label;
result += "<b>" + label + "</b>";
result += "<br>code: " + code;
}
if (description != null)
{
result += "<br><i>" + description + "</i>";
result += "<br>description: <i>" + description + "</i>";
}
return result.replace(".", ". ");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment