Package com.volantis.mcs.eclipse.controls

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


     * @param handler the action handler to associated with the text control.
     * @param text the combo control used in the association.
     */
    private void associateHandlerWithText(ActionableHandler handler, Text text) {
        if (handler != null) {
            handler.addControl(new TextActionable(text));
        }
    }
View Full Code Here


     * name.
     */
    private void addNameControl() {
        createLabel(NAME_LABEL);
        nameField = new Text(displayArea, SWT.BORDER);
        context.getHandler().addControl(new TextActionable(nameField));
        nameField.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
        nameFieldListener = new ModifyListener() {
            // javadoc inherited
            public void modifyText(ModifyEvent event) {
                // update the properties file
                updateNameProperty();
            }
        };
        nameField.addModifyListener(nameFieldListener);
        // Associate an actionable handler with the control to provide
        // cut, copy, paste and delete actions.
        context.getHandler().addControl(new TextActionable(nameField));
    }
View Full Code Here

     * Adds the control to the display area that allows the
     */
    private void addHelpTextControl() {
        createLabel(HELP_LABEL);
        helpTextArea = new Text(displayArea, SWT.MULTI | SWT.BORDER | SWT.WRAP);
        context.getHandler().addControl(new TextActionable(helpTextArea));
        helpTextArea.setLayoutData(new GridData(GridData.FILL_BOTH));
        GridData gridData = new GridData(GridData.FILL_BOTH);
        gridData.widthHint = HELP_WIDTH;
        helpTextArea.setLayoutData(gridData);
        helpTextAreaListener = new ModifyListener() {
            // javadoc inherited
            public void modifyText(ModifyEvent event) {
                updateHelpProperty();
            }
        };
        helpTextArea.addModifyListener(helpTextAreaListener);
        // Associate an actionable handler with the control to provide
        // cut, copy, paste and delete actions.
        context.getHandler().addControl(new TextActionable(helpTextArea));

    }
View Full Code Here

            }
        };

        lowerBoundLabel = createLabel(LOWER_RANGE_LABEL);
        rangeLowerBoundField = new Text(displayArea, SWT.BORDER);
        context.getHandler().addControl(new TextActionable(rangeLowerBoundField));
        rangeLowerBoundField.setLayoutData(new GridData(
                    GridData.FILL_HORIZONTAL));
        rangeLowerBoundField.addModifyListener(rangeBoundListener);

        upperBoundLabel = createLabel(UPPER_RANGE_LABEL);
        rangeUpperBoundField = new Text(displayArea, SWT.BORDER);
        context.getHandler().addControl(new TextActionable(rangeUpperBoundField));
        rangeUpperBoundField.setLayoutData(new GridData(
                    GridData.FILL_HORIZONTAL));
        rangeUpperBoundField.addModifyListener(rangeBoundListener);
        updateRangeBoundsControls();
        getParent().layout();
View Full Code Here

        uaProfLabel.setBackground(getColour(SWT.COLOR_LIST_BACKGROUND));
        uaProfLabel.setText(DevicesMessages.getString(RESOURCE_PREFIX +
                "uaprofName.label"));

        uaProfName = new Text(displayArea, SWT.SINGLE | SWT.BORDER);
        context.getHandler().addControl(new TextActionable(uaProfName));
        uaProfName.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
        setEnabled(true);
    }
View Full Code Here

TOP

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

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.