Package clips.doctor.newEMC.nodes

Source Code of clips.doctor.newEMC.nodes.FollowupNode

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

package clips.doctor.newEMC.nodes;

import clips.doctor.newEMC.init.EmcTreeNode;
import clips.doctor.newEMC.*;
import cli_fmw.delegate.DelegateLine2;
import cli_fmw.main.ClipsException;
import cli_fmw.main.PageContainer;
import clips.doctor.newEMC.init.generic.DelegateNode;
import clips.delegate.doctor.DiseaseLocal;
import clips.delegate.doctor.followup.FollowupLocal;
import clips.doctor.followup.PanelFollowUp;
import clips.doctor.newEMC.init.generic.DelegateNodeInterface;
import java.util.ArrayList;
import java.util.List;

/**
*
* @author petr
*/
public class FollowupNode extends EmcTreeNode<FollowupLocal, PanelFollowUp>{

    public FollowupNode(EmcTreeNode parent, FollowupLocal delegate) {
        super(parent, delegate);
    }

    @Override
    public PanelFollowUp initPanel(FollowupLocal delegate, PageContainer pageContainer) throws ClipsException {
        return new PanelFollowUp(pageContainer, delegate);
    }

    @Override
    protected int getChildrenCount(FollowupLocal delegate) throws ClipsException {
        return delegate.getChildren().size();
    }

    @Override
    public List<DelegateNodeInterface> getChildren(FollowupLocal delegate) throws ClipsException {
        ArrayList<DelegateNodeInterface> list = new ArrayList<DelegateNodeInterface>();
        for (DiseaseLocal diseaseLocal : delegate.getChildren()) {
            list.add(diseaseLocal);
        }
        return list;
    }

    @Override
    protected String getStringValue(FollowupLocal delegate) {
        return delegate.toString();
    }

}
TOP

Related Classes of clips.doctor.newEMC.nodes.FollowupNode

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.