2014-01-31 79 views
0

這裏是在第一列而不是第一行中顯示GWT CellTable標頭的方法嗎?這是因爲我有太多的欄目,太冗長的數據,我相信他們可以更好的顯示格式爲:作爲列的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| 

我不希望因爲我需要它CellTable提供可編輯的細胞在使用FlexTable。任何幫助將深表感謝。

+0

我不認爲這類特徵在GWT存在按知道。然而,你可以實現你自己的自定義小部件來做同樣的事情 –

回答

0

您可以創建一個自定義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 
    } 

    } 
+0

你能更具體一點嗎?這裏有什麼'dataGrid'?你的回答不是很清楚。 – aa8y