Package com.volantis.mcs.eclipse.controls

Examples of com.volantis.mcs.eclipse.controls.StyleSelector


    /**
     * Create the style selector control.
     * @param controlDetails the controls details.
     */
    private void createStyleSelectorControl(ControlDetails controlDetails) {
        final StyleSelector selector = new StyleSelector(
                controlDetails.attributesComposite, SWT.NONE);

        createTextButton(selector, controlDetails);

        selector.setData(AttributesComposite.ATTRIBUTE_ACCESSOR_KEY,
                new AttributesComposite.AttributeAccessor() {
                    public String getValue(String attribute) {
                        return selector.getText().getText();
                    }

                    public void setValue(String attribute, String value) {
                        selector.getText().setText(value);
                    }
                });

        // Add a text modify listener on the text control.
        TextModifyListener listener =
                new TextModifyListener(controlDetails.attributesComposite,
                        controlDetails.attribute);

        selector.getText().addListener(SWT.Modify, listener);

        // Store the attribute name in the control's data map (test team request).
        selector.setData(ATTRIBUTE_NAME_KEY, controlDetails.attribute);

        // Add an accessible listener
        addAccessibleListener(selector, controlDetails);

        // For this attribute composite, associate the attribute with the control
View Full Code Here

TOP

Related Classes of com.volantis.mcs.eclipse.controls.StyleSelector

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.