/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package clips.doctor.newEMC.nodes.leaves;
import cli_fmw.main.ClipsException;
import cli_fmw.main.PageContainer;
import clips.doctor.newEMC.init.generic.DelegateNode;
import clips.delegate.doctor.RecommendationLocal;
import clips.doctor.newEMC.init.EmcTreeNode;
import clips.doctor.newEMC.init.generic.DelegateNodeInterface;
import clips.doctor.recommedation.PanelRecomendation;
import java.util.List;
/**
*
* @author petr
*/
public class RecommendationNode extends EmcTreeNode<RecommendationLocal, PanelRecomendation> {
public RecommendationNode(EmcTreeNode parent, RecommendationLocal delegate) {
super(parent, delegate);
}
@Override
protected PanelRecomendation initPanel(RecommendationLocal delegate, PageContainer pageContainer) throws ClipsException {
return new PanelRecomendation(pageContainer, delegate);
}
@Override
protected int getChildrenCount(RecommendationLocal delegate) throws ClipsException {
return 0;
}
@Override
public List<DelegateNodeInterface> getChildren(RecommendationLocal delegate) throws ClipsException {
return null;
}
@Override
protected String getStringValue(RecommendationLocal delegate) {
return delegate.toString();
}
}