* @param checked <code>true</code> to check
*/
public void setChecked(boolean checked) {
this.checked = checked;
if (rendered) {
if (fireEvent(Events.BeforeCheckChange, new TreeEvent(tree, this))) {
ui.onCheckChange(checked);
if (checked) {
switch (tree.getCheckStyle()) {
case PARENTS:
TreeItem p = getParentItem();