Package fr.soleil.comete.swt

Examples of fr.soleil.comete.swt.TextField


    final Composite rightPanel = new Group(mainComposite, SWT.RIGHT);
    rightPanel.setLayout(new RowLayout(SWT.VERTICAL));

    //TextField
    final TextField textField = new TextField(rightPanel, SWT.SIMPLE);

    editableTextTest(leftPanel, textField);
    isEditableTextTest(leftPanel, rightPanel, textField);
    resizeTextTest(leftPanel, rightPanel, textField);
    displayTextTest(leftPanel, rightPanel, textField);
View Full Code Here


        player.setLayoutData(playerData);
        player.initSlider(10);
        player.setIndex(0);

        // TextField
        textfieldString = new TextField(parent, SWT.NONE);
        textfieldString.setActionPerformedOnTextChanged(true);
        GridData textfieldData = new GridData(100, 25);
        textfieldData.verticalAlignment = GridData.BEGINNING;
        textfieldString.setLayoutData(textfieldData);
View Full Code Here

        componentPanel.setLayoutData(componentGridData);

        // set a background to let user see limits of the component
        componentPanel.setBackground(new Color(Display.getCurrent(), 255, 175, 175));// PINK as in awt

        final TextField theComponent = new TextField(componentPanel, SWT.NONE);
        theComponent.setText("A TextField");
        theComponent.setLayoutData(new RowData(100, 30));
        // ----------
        Group testPanel = getTestPanel(mainComposite, theComponent);

        GridData testPanelGridData = new GridData();
        testPanelGridData.grabExcessHorizontalSpace = true;
View Full Code Here

        GridLayout gridLayout = new GridLayout(3, false);
        gridLayout.verticalSpacing = 5;
        optionGroup.setLayout(gridLayout);

        final TextField textFieldX = new TextField(optionGroup, SWT.SINGLE);

        final Button setXAxisButton = new Button(optionGroup, SWT.NONE);
        setXAxisButton.setText("Set X axis name");
        setXAxisButton.addSelectionListener(new SelectionAdapter() {
            @Override
            public void widgetSelected(SelectionEvent e) {
                theComponent.setAxisName(textFieldX.getText(), IChartViewer.X);
            }
        });

        Button clearXButton = new Button(optionGroup, SWT.PUSH);
        clearXButton.setText("Clear");
        clearXButton.addSelectionListener(new SelectionAdapter() {
            @Override
            public void widgetSelected(SelectionEvent e) {
                textFieldX.setText("");
                theComponent.setAxisName(null, IChartViewer.X);
            }
        });

        final TextField textFieldY = new TextField(optionGroup, SWT.SINGLE);
        textFieldY.getText();
        final Button setYAxisButton = new Button(optionGroup, SWT.NONE);
        setYAxisButton.setText("Set Y axis name");
        setYAxisButton.addSelectionListener(new SelectionAdapter() {
            @Override
            public void widgetSelected(SelectionEvent e) {
                theComponent.setAxisName(textFieldY.getText(), IChartViewer.Y1);
            }
        });

        Button clearYButton = new Button(optionGroup, SWT.PUSH);
        clearYButton.setText("Clear");
        clearYButton.addSelectionListener(new SelectionAdapter() {
            @Override
            public void widgetSelected(SelectionEvent e) {
                textFieldY.setText("");
                theComponent.setAxisName(null, IChartViewer.Y1);
            }
        });
    }
View Full Code Here

        componentPanel.setLayoutData(componentGridData);

        // set a background to let user see limits of the component
        componentPanel.setBackground(new Color(Display.getCurrent(), 255, 175, 175));// PINK as in awt

        final TextField theComponent = new TextField(componentPanel, SWT.NONE);
        theComponent.setText("A TextField");
        theComponent.setLayoutData(new RowData(100, 30));
        // ----------
        Group testPanel = getTestPanel(mainComposite, theComponent);

        GridData testPanelGridData = new GridData();
        testPanelGridData.grabExcessHorizontalSpace = true;
View Full Code Here

TOP

Related Classes of fr.soleil.comete.swt.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.