In a gwt project, I have a CellTree with custom cells. For easier testing, I would like to add identifiers for each of the cells. I know I can do it like this:
@Override public void render(Context context,TreeElement value, SafeHtmlBuilder sb) { if (value == null) {return;} sb.appendHtmlConstant("<div id=\""+value.getID()+"\">" + value.getName()) + "</div>"; }
But I would like to use something similar to EnsureDebugID (), so I do not need to write identifiers in the code. Is there any way to do this?
source share