In your Java, list it as
@UiField
TableRowElement myRow;
or just as
@UiField
Element myRow;
This is documented at http://www.gwtproject.org/doc/latest/DevGuideUiBinder.html#Hello_World - see the SpanElement
called nameSpan or the DivElement
called root.
Edit to answer hiding issue added after question was posted:
There isn't a built-in way to hide an Element
, but you can manipulate the element in GWT/Java the same as you would in JS, something like this:
myRow.getStyle().setDisplay(Display.NONE);
Other ways to set this include visibility:hidden
, or just removing it from its parent element.