Package fr.soleil.comete.swt

Examples of fr.soleil.comete.swt.Label


        RowLayout rowLayout = new RowLayout(SWT.HORIZONTAL);
        rowLayout.spacing = 20;
        optionGroup.setLayout(rowLayout);

        final Button addTreeNodeSelectionListenerButton = new Button(optionGroup, SWT.PUSH);
        final Label label = new Label(optionGroup, SWT.NONE);
        addTreeNodeSelectionListenerButton.setText("Add tree node selection listener");
        iTreeNodeSelectionListener = new ITreeNodeSelectionListener() {

            @Override
            public void selectionChanged(TreeNodeSelectionEvent event) {
                label.setText("Add tree node selection listener");
                ITreeTestPanel.this.layout();
            }
        };

        addTreeNodeSelectionListenerButton.addSelectionListener(new SelectionAdapter() {
            @Override
            public void widgetSelected(SelectionEvent e) {
                label.setText("Add listener");
                theComponent.addTreeNodeSelectionListener(iTreeNodeSelectionListener);
            }
        });

    }
View Full Code Here


        RowLayout rowLayout = new RowLayout(SWT.HORIZONTAL);
        rowLayout.spacing = 20;
        optionGroup.setLayout(rowLayout);

        final Button removeTreeNodeSelectionListenerButton = new Button(optionGroup, SWT.PUSH);
        final Label label = new Label(optionGroup, SWT.NONE);
        removeTreeNodeSelectionListenerButton.setText("Remove tree node listener");
        removeTreeNodeSelectionListenerButton.addSelectionListener(new SelectionAdapter() {
            @Override
            public void widgetSelected(SelectionEvent e) {
                theComponent.removeTreeNodeSelectionListener(iTreeNodeSelectionListener);
                label.setText("Remove listener");
            }
        });
    }
View Full Code Here

        RowLayout rowLayout = new RowLayout(SWT.HORIZONTAL);
        rowLayout.spacing = 20;
        optionGroup.setLayout(rowLayout);

        final Button removeAllTreeNodeSelectionListenerButton = new Button(optionGroup, SWT.PUSH);
        final Label label = new Label(optionGroup, SWT.NONE);
        removeAllTreeNodeSelectionListenerButton.setText("Remove all tree node listener");
        removeAllTreeNodeSelectionListenerButton.addSelectionListener(new SelectionAdapter() {
            @Override
            public void widgetSelected(SelectionEvent e) {
                theComponent.removeAllTreeNodeSelectionListeners();
                label.setText("Remove all");
            }
        });
    }
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

        Label theComponent = new Label(componentPanel, SWT.NONE);
        theComponent.setText("A Label");
        theComponent.setLayoutData(new RowData(100, 30));
        // ----------

        Group testPanelIComponent = IComponentTestPanel.getTestPanel(mainComposite, theComponent);
        Group testPanelIEditableComponent = IEditableComponentTestPanel.getTestPanel(mainComposite, theComponent);
        Group testPanelITextTarget = ITextTargetTestPanel.getTestPanel(mainComposite, theComponent);
View Full Code Here

TOP

Related Classes of fr.soleil.comete.swt.Label

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.