Sunday, February 9, 2014

Re: can we make column of celltable flow horizontally rather than vertically?

Don't use celltable, but custome CellList, that will be fine

public class HorizontalCellList<T> extends CellList<T> {      public HorizontalCellList(Cell<T> cell) {      super(cell);    }      @Override    protected void renderRowValues(        SafeHtmlBuilder sb, List<T> values, int start, SelectionModel<? super T> selectionModel) {      SafeHtmlBuilder filteredSB = new SafeHtmlBuilder();      super.renderRowValues(filteredSB, values, start, selectionModel);      SafeHtml safeHtml = filteredSB.toSafeHtml();      String filtered = safeHtml.asString().replaceAll("<div", "<span").replaceAll("div>","span>");      sb.append(SafeHtmlUtils.fromTrustedString(filtered));    }  }

On Monday, February 10, 2014 9:38:48 AM UTC+11, Tom wrote:

ok, here is my problem, cos the space is limited, i want to make my celltable (has 1 column naming Page) flows horizontally.

Traditionally a 1 column celltable look like this:

Page  1  2  3  ....  

I want to make it look this this.

Page 1 2 3 ......  

How to do that?

--
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 google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment