Examples of DocumentListenerAdapter


Examples of com.eviware.soapui.support.DocumentListenerAdapter

    }

    protected JPanel buildDescriptionPanel() {
        JPanel panel = new JPanel(new BorderLayout());
        descriptionArea = new JUndoableTextArea(getModelItem().getDescription());
        descriptionArea.getDocument().addDocumentListener(new DocumentListenerAdapter() {
            public void update(Document document) {
                ((AbstractMockService) getModelItem()).setDescription(descriptionArea.getText());
            }
        });
View Full Code Here

Examples of com.eviware.soapui.support.DocumentListenerAdapter

        // Add popup!
        contentEditor = SyntaxEditorUtil.createDefaultXmlSyntaxTextArea();
        SyntaxEditorUtil.setMediaType(contentEditor, httpRequest.getMediaType());
        contentEditor.setText(httpRequest.getRequestContent());

        contentEditor.getDocument().addDocumentListener(new DocumentListenerAdapter() {

            @Override
            public void update(Document document) {
                if (!updatingRequest) {
                    updatingRequest = true;
View Full Code Here

Examples of com.eviware.soapui.support.DocumentListenerAdapter

        builder.addGriddedGrowing(textField);
        builder.addRelatedGap();
        selectDirectoryButton = new JButton(new SelectDirectoryAction());
        builder.addFixed(selectDirectoryButton);

        textField.getDocument().addDocumentListener(new DocumentListenerAdapter() {

            @Override
            public void update(Document document) {
                String text = textField.getText();
View Full Code Here

Examples of com.eviware.soapui.support.DocumentListenerAdapter

    private String oldValue;

    public JTextFieldFormField() {
        super(new JUndoableTextField());

        getComponent().getDocument().addDocumentListener(new DocumentListenerAdapter() {

            @Override
            public void update(Document document) {
                String text = getComponent().getText();
View Full Code Here

Examples of com.eviware.soapui.support.DocumentListenerAdapter

        scrollPane.setLineNumbersEnabled(true);

        editor = SyntaxEditorUtil.addDefaultActions(editor, scrollPane, false);

        editor.setText(samlAssertion == null ? "" : samlAssertion);
        editor.getDocument().addDocumentListener(new DocumentListenerAdapter() {

            @Override
            public void update(javax.swing.text.Document document) {
                samlAssertion = editor.getText();
                saveConfig();
View Full Code Here

Examples of com.eviware.soapui.support.DocumentListenerAdapter

        pathTextField = new JUndoableTextField();
        pathTextField.setPreferredSize(new Dimension(300, 20));
        pathTextField.setText(getRequest().getEndpoint());
        pathTextField.setToolTipText(pathTextField.getText());
        pathTextField.getDocument().addDocumentListener(new DocumentListenerAdapter() {
            @Override
            public void update(Document document) {
                if (updating) {
                    return;
                }
View Full Code Here

Examples of com.eviware.soapui.support.DocumentListenerAdapter

            public String getToolTipText(MouseEvent event) {
                return testStep.getSource(true);
            }
        };
        sourceField.setToolTipText("The filename/url or referring system-property to load properties from");
        sourceField.getDocument().addDocumentListener(new DocumentListenerAdapter() {
            public void update(Document document) {
                if (updatingSource) {
                    return;
                }

                updatingSource = true;
                testStep.setSource(sourceField.getText());
                updatingSource = false;
            }
        });

        toolbar.addRelatedGap();
        toolbar.addFixed(sourceField);
        JButton setSourceButton = UISupport.createToolbarButton(new SetPropertiesSourceAction());
        toolbar.addRelatedGap();
        toolbar.add(setSourceButton);

        toolbar.addSeparator();
        toolbar.add(new JLabel("Save to:"));
        targetField = new JTextField(testStep.getTarget(), 20) {
            @Override
            public String getToolTipText(MouseEvent event) {
                return testStep.getTarget(true);
            }
        };

        targetField.setToolTipText("The filename/url or referring system-property to save properties to");
        targetField.getDocument().addDocumentListener(new DocumentListenerAdapter() {
            public void update(Document document) {
                if (updatingTarget) {
                    return;
                }
View Full Code Here

Examples of com.eviware.soapui.support.DocumentListenerAdapter

            intervalField = new JTextField(4);
            UISupport.setPreferredHeight(intervalField, 18);
            intervalField.setHorizontalAlignment(JTextField.RIGHT);
            intervalField.setText(String.valueOf(interval / 1000));
            intervalField.setToolTipText("Sets the interval between variances in seconds");
            intervalField.getDocument().addDocumentListener(new DocumentListenerAdapter() {

                public void update(Document doc) {
                    try {
                        interval = Long.parseLong(intervalField.getText()) * 1000;
                        notifyConfigurationChanged();
                    } catch (NumberFormatException e) {
                    }
                }
            });

            builder.addFixed(new JLabel("Interval"));
            builder.addRelatedGap();

            builder.addFixed(intervalField);
            builder.addRelatedGap();

            varianceField = new JTextField(3);
            UISupport.setPreferredHeight(varianceField, 18);
            varianceField.setHorizontalAlignment(JTextField.RIGHT);
            varianceField.setText(String.valueOf(variance));
            varianceField.setToolTipText("Specifies the relative magnitude of a variance");
            varianceField.getDocument().addDocumentListener(new DocumentListenerAdapter() {

                public void update(Document doc) {
                    try {
                        variance = Float.parseFloat(varianceField.getText());
                        notifyConfigurationChanged();
View Full Code Here

Examples of com.eviware.soapui.support.DocumentListenerAdapter

    protected void createToolbar(JXToolBar toolbar) {
        toolbar.addUnrelatedGap();
        toolbar.addFixed(new JLabel("Path"));
        toolbar.addRelatedGap();
        pathField = new JTextField(getModelItem().getPath(), 15);
        pathField.getDocument().addDocumentListener(new DocumentListenerAdapter() {

            @Override
            public void update(Document document) {
                getModelItem().setPath(pathField.getText());
            }
        });

        toolbar.addFixed(pathField);

        toolbar.addUnrelatedGap();
        toolbar.addFixed(new JLabel("Port"));
        toolbar.addRelatedGap();
        portField = new JTextField(String.valueOf(getModelItem().getPort()), 5);
        portField.getDocument().addDocumentListener(new DocumentListenerAdapter() {

            @Override
            public void update(Document document) {
                try {
                    getModelItem().setPort(Integer.parseInt(portField.getText()));
View Full Code Here

Examples of com.eviware.soapui.support.DocumentListenerAdapter

            delayField = new JTextField(4);
            UISupport.setPreferredHeight(delayField, 18);
            delayField.setHorizontalAlignment(JTextField.RIGHT);
            delayField.setText(String.valueOf(burstDelay / 1000));
            delayField.setToolTipText("Sets the delay before each burst run in seconds");
            delayField.getDocument().addDocumentListener(new DocumentListenerAdapter() {

                public void update(Document doc) {
                    try {
                        burstDelay = Integer.parseInt(delayField.getText()) * 1000;
                        notifyConfigurationChanged();
                    } catch (NumberFormatException e) {
                    }
                }
            });

            builder.addFixed(new JLabel("Burst Delay"));
            builder.addRelatedGap();

            builder.addFixed(delayField);
            builder.addRelatedGap();

            durationField = new JTextField(4);
            UISupport.setPreferredHeight(durationField, 18);
            durationField.setHorizontalAlignment(JTextField.RIGHT);
            durationField.setText(String.valueOf(burstDuration / 1000));
            durationField.setToolTipText("Specifies the duration of a burst run in seconds");
            durationField.getDocument().addDocumentListener(new DocumentListenerAdapter() {

                public void update(Document doc) {
                    try {
                        burstDuration = Integer.parseInt(durationField.getText()) * 1000;
                        notifyConfigurationChanged();
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.