Ah I see ;-)
However I somehow can't access the styles and the span respectively.
The render method of the SelectionCell renders the <select> tag
directly (I suppose the span is rendered by the CellTable itself).
I solved my problem by extending the SelectionCell and storing a
isVible Flag in it and then adding an additional span around it. The
class looks like this:
public class HideableSelectionCell extends SelectionCell{
protected boolean isVisible = true;
public HideableSelectionCell(List<String> options) {
super(options);
}
@Override
public void render(String value, Object key, SafeHtmlBuilder sb) {
if (!isVisible)
sb.appendHtmlConstant("<span style=\"display:none\">");
super.render(value, key, sb);
if (!isVisible)
sb.appendHtmlConstant("</span>");
}
public void setIsVisible(boolean isVisible) {
this.isVisible = isVisible;
}
public boolean getIsVisible(){
return this.isVisible;
}
}
And in the render method of the compositeCell I set the isVisible Flag
of the cell before rendering it.
Is that the right approach or is there some other way to access the
Cell Span's Style directly ?
Sorry for being so persistent ;-)
thanks
Uemit
On Nov 5, 5:03 pm, John LaBanca <
jlaba...@google.com> wrote:
> Sorry, I was referring to the CSS property display, and I meant "none", not
> null.
>
> Rendering the following will cause the span to be completely hidden and take
> up no space.
> <span style=\"display:none;\">My cell content</span>
>
> Thanks,
> John LaBanca
> > > >
google-web-tool...@googlegroups.com<google-web-toolkit%2Bunsubs
cr...@googlegroups.com><google-web-toolkit%2Bunsubs