Package clips.delegate.directory.complex

Examples of clips.delegate.directory.complex.DirectoryDirectionTypeItem


        });

        directionType = DirectoryLocator.getDirectory(DirectoryDirectionType.class);
        Selector ii = directionType.getItems();
        for (int i = 0; i < ii.size(); i++) {
            DirectoryDirectionTypeItem item = (DirectoryDirectionTypeItem) ii.get(i);
            cbType.addItem(item);
        }

        cbType.addActionListener(new ActionListener() {
View Full Code Here


       
        directionTypes.clear();
        if (directory != null) {
            Selector iie = directory.getItems();
            for (int i = 0; i < iie.size(); i++) {
                DirectoryDirectionTypeItem item = (DirectoryDirectionTypeItem) iie.get(i);               
                directionTypes.add(item);               
            }
        }
    }
View Full Code Here

        return COLCOUNT;
    }

    @Override
    public Object getValueAt(int rowIndex, int columnIndex) {
        DirectoryDirectionTypeItem item = directionTypes.get(rowIndex);
        switch (columnIndex) {
            case COL_ID : return item.getID();
            case COL_TITLE: return item;
            case COL_CHOICE: {
                String s = "";
                int choice = item.getChoice();
                switch (choice) {
                    case DirectoryDirectionTypeBean.OBLIGATE_SERVICE :
                        s = DlgSetDirectionChoice.DIR_TO_SERVICE;
                        break;
                    case DirectoryDirectionTypeBean.OBLIGATE_COMMITTEE :
View Full Code Here

        if (dlg.getDlgResult() == ModalDialog.DLG_OK) {
            DirectionTypeDetails d = new DirectionTypeDetails();   
            d.id = 0;   
            d.title = "Введите название";
            d.choice = dlg.getChoice();
            directory.getItems().append(new DirectoryDirectionTypeItem(d));
            setTable();
        }
    } catch (ClipsException ex) {
        MessageBox.showException(ex);
    }
View Full Code Here

TOP

Related Classes of clips.delegate.directory.complex.DirectoryDirectionTypeItem

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.