Package cli_fmw.delegate.directory.complex

Examples of cli_fmw.delegate.directory.complex.DirectoryCountryItem


        }
    }

    @Override
    public void setValueAt(Object aValue, int rowIndex, int columnIndex) {
        DirectoryCountryItem item = country.getItems().get(rowIndex);
        try {
            if (columnIndex == 0) {
                item.setTitle((String) aValue);
            } else if (columnIndex == 1) {
                item.setCode((String) aValue);
            }
        } catch (ClipsException ex) {
            MessageBox.showException(ex);
        }
    }
View Full Code Here


        return 2;
    }

    @Override
    public Object getValueAt(int rowIndex, int columnIndex) {
        DirectoryCountryItem item = country.getItems().get(rowIndex);
        if (columnIndex == 0){
            return item.getTitle();
        }else if (columnIndex == 1){
            try {
                return item.getCode();
            } catch (ClipsException ex) {
                return new ErrorValue(ex);
            }
        }else{
            return null;
View Full Code Here

        if (tfCode.getText() == null || tfCode.getText().isEmpty()){
            MessageBox.showError(MessageBox.E_MAKE_FUCKING_EXCEPTION,"Код страны по ОКСМ не введен");
            return;
        }
        try {
            dc.getItems().append(new DirectoryCountryItem(tfTitle.getText(), tfCode.getText(), dc));
            tfTitle.setText("");
            tfCode.setText("");
            dialogNew.setVisible(false);
        } catch (ClipsException ex) {
            MessageBox.showException(ex);
View Full Code Here

TOP

Related Classes of cli_fmw.delegate.directory.complex.DirectoryCountryItem

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.