Package fr.soleil.comete.swing

Examples of fr.soleil.comete.swing.TextField


        TangoKey otherKey = new TangoKey();
        TangoKeyTool.registerSettable(otherKey, false);
        TangoKeyTool.registerAttribute(otherKey, "tango/tangotest/titan", "string_scalar");

        TextField textfield = new TextField();
        TextArea textArea = new TextArea();
        FileBrowser fileBrowser = new FileBrowser();

        stringBox.setConfirmationMessage(textfield, "Execute Confirmation ");
        stringBox.setConfirmation(textfield, true);
View Full Code Here


        // System.out.println("INIT WIDGET " + getDeviceName() + " - " + getAttributeName());
        tangoType = TangoAttributeHelper.getAttributeType(getDeviceName(), getAttributeName());
        tangoFormat = TangoAttributeHelper.getAttributeFormat(getDeviceName(), getAttributeName());

        if (getDeviceName() == null || getAttributeName() == null) {
            readWidget = (T) new TextField();
            writeWidget = (T) new TextField();
        }
        else if (tangoType == TangoConstHelper.SCALAR_TYPE) {
            if (tangoFormat == TangoConstHelper.BOOLEAN_FORMAT) {
                readWidget = (T) new CheckBox();
                writeWidget = (T) new BooleanComboBox();
            }
            else if (tangoFormat == TangoConstHelper.STRING_FORMAT) {
                readWidget = (T) new TextField();
                ((TextField) readWidget).setPreferredSize(new Dimension());
                writeWidget = (T) new TextField();
            }
            else if (tangoFormat == TangoConstHelper.NUMERICAL_FORMAT) {
                readWidget = (T) new TextField();
                writeWidget = (T) new WheelSwitch();
            }
        }
        else if (tangoType == TangoConstHelper.ARRAY_TYPE) {
            readWidget = (T) new ChartViewer();
View Full Code Here

        StringScalarBox stringBox = new StringScalarBox();

        TangoKey key = new TangoKey();
        TangoKeyTool.registerAttribute(key, "tango/tangotest/titan", "string_scalar");

        TextField textfield = stringBox.createAdvancedWidget(TextField.class, key);
        TextArea textArea = stringBox.createAdvancedWidget(TextArea.class, key);
        FileBrowser fileBrowser = stringBox.createAdvancedWidget(FileBrowser.class, key);
        fileBrowser.setUpdateAllowed(true);

        stringBox.connectSourceListener(this, key);
View Full Code Here

        chartViewer = new Chart();
        imageViewerData1 = new ImageViewer();
        imageViewerData1Bis = new ImageViewer();
        imageViewerData2 = new ImageViewer();
        actuatorLabel = new Label();
        actuatorField = new TextField();
        runNameField = new Label();
        stateField = new Label();

        JTabbedPane tabs = new JTabbedPane();
View Full Code Here

    protected boolean booleanScalar;
    protected boolean stringScalar;

    @Override
    protected TextField initWidget() {
        TextField textField = new TextField();
        textField.setHorizontalAlignment(SwingConstants.CENTER);
        return textField;
    }
View Full Code Here

    protected TangoKey qualityKey;
    protected MyQualityTarget qualityTarget = new MyQualityTarget();

    @Override
    protected TextField initWidget() {
        return new TextField();
    }
View Full Code Here

        ((ScalarCometeBox<ITextTarget, String>) mybox).setReadOnly((widget), !valueEditable);
    }

    public void setText(final String text) {
        if ((widget != null) && isEditable()) {
            final TextField tmpWidget = (TextField) widget;

            // Mediator manage Confirmation message => if confirmation == true
            // then the mediator show the confirmation message. We don't want this so we disable
            // the confirmation message and set the value
            final boolean conf = isAskConfirmation();
            if (conf) {
                setAskConfirmation(false);
            }

            // set text to new value and warn mediator (thanks to send()) which
            // will change value on source
            tmpWidget.warnMediators(new TextInformation(tmpWidget, text));

            if (conf) {
                // now we restore the user parameter
                setAskConfirmation(conf);
            }
View Full Code Here

        TangoKeyTool.registerAttribute(numberKey, "tango/tangotest/titan", "ampli");



        // text component
        TextField textfield = stringBox.createAdvancedWidget(TextField.class, stringKey);
        TextArea textArea = new TextArea();
        stringBox.connectWidget(textArea, numberKey);
        FileBrowser fileBrowser = stringBox.createAdvancedWidget(FileBrowser.class, stringKey);
        fileBrowser.setUpdateAllowed(true);
View Full Code Here

        super.setData(data);
    }

    @Override
    public IComponent initWidget() {
        return new TextField();
    }
View Full Code Here

    }

    @Override
    protected TextField initWidget() {
        return new TextField();
    }
View Full Code Here

TOP

Related Classes of fr.soleil.comete.swing.TextField

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.