Package clips.doctor.newEMC.nodes.leaves.lists

Source Code of clips.doctor.newEMC.nodes.leaves.lists.ContraindicationListNode

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

package clips.doctor.newEMC.nodes.leaves.lists;

import cli_fmw.main.ClipsException;
import cli_fmw.main.PageContainer;
import cli_fmw.utils.autocomplete.HasColors;
import clips.doctor.contraindication.PanelContraindicationList;
import clips.doctor.newEMC.init.EmcTreeNode;
import clips.doctor.newEMC.wrappers.lists.ContraindicationList;
import java.awt.Color;

/**
*
* @author petr
*/
public class ContraindicationListNode extends EmcTreeNode<ContraindicationList, PanelContraindicationList> implements HasColors{

    public ContraindicationListNode(EmcTreeNode parent, ContraindicationList delegate) {
        super(parent, delegate);
    }

    @Override
    protected PanelContraindicationList initPanel(ContraindicationList delegate, PageContainer pageContainer) throws ClipsException {
        return new PanelContraindicationList(pageContainer, delegate.getClientLocal());
    }

    @Override
    protected String getStringValue(ContraindicationList delegate) {
        return "Непереносимость";
    }

    @Override
    public Color getForeground() {
        return Color.RED;
    }

    @Override
    public Color getBackground() {
        return null;
    }
}
TOP

Related Classes of clips.doctor.newEMC.nodes.leaves.lists.ContraindicationListNode

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.