Examples of TextFieldModel


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

Examples of cli_fmw.report.panels.model.TextFieldModel

        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

Examples of cli_fmw.report.panels.model.TextFieldModel

        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

Examples of cli_fmw.report.panels.model.TextFieldModel

            }
        }
    }

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

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

Examples of cli_fmw.report.panels.model.TextFieldModel

            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

Examples of org.apache.struts2.views.freemarker.tags.TextFieldModel

    public void testNoLabelFtl() throws Exception {
        TestAction testAction = (TestAction) action;
        testAction.setFoo("bar");

        TextFieldModel model = new TextFieldModel(stack, request, response);
        Map<String, String> params = new HashMap<String, String>();
        params.put("name", "myname");
        params.put("value", "%{foo}");
        params.put("size", "10");
        params.put("onblur", "blahescape('somevalue');");
        TransformControl control = (TransformControl) model.getWriter(writer, params);
        control.onStart();
        control.afterBody();

        verify(TextFieldTag.class.getResource("Textfield-3.txt"));
    }
View Full Code Here

Examples of org.apache.struts2.views.freemarker.tags.TextFieldModel

    public void testNoLabelFtl() throws Exception {
        TestAction testAction = (TestAction) action;
        testAction.setFoo("bar");

        TextFieldModel model = new TextFieldModel(stack, request, response);
        HashMap params = new HashMap();
        params.put("name", "myname");
        params.put("value", "%{foo}");
        params.put("size", "10");
        params.put("onblur", "blahescape('somevalue');");
        TransformControl control = (TransformControl) model.getWriter(writer, params);
        control.onStart();
        control.afterBody();

        verify(TextFieldTag.class.getResource("Textfield-3.txt"));
    }
View Full Code Here

Examples of org.apache.struts2.views.freemarker.tags.TextFieldModel

    public void testNoLabelFtl() throws Exception {
        TestAction testAction = (TestAction) action;
        testAction.setFoo("bar");

        TextFieldModel model = new TextFieldModel(stack, request, response);
        HashMap params = new HashMap();
        params.put("name", "myname");
        params.put("value", "%{foo}");
        params.put("size", "10");
        params.put("onblur", "blahescape('somevalue');");
        TransformControl control = (TransformControl) model.getWriter(writer, params);
        control.onStart();
        control.afterBody();

        verify(TextFieldTag.class.getResource("Textfield-3.txt"));
    }
View Full Code Here

Examples of org.apache.struts2.views.freemarker.tags.TextFieldModel

    public void testNoLabelFtl() throws Exception {
        TestAction testAction = (TestAction) action;
        testAction.setFoo("bar");

        TextFieldModel model = new TextFieldModel(stack, request, response);
        HashMap params = new HashMap();
        params.put("name", "myname");
        params.put("value", "%{foo}");
        params.put("size", "10");
        params.put("onblur", "blahescape('somevalue');");
        TransformControl control = (TransformControl) model.getWriter(writer, params);
        control.onStart();
        control.afterBody();

        verify(TextFieldTag.class.getResource("Textfield-3.txt"));
    }
View Full Code Here

Examples of org.apache.struts2.views.freemarker.tags.TextFieldModel

    public void testNoLabelFtl() throws Exception {
        TestAction testAction = (TestAction) action;
        testAction.setFoo("bar");

        TextFieldModel model = new TextFieldModel(stack, request, response);
        HashMap params = new HashMap();
        params.put("name", "myname");
        params.put("value", "%{foo}");
        params.put("size", "10");
        params.put("onblur", "blahescape('somevalue');");
        TransformControl control = (TransformControl) model.getWriter(writer, params);
        control.onStart();
        control.afterBody();

        verify(TextFieldTag.class.getResource("Textfield-3.txt"));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.