Friday, September 27, 2013

Re: how to align composite cell element vertically

Thanks :) Yes, I have implemented it and resolved this issue.

public void render( context,
SearchItem value, SafeHtmlBuilder sb) {
for (HasCell<SearchItem, ?> hasCell : searchCells) {
      render(context, value, sb, hasCell);
  protected <X> void render(Context context, SearchItem value,
      SafeHtmlBuilder sb, HasCell<SearchItem, X> hasCell) {
    Cell<X> cell = hasCell.getCell();
    sb.appendHtmlConstant("<div style='display:block;padding-bottom:5px;'>");
    cell.render(context, hasCell.getValue(value), sb);

On Friday, 27 September 2013 18:27:34 UTC+5:30, Thomas Broyer wrote:
The default implementation of render(Context,Element,C) in CompositeCell is:

    for (HasCell<C, ?> hasCell : hasCells) {
      render(context, value, sb, hasCell);

You can easily override it with code that wraps each call to render(Context,C,SafeHtmlBuilder,HasCell) into a <div>, or builds a <table>, or whatever.

On Friday, September 27, 2013 1:51:04 PM UTC+2, Bhumika Thaker wrote:
Hi All,

I want to show CompositeCell 's  cells vertically as It's coming horizontally.

How can I do it?


You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment