簡體   English   中英

GWT CellTable標頭作為一列

[英]GWT CellTable header as a column

這是在第一列而不是第一行中顯示GWT CellTable標頭的方法嗎? 這是因為我有太多的列,並且數據太長,並且我相信可以用這種格式更好地顯示它們:

|Header 01|And we will have the data for header 01 here|
|Header 02|And we will have the data for header 02 here|
|Header 03|And we will have the data for header 03 here|
|Header 04|And we will have the data for header 04 here|
|Header 05|And we will have the data for header 05 here|
|Header 06|And we will have the data for header 06 here|
|Header 07|And we will have the data for header 07 here|
|Header 08|And we will have the data for header 08 here|
|Header 09|And we will have the data for header 09 here|
|Header 10|And we will have the data for header 10 here|
|Header 11|And we will have the data for header 11 here|
|Header 12|And we will have the data for header 12 here|
|Header 13|And we will have the data for header 13 here|
|Header 14|And we will have the data for header 14 here|
|Header 15|And we will have the data for header 15 here|

我不想使用FlexTable,因為我需要CellTable提供的可編輯單元格。 任何幫助將不勝感激。

您可以為此創建一個自定義CellTableBuilder。 在展示櫃中,您可以找到一個示例http://gwt.googleusercontent.com/samples/Showcase/Showcase.html#!CwCustomDataGrid

  /**
   * Renders the data rows that display each contact in the table.
   */
  private class CustomTableBuilder extends AbstractCellTableBuilder<ContactInfo> {
    public CustomTableBuilder() {
      super(dataGrid);
    }

    @SuppressWarnings("deprecation")
    @Override
    public void buildRowImpl(ContactInfo rowValue, int absRowIndex) {
      //Must be implemented
    }

  }

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM