Cell#render() renders the Cell contents as Html into the SafeHtmlBuilder.
If you create your own CustomCheckboxCell, you can render a checkbox
however you want.
You're render method would look something like the following:
void render(MyType value, Object key, SafeHtmlBuilder sb) {
if (value.isDisabled()) {
sb.appendHtmlConstant("<input type='checkbox'
disabled=disabled></input>");
} else {
sb.appendHtmlConstant("<input type='checkbox'></input>");
}
}
Thanks,
John LaBanca
[email protected]
On Tue, Dec 14, 2010 at 5:34 PM, pfc09 pfc09 <[email protected]> wrote:
> Hei! And thank you for answering.
> I read what you suggested, but I can't see how render method can help
> me...
>
>
> void *render*(C
> <http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/cell/client/Cell.html>
> value,
> java.lang.Object key,
>
> SafeHtmlBuilder
> <http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/safehtml/shared/SafeHtmlBuilder.html>
> sb)
>
>
> could you suggest me how to act?
> Thank you!
>
>
>
> 2010/12/14 Subhrajyoti Moitra <[email protected]>
>
> i think u will have to use AbstractCell and then implement the render
>> method appropriately.
>> Also see the sources for CheckBoxCell for an example.
>>
>> Thanks,
>> Subhro.
>>
>> On Tue, Dec 14, 2010 at 1:24 PM, pfc09 pfc09 <[email protected]> wrote:
>>
>>> Hi!
>>> I'm working with a CellTable and I'd like to add checkBoxCells to a
>>> column. I only would like to enable some checkBoxes, how can I disable or
>>> enable checkboxes in a cellTable?
>>>
>>> Thank you!
>>>
>>> --
>>> 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]<google-web-toolkit%[email protected]>
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>>
>>
>> --
>> 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]<google-web-toolkit%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>
> --
> 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]<google-web-toolkit%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
--
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.