DataGrid and CheckBoxCell
Hi,
I'm just exploring the DataGrid and have some questions about the
CheckboxCell.
In the Grid are 4 CheckboxCells Col1, Col2, Col3 and Col4.
When I check the CheckBox in Col1 I want that the Checkbox in Col2 ist
enabled. But this doesn't work because there are no methods like
setEnabled( false) in the CheckBoxCell Class.
Here an example of my code
CheckboxCell Col1 = new Column<AnObject, Boolean>(new
CheckboxCell(true, true )) {
@Override
public Boolean getValue(AnObject object)
{
return object.getAnBoolean();
}
};
Col1 .setFieldUpdater(new FieldUpdater<AnObject, Boolean>() {
@Override
public void update(int index, AnObject object, Boolean value)
{
// ==========> what is to do to set the Checkbox in Col2 enabled /
disabled, when the Checkbox is checked / unchecked??
}
});
How can I do this.
I didnt't find an example in the GWT showcase that solves my problem.
Has anybody an example how to use the DataGrid interactive?
Thanks.
Mario
--
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