When using a CellTable that displays contacts you may have a column
that displays the name for each contact.
Thus this column would be defined as

Column<Contact, String> implements HasCell<Contact, String>

So T is the type of objects you want to display (the rows, e.g.
Contact, Car, ...) and C is the type of the property of T that will be
shown in a specific column (e.g. the contacts name (=String), the
contacts birthday (=Date))

So C and T have the same meaning in Column and HasCell.



On 3 Feb., 21:37, zixzigma <[email protected]> wrote:
> I am very confused about HasCell<T,C> and Column<T,C>.
>
> I am using Cell types available by GWT (TextCell, ActionCell etc), and I can
> get them to work.
>
> However, when I try to create custom Cell for CellTable,
> I realize I do not fully understand what I'm doing,
> and the confusion is from not fully understanding difference between C and
> T.
>
> could you please explain T and C, in context of having a CellTable,
> displaying a Contact object ?
> Contact is T or C ? and if its C then what is T and vice versa ?
>
> Thank You
>
> in Column<T,C>
>  * @param <T> the row type
>  * @param <C> the column type
>
> in HasCell<T,C>
>  * @param <T> the underlying data type
>  * @param <C> the cell data type
>
> (do not fully understand difference between T and C, very confused,
> what is T ? what is C ?)

-- 
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