Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Text.addKeyListener()


    grid_data = new GridData(GridData.FILL_HORIZONTAL );
    grid_data.horizontalSpan = 2;
    grid_data.heightHint = 50;
    text.setLayoutData(grid_data);
       
    text.addKeyListener(
      new KeyListener()
      {
        public void
        keyPressed(
          KeyEvent e)
View Full Code Here


        //butImport.setText("Import");
        butImport.setText(WIZZARD);
      }


      txtIncludeParameterValue.addKeyListener(new org.eclipse.swt.events.KeyAdapter() {
        public void keyPressed(org.eclipse.swt.events.KeyEvent e) {
          if (e.keyCode == SWT.CR && !txtIncludeParameter.getText().trim().equals("")){           
            updateIncludeParam(includeParameterTabItem,
                true,
                tableIncludeParameter,
View Full Code Here

        data.heightHint = 400;
        resourceNameTable.setLayoutData(data);

        viewer = new TableViewer(resourceNameTable);

        txtFilter.addKeyListener(new KeyAdapter()
        {
            @Override
            public void keyReleased(KeyEvent e)
            {
                switch (e.keyCode)
View Full Code Here

    private Text createSelectionBox(Composite parent)
    {
        final Text txtSelection = new Text(parent, SWT.SEARCH);

        txtSelection.addKeyListener(new KeyAdapter()
        {
            @Override
            public void keyReleased(KeyEvent e)
            {
                txt = txtSelection.getText();
View Full Code Here

                fFilteredList.setFilter(fFilterText.getText());
            }
        };
        text.addListener(SWT.Modify, listener);

        text.addKeyListener(new KeyListener() {
            public void keyPressed(KeyEvent e) {
                if (e.keyCode == SWT.ARROW_DOWN) {
          fFilteredList.setFocus();
        }
            }
View Full Code Here

                formData.top = new FormAttachment(0, parameterPositionOffset);
                formData.left = new FormAttachment(label, 5);
                formData.right = new FormAttachment(valueWidth);
                text.setLayoutData(formData);
                // Listener to assign value to the parameter
                text.addKeyListener(keyListener);
                // Listener to verify if the entered key is valid
                text.addVerifyListener(verifyListener);
                text.setData(param);
            }
           
View Full Code Here

        formData = new FormData();
        formData.top = new FormAttachment(0, rowCount * heightForAParameter);
        formData.left = new FormAttachment(key, 5);
        formData.right = new FormAttachment(40);
        keyText.setLayoutData(formData);
        keyText.addKeyListener(headerBindingListener);
       
        Label value = _toolkit.createLabel(parent, "Value");
        formData = new FormData();
        formData.top = new FormAttachment(0, rowCount * heightForAParameter + 2);
        formData.right = new FormAttachment(45);
View Full Code Here

        formData = new FormData();
        formData.top = new FormAttachment(0, rowCount * heightForAParameter);
        formData.left = new FormAttachment(value, 5);
        formData.right = new FormAttachment(70);
        valueText.setLayoutData(formData);
        valueText.addKeyListener(headerBindingListener);
       
        // Add these to the map, to retrieve the values while setting the parameter value
        headerBindingHashMap.put(keyText, valueText);
    }
   
View Full Code Here

            public void modifyText( ModifyEvent e )
            {
                saveTableEditorText();
            }
        } );
        newEditor.addKeyListener( new KeyAdapter()
        {
            public void keyPressed( KeyEvent e )
            {
                if ( ( e.keyCode == Action.findKeyCode( "RETURN" ) ) || ( e.keyCode == SWT.KEYPAD_CR ) ) //$NON-NLS-1$
                {
View Full Code Here

    private TableViewer createStylesTableViewer( Composite parent ) {
        final StyleFilter filter = new StyleFilter();
        final Text searchText = new Text(parent, SWT.BORDER | SWT.SEARCH);
        searchText.setLayoutData(new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_FILL));
        searchText.addKeyListener(new KeyAdapter(){
            public void keyReleased( KeyEvent ke ) {
                filter.setSearchText(searchText.getText());
                stylesViewer.refresh();
            }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.