In a gwt project I have a CellTree with custom cells. For easier testing I would like to add IDs for each of the cells. I know I can make 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 don't have to burn the IDs in the code. Is there a way to do that?