/**
* Set the text content of the badge, remove all other content.
*
* @param text
* String value.
*/
public void setText(String text) {
this.text = text;
add(new Span(text));
}
Doesn't remove old content as stated in javadoc,
so we just get more spans and texts added every time we call badge.setText(..).
In version 2.2.2 (V23 branch)
Doesn't remove old content as stated in javadoc, so we just get more spans and texts added every time we call
badge.setText(..)
.