package org.ovirt.engine.ui.webadmin.widget.editor;

import org.ovirt.engine.ui.webadmin.uicommon.model.ModelListTreeViewModel;
import org.ovirt.engine.ui.webadmin.uicommon.model.TreeNodeModel;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.cellview.client.CellTree;

/**
 * A tree for {@link org.ovirt.engine.ui.uicommonweb.models.common.SelectionTreeNodeModel} Nodes
 */
public class EntityModelCellTree<T, M extends TreeNodeModel<T, M>> extends CellTree {
    interface Resources {
        CellTree.Resources res = GWT.create(CellTree.BasicResources.class);
    }

    public EntityModelCellTree() {
        this(Resources.res);
    }

    public EntityModelCellTree(CellTree.Resources res) {
        super(new ModelListTreeViewModel<T, M>(), null, res);
    }

}
