Package cli_fmw.utils

Examples of cli_fmw.utils.MultiIcon


//            } else {
//                return STT_ICON;
   
    @Override
    public Icon getIcon() {
        MultiIcon icon = null;
        try {
            if (isProfcheckup()) {
                if (getClosed() == null) {
                    icon = new MultiIcon(profcheckupIconOpened);
                } else {
                    icon = new MultiIcon(profcheckupIcon);
                }
            } else if (isFollowupEvent()){
                if (getClosed() == null) {
                    icon = new MultiIcon(followupEventIconOpened);
                } else {
                    icon = new MultiIcon(followupEventIcon);
                }
            } else if (isMedexam()){
                if (getClosed() == null) {
                    icon = new MultiIcon(medexamIconOpened);
                } else {
                    icon = new MultiIcon(medexamIcon);
                }
            } else {
                if (getClosed() == null) {
                    icon = new MultiIcon(diseaseIconOpened);
                } else {
                    icon = new MultiIcon(diseaseIcon);
                }
            }
            if ((serrenCache.inCache() && getSpecificDiagnosis() == null)) {
                icon.addIcon(haveNotSpecificDiagnosesIcon);
            }else if (mKB10Item == null){
                icon.addIcon(haveNotSpecificDiagnosesIcon);
            }
            return icon;
        } catch (ClipsException ex) {
            ex.printStackTrace();
            if (icon == null) {
                return new MultiIcon(diseaseIcon);
            } else {
                return icon;
            }
        }
    }
View Full Code Here


        }
    }
   
    @Override
    public Icon getIcon() {
        MultiIcon icon = null;
        try {
            boolean editable = hasRight(ServiceRenderBean.COMMAND_MODIFY);
            if (editable) {
                if (isVisit()) {
                    icon = new MultiIcon(iconVisitEnabled);
                } else {
                    icon = new MultiIcon(iconSerrenEnabled);
                }
            } else {
                if (isVisit()) {
                    icon = new MultiIcon(iconVisit);
                } else {
                    icon = new MultiIcon(iconSerren);
                }
            }
            if (!isRendered()) {
                icon.addIcon(iconNotRendered);
            }
            if (getPolisData().getContract().getType() != Contract.TYPE_OMI
                    && !isSerPayed()) {
                icon.addIcon(iconDollar);
            }
            return icon;
        } catch (ClipsException ex) {
            if (icon == null) {
                return new MultiIcon(iconSerren);
            } else {
                return icon;
            }
        }
       
View Full Code Here

TOP

Related Classes of cli_fmw.utils.MultiIcon

Copyright © 2018 www.massapicom. 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.