Package cli_fmw.report.panels.model

Examples of cli_fmw.report.panels.model.TextFieldModel


                inputedServCode = selectedService.getCode();
                tfServiceCode.setText(inputedServCode);
            }
        };

        modelServiceCode = new TextFieldModel(tfServiceCode) {

            @Override
            protected void setModelTextChecked(String text) throws ClipsException, ParseException, NumberFormatException {
                selectedService = serviceMap.get(text);
                jComboService.setSelectedItem(selectedService);
            }

            @Override
            protected String getModelTextChecked() throws ClipsException {
                return inputedServCode;
            }
        };
        modelServiceCode.setModelText("");

        //Код типа приема

        resetCollFuncList(selectedColl);

        modelCollFunc = new DelegateComboboxModel(jComboSpec, false) {

            @Override
            public boolean isSelectionVisible(){
              return true;
            }

            @Override
            public boolean isEnabled() {
                return collFuncList.size() > 1;
            }

            @Override
            public Object getElementAtImp(int index) throws ClipsException {
                return collFuncList.get(index);
            }

            @Override
            public int getSizeImp() throws ClipsException {
                return collFuncList.size();
            }

            @Override
            public Object getSelectedItemImp() throws ClipsException {
                return selectedCollFunc;
            }

            @Override
            public void setSelectedItemImp(Object anItem) throws ClipsException {
                selectedCollFunc = (DCFI) anItem;
                if (selectedCollFunc == null) {
                    jPanel2.remove(panUet);
                    tfUet.setText("1");
                    return;
                }
                inputedSpecCode = selectedCollFunc.getItem().getReceptionType().getExtKey();
                if (!tfSpecCode.getText().equals(inputedSpecCode)) {
                    tfSpecCode.setText(inputedSpecCode);
                }
               
                if (inputedSpecCode.contains("29")) {
                    jPanel2.add(panUet, BorderLayout.SOUTH);
                }
                else {
                    jPanel2.remove(panUet);
                    tfUet.setText("1");
                }
                DialogQuickInput.this.validate();
                DialogQuickInput.this.pack();
                DialogQuickInput.this.repaint();
            }
        };

        modelSpecCode = new TextFieldModel(tfSpecCode) {

            @Override
            protected boolean isEnabled() {
                return collFuncList.size() > 1;
            }
View Full Code Here


        if (!ConfigGui.isLoaded()) {
            return;
        }
        try {
            this.dir = DirectoryLocator.getDirectory(DirectoryMKB10.class);
            modelCode = new TextFieldModel(tfCode) {

                @Override
                protected void setModelTextChecked(String text) throws ClipsException, ParseException, NumberFormatException {
                    if (!text.isEmpty() && inputedCode.equals(text)) {
                        return;
View Full Code Here

        mainTable.getSelectionModel().addListSelectionListener(new ClientListener());
        initSexCombo();
    resizeColumn();
        tfEMCnum.setEnabled(chbEmc.isSelected());

        new TextFieldModel(editFIO) {

            @Override
            protected void setModelTextChecked(String text) throws ClipsException, ParseException, NumberFormatException {
                fio = text;
            }
View Full Code Here

            }
        }
    }

    private void initAddress() throws ClipsException{
        tfAddress.setDocument(new TextFieldModel(tfAddress) {

            @Override
            protected void setModelTextChecked(String text) throws ClipsException, ParseException, NumberFormatException {
            }
View Full Code Here

            tfNumber.setText(details.number);
        }
    }

    private void initSeries() {
        tfSeries.setDocument(new TextFieldModel(tfSeries) {

            @Override
            protected void setModelTextChecked(String text) throws ClipsException, ParseException, NumberFormatException {
                details.series = text;
                setEnabledComponets();
View Full Code Here

TOP

Related Classes of cli_fmw.report.panels.model.TextFieldModel

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.