Re: Apply style to header, row, cell in cellTable
Thanks, working.
On Oct 14, 6:16 pm, Sudhakar Abraham <s.abra...@datastoregwt.com>
wrote:
> 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. Abrahamwww.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 google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home