/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package clips.delegate.doctor.certificate.tag.certTags;
import clips.delegate.doctor.DiseaseLocal;
import clips.delegate.doctor.certificate.CertificateLocal;
import clips.delegate.doctor.certificate.tag.TagToClass;
import cli_fmw.delegate.report.ReportParam;
import cli_fmw.main.ClipsException;
import clips.delegate.doctor.certificate.tag.interfaces.TypeMultiSelectable;
import framework.utils.PairIntStr;
import java.util.List;
/**
*
* @author vip
*/
@TagToClass(tagName="season", title="Сезон (Время года)")
public class CertTagSeason extends TypeMultiSelectable {
public static final int WINTER = 1;
public static final int SPRING = 2;
public static final int SUMMER = 3;
public static final int AUTUMN = 4;
public CertTagSeason() throws ClipsException {
}
public CertTagSeason(CertificateLocal certificateLocal, ReportParam reportParam, DiseaseLocal diseaseLocal) throws ClipsException {
super(certificateLocal, reportParam, diseaseLocal);
}
@Override
public void fillItems() throws ClipsException {
allItems.add(new PairIntStr(WINTER, "зима"));
allItems.add(new PairIntStr(SPRING, "весна"));
allItems.add(new PairIntStr(SUMMER, "лето"));
allItems.add(new PairIntStr(AUTUMN, "осень"));
}
@Override
public boolean isEditable() {
return false;
}
@Override
public List<Integer> getValue() throws ClipsException {
return getItems();
}
}