Add style to cellTable using this  CellTable.Resources interface.
Pass the CellTable.Resources object into CellTable constructor.
Change the property in CellTableStyle.css file as you wish.

S. Abraham
www.DataStoreGwt.com
Persist objects directly in Google App Engine

//In Java class

interface TableResources extends CellTable.Resources
  {
    @Source(value = { CellTable.Style.DEFAULT_CSS,
"CellTableStyle.css" })
    CellTable.Style cellTableStyle();
  }

CellTable cellTable= new CellTable<Your_Domain_class>(15,
GWT.<TableResources> create(TableResources.class));

//add your cellTable column.
-----------------------------------------------------------------------------------
end java
class------------------------------------------------------------

//CellTableStyle.css file

.cellTableCell {
    height: 25px;
    padding-left: 2px;
    padding-right: 2px;
    background-color: red;
}

.cellTableHeader {
    height: 25px;
    border-bottom: 2px solid #60a6bf;
    padding: 3px 25px;

}

.cellTableEvenRow {
        background: #fffaf0;
        border:solid 1px red;
}

.cellTableEvenRowCell {
    border:solid 1px green;
}

.cellTableOddRow {
    background: #fff8e8;
}

.cellTableOddRowCell {
     border:solid 1px red;
}

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to