Package framework.utils

Examples of framework.utils.PairIntStr


        //запрет прокрутки внутреннего скролла
        //jScrollPane2.getVerticalScrollBar().setUnitIncrement(0);

        String text = tag.getText();
        PairIntStr[] pairArray = tag.getAllItems();
        PairIntStr selectedPair = null;
        for (int j = 0; j < pairArray.length; j++) {
            PairIntStr pair = pairArray[j];
            if (pair.toString().equals(text)) {
                selectedPair = pair;
            }
        }
        model = new DefaultComboBoxModel(pairArray);
        FilteredComboBoxModel filteredModel = new FilteredComboBoxModel(jComboBox1, tag.isEditable()) {
View Full Code Here


        this.certTag = certTag;
        //Составление списка всех итемов
        PairIntStr[] allItems1 = certTag.getAllItems();
        allItems = new ArrayList<PairIntStr>(allItems1.length);
        for (int i = 0; i < allItems1.length; i++) {
            PairIntStr pair = allItems1[i];
            allItems.add(pair);
        }
        //Составление списка выбранных итемов
        selectedItems = new ArrayList<Integer>(certTag.getItems());
        model = new TableModelMultiSelect(allItems, selectedItems);
View Full Code Here

    }

    public ArrayList<PairIntStr> getSelectedItems() {
        ArrayList<PairIntStr> res = new ArrayList<PairIntStr>();
        for (int i = 0; i < allItems.size(); i++) {
            PairIntStr pair = allItems.get(i);
            if (selectedItems.contains(pair.num)) {
                res.add(pair);
            }
        }
        return res;
View Full Code Here

       
        //запрет прокрутки внутреннего скролла
        //jScrollPane2.getVerticalScrollBar().setUnitIncrement(0);

        PairIntStr[] pairArray = tag.getAllItems();
        PairIntStr founded = null;
        Integer id = tag.getItem();
    if (id != null){
      for (int i = 0; i < pairArray.length; i++) {
        PairIntStr pairIntStr = pairArray[i];
        if (pairIntStr.num == id) {
          founded = pairIntStr;
        }
      }
View Full Code Here

            if (defaultid == 0) {
                defaultid = function.getId();
            }
            DirectorySpecialityItem item = function.getSpeciality();
            if (item != null) {
                PairIntStr pair = new PairIntStr(item.getID(), item.getTitle());
                allItems.add(pair);
            }
        }
    }
View Full Code Here

                    defaultid = jobLocal.getID();
                }
                String fullTitle = jobLocal.getEnterprise().getFullTitle(false);
                fullTitle.replaceAll("\n", "");
                String profession = jobLocal.getAppointment().getTitle();
                PairIntStr pair = new PairIntStr(jobLocal.getID(), fullTitle + ", " + profession);
                allItems.add(pair);
            }
        }
    }
View Full Code Here

        }
    }

    @Override
    public void fillItems() throws ClipsException {
        allItems.add(new PairIntStr(0, ""));
        allItems.add(new PairIntStr(SEX, "половой"));
        allItems.add(new PairIntStr(RAPE, "в т.ч. при сексуальном насилии"));
        allItems.add(new PairIntStr(COMMON, "бытовой"));
    }
View Full Code Here

        }
    }

    @Override
    public void fillItems() throws ClipsException {
        allItems.add(new PairIntStr(0, ""));
        allItems.add(new PairIntStr(SELF, "обращение с жалобами"));
        allItems.add(new PairIntStr(ACTIVE, "активное выявление"));
        allItems.add(new PairIntStr(DEATH, "посмертное выявление"));
    }
View Full Code Here

        super(certificateLocal, reportParam, diseaseLocal);
    }

    @Override
    public void fillItems() throws ClipsException {
        allItems.add(new PairIntStr(1, "отдаленные лимфатич. узлы"));
        allItems.add(new PairIntStr(2, "кости"));
        allItems.add(new PairIntStr(3, "печень"));
        allItems.add(new PairIntStr(4, "легкие и/или плевра"));
        allItems.add(new PairIntStr(5, "головной мозг"));
        allItems.add(new PairIntStr(6, "кожа"));
        allItems.add(new PairIntStr(7, "почки"));
        allItems.add(new PairIntStr(8, "яичники"));
        allItems.add(new PairIntStr(9, "брюшина"));
        allItems.add(new PairIntStr(10, "костный мозг"));
        allItems.add(new PairIntStr(11, "другие органы"));
        allItems.add(new PairIntStr(12, "множественные"));
        allItems.add(new PairIntStr(13, "неизвестна"));
    }
View Full Code Here

        }
    }

    @Override
    public void fillItems() throws ClipsException {
        allItems.add(new PairIntStr(0, ""));
        allItems.add(new PairIntStr(1, "высокий"));
        allItems.add(new PairIntStr(2, "удовлетворительный"));
        allItems.add(new PairIntStr(3, "низкий"));
    }
View Full Code Here

TOP

Related Classes of framework.utils.PairIntStr

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.