Package org.eclipse.swt.events

Examples of org.eclipse.swt.events.FocusAdapter


    label2 = new Label(group, SWT.NONE);
    label2.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, false, false));
    label2.setText("Name: ");
    tParaName = new Text(group, SWT.BORDER);
    tParaName.addFocusListener(new FocusAdapter() {
      public void focusGained(final FocusEvent e) {
        tParaName.selectAll();
      }
    });
    final GridData gridData_9 = new GridData(GridData.FILL, GridData.CENTER, true, false);
    gridData_9.widthHint = 200;
    tParaName.setLayoutData(gridData_9);
    tParaName.addKeyListener(new org.eclipse.swt.events.KeyAdapter() {
      public void keyPressed(org.eclipse.swt.events.KeyEvent e) {
        if (e.keyCode == SWT.CR && !tParaName.equals(""))
          addParam();
      }
    });
    tParaName.addModifyListener(new org.eclipse.swt.events.ModifyListener() {
      public void modifyText(org.eclipse.swt.events.ModifyEvent e) {
        bApply.setEnabled(!tParaName.getText().equals("") );
        if (tParaName.getText().equals("<from>")) {
          cSource.setVisible(true);
          tParaValue.setVisible(false);
        } else {
          cSource.setVisible(false);
          tParaValue.setVisible(true);
        }
      }
    });
    label6 = new Label(group, SWT.NONE);
    label6.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, false, false));
    label6.setText("Value: ");

    final Composite composite = new Composite(group, SWT.NONE);
    composite.addControlListener(new ControlAdapter() {
      public void controlResized(final ControlEvent e) {
        cSource.setBounds(0, 2, composite.getBounds().width, tParaName.getBounds().height);
        tParaValue.setBounds(0, 2,composite.getBounds().width, tParaName.getBounds().height);
      }
    });
    composite.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, false));

    cSource = new Combo(composite, SWT.READ_ONLY);
    cSource.setItems(new String[] { "order", "task" });

    cSource.setBounds(0, 0,250, 21);


    cSource.addModifyListener(new ModifyListener() {
      public void modifyText(final ModifyEvent e) {
        tParaValue.setText(cSource.getText());
      }
    });
    cSource.setVisible(false);
    tParaValue = new Text(composite, SWT.BORDER);
    tParaValue.addFocusListener(new FocusAdapter() {
      public void focusGained(final FocusEvent e) {
        tParaValue.selectAll();
      }
    });
View Full Code Here


    final Label nameLabel = new Label(gMain, SWT.NONE);
    nameLabel.setLayoutData(new GridData());
    nameLabel.setText("Name: ");

    txtName = new Text(gMain, SWT.BORDER);
    txtName.addFocusListener(new FocusAdapter() {
      public void focusGained(final FocusEvent e) {
        txtName.selectAll();
      }
    });
    txtName.setBackground(SWTResourceManager.getColor(255, 255, 217));
    txtName.addModifyListener(new ModifyListener() {
      public void modifyText(final ModifyEvent e) {

        if (event) {
          listener.setName(txtName.getText());         
        }
      }
    });
    final GridData gridData_1 = new GridData(GridData.FILL, GridData.CENTER, true, false);
    gridData_1.widthHint = 288;
    txtName.setLayoutData(gridData_1);

    addJobButton = new Button(gMain, SWT.NONE);
    addJobButton.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, false, false, 2, 1));
    addJobButton.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(final SelectionEvent e) {
        addJob();
      }
    });
    addJobButton.setText("Add Job");

    final Label schedulerHostLabel = new Label(gMain, SWT.NONE);
    schedulerHostLabel.setLayoutData(new GridData());
    schedulerHostLabel.setText("Scheduler Host:");

    txtHost = new Text(gMain, SWT.BORDER);
    txtHost.addFocusListener(new FocusAdapter() {
      public void focusGained(final FocusEvent e) {
        txtHost.selectAll();
      }
    });
    txtHost.addModifyListener(new ModifyListener() {
      public void modifyText(final ModifyEvent e) {
        if (event) {
          listener.setHost(txtHost.getText());         
        }
      }
    });
    txtHost.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false));

    addOrderButton = new Button(gMain, SWT.NONE);
    addOrderButton.setLayoutData(new GridData(GridData.CENTER, GridData.CENTER, false, false, 2, 1));
    addOrderButton.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(final SelectionEvent e) {
        addOrder();
      }
    });
    addOrderButton.setText("Add Order");

    final Label schedulerPortLabel = new Label(gMain, SWT.NONE);
    schedulerPortLabel.setLayoutData(new GridData());
    schedulerPortLabel.setText("Scheduler Port: ");

    txtPort = new Text(gMain, SWT.BORDER);   
    txtPort.addFocusListener(new FocusAdapter() {
      public void focusGained(final FocusEvent e) {
        txtPort.selectAll();
      }
    });
    txtPort.addVerifyListener(new VerifyListener() {
View Full Code Here

    label6 = new Label(gNodes, SWT.NONE);
    label6.setLayoutData(new GridData(GridData.BEGINNING, GridData.CENTER, true, false, 2, 1));
    label6.setText("State:");

    tState = new Text(gNodes, SWT.BORDER);
    tState.addFocusListener(new FocusAdapter() {
      public void focusGained(final FocusEvent e) {
        tState.selectAll();
      }
    });
    tState.addModifyListener(new ModifyListener() {
View Full Code Here

        group.setText("Base Files");
        group.setLayout(gridLayout);
        label1 = new Label(group, SWT.NONE);
        label1.setText("Base File:");
        tFile = new Text(group, SWT.BORDER);
        tFile.addFocusListener(new FocusAdapter() {
          public void focusGained(final FocusEvent e) {
            tFile.selectAll();
          }
        });
        bApply = new Button(group, SWT.NONE);
View Full Code Here

        group1.setLayout(gridLayout1);
        group1.setLayoutData(gridData);
        label = new Label(group1, SWT.NONE);
        label.setText("Watch Directory:");
        tDirectory = new Text(group1, SWT.BORDER);
        tDirectory.addFocusListener(new FocusAdapter() {
          public void focusGained(final FocusEvent e) {
            tDirectory.selectAll();
          }
        });
        tDirectory.setLayoutData(gridData3);
        label11 = new Label(group1, SWT.NONE);
        label11.setText("File Regex:");
        tRegex = new Text(group1, SWT.BORDER);
        tRegex.addFocusListener(new FocusAdapter() {
          public void focusGained(final FocusEvent e) {
            tRegex.selectAll();   
          }
        });
        tRegex.setLayoutData(gridData4);
View Full Code Here

        group2.setLayoutData(gridData1);
        group2.setLayout(gridLayout3);
        label4 = new Label(group2, SWT.NONE);
        label4.setText("Error count:");
        sErrorCount = new Text(group2, SWT.BORDER);
        sErrorCount.addFocusListener(new FocusAdapter() {
          public void focusGained(final FocusEvent e) {
            sErrorCount.selectAll();
          }
        });
        sErrorCount.addVerifyListener(new VerifyListener() {
            public void verifyText(final VerifyEvent e) {
                e.doit = Utils.isOnlyDigits(e.text);
            }
        });
        createComposite();
        composite = new Composite(group2, SWT.NONE);
        composite.setLayout(new RowLayout(SWT.HORIZONTAL));
        composite.setLayoutData(new org.eclipse.swt.layout.GridData(GridData.END, GridData.CENTER, true, false));
        bStop = new Button(group2, SWT.RADIO);
        bStop.setText("stop");
        bStop.addSelectionListener(new org.eclipse.swt.events.SelectionAdapter() {
            public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) {
                getShell().setDefaultButton(bApply);
                bApply.setEnabled(true);
                switchDelay(!bStop.getSelection());
            }
        });
        bDelay = new Button(group2, SWT.RADIO);
        bDelay.setText("Delay:");
        bDelay.addSelectionListener(new org.eclipse.swt.events.SelectionAdapter() {
            public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) {
                bApply.setEnabled(true);
                switchDelay(bDelay.getSelection());
            }
        });
        sErrorHours = new Text(group2, SWT.BORDER);
        sErrorHours.addFocusListener(new FocusAdapter() {
          public void focusGained(final FocusEvent e) {
            sErrorHours.selectAll();
          }
        });
        sErrorHours.addVerifyListener(new VerifyListener() {
            public void verifyText(final VerifyEvent e) {
                e.doit = Utils.isOnlyDigits(e.text);
            }
        });
        label14 = new Label(group2, SWT.NONE);
        label14.setText(":");
        sErrorMinutes = new Text(group2, SWT.BORDER);
        sErrorMinutes.addFocusListener(new FocusAdapter() {
          public void focusGained(final FocusEvent e) {
            sErrorMinutes.selectAll();
          }
        });
        sErrorMinutes.addVerifyListener(new VerifyListener() {
            public void verifyText(final VerifyEvent e) {
                e.doit = Utils.isOnlyDigits(e.text);
            }
        });
        label17 = new Label(group2, SWT.NONE);
        label17.setText(":");
        sErrorSeconds = new Text(group2, SWT.BORDER);
        sErrorSeconds.addFocusListener(new FocusAdapter() {
          public void focusGained(final FocusEvent e) {
            sErrorSeconds.selectAll();
          }
        });
        sErrorSeconds.addVerifyListener(new VerifyListener() {
View Full Code Here

        group3.setLayout(gridLayout2);
        group3.setLayoutData(gridData2);
        label2 = new Label(group3, SWT.NONE);
        label2.setText("Set Back Count:");
        sSetBackCount = new Text(group3, SWT.BORDER);
        sSetBackCount.addFocusListener(new FocusAdapter() {
          public void focusGained(final FocusEvent e) {
            sSetBackCount.selectAll();
          }
        });
        sSetBackCount.addVerifyListener(new VerifyListener() {
            public void verifyText(final VerifyEvent e) {
                e.doit = Utils.isOnlyDigits(e.text);
            }
        });
        sSetBackCount.setLayoutData(new GridData(48, SWT.DEFAULT));
        bIsMaximum = new Button(group3, SWT.CHECK);

        final Label delayLabel = new Label(group3, SWT.NONE);
        delayLabel.setText("Delay:");
        sSetBackHours = new Text(group3, SWT.BORDER);
        sSetBackHours.addFocusListener(new FocusAdapter() {
          public void focusGained(final FocusEvent e) {
            sSetBackHours.selectAll();
          }
        });
        sSetBackHours.addVerifyListener(new VerifyListener() {
            public void verifyText(final VerifyEvent e) {
                e.doit = Utils.isOnlyDigits(e.text);
            }
        });
        label7 = new Label(group3, SWT.NONE);
        label7.setText(":");
        sSetBackCount.addModifyListener(new org.eclipse.swt.events.ModifyListener() {
            public void modifyText(org.eclipse.swt.events.ModifyEvent e) {
                getShell().setDefaultButton(bApplySetback);
                bApplySetback.setEnabled(true);
            }
        });
        bIsMaximum.setText("Max");
        bIsMaximum.setLayoutData(gridData6);
        sSetBackMinutes = new Text(group3, SWT.BORDER);
        sSetBackMinutes.addFocusListener(new FocusAdapter() {
          public void focusGained(final FocusEvent e) {
            sSetBackMinutes.selectAll();
          }
        });
        sSetBackMinutes.addVerifyListener(new VerifyListener() {
            public void verifyText(final VerifyEvent e) {
                e.doit = Utils.isOnlyDigits(e.text);
            }
        });
        label9 = new Label(group3, SWT.NONE);
        label9.setText(":");
        sSetBackSeconds = new Text(group3, SWT.BORDER);
        sSetBackSeconds.addFocusListener(new FocusAdapter() {
          public void focusGained(final FocusEvent e) {
            sSetBackSeconds.selectAll();
          }
        });
        sSetBackSeconds.addVerifyListener(new VerifyListener() {
View Full Code Here

    lblJob = new Label(jobsAndOrdersGroup, SWT.NONE);
    lblJob.setLayoutData(new GridData(73, SWT.DEFAULT));
    lblJob.setText("Job / Order ID");

    tJob = new Text(jobsAndOrdersGroup, SWT.BORDER);
    tJob.addFocusListener(new FocusAdapter() {
      public void focusGained(final FocusEvent e) {
        tJob.selectAll();
      }
    });
    tJob.addModifyListener(new org.eclipse.swt.events.ModifyListener() {
      public void modifyText(org.eclipse.swt.events.ModifyEvent e) {
        if(type == Editor.JOB){
          listener.setJob(tJob.getText());
        } else {
          listener.setOrderId(tJob.getText());
        }

      }
    });
    final GridData gridData_3 = new GridData(GridData.FILL, GridData.CENTER, false, false, 2, 1);
    tJob.setLayoutData(gridData_3);
    final Label startAtLabel = new Label(jobsAndOrdersGroup, SWT.NONE);
    startAtLabel.setLayoutData(new GridData());
    startAtLabel.setText("Start at");

    final Composite composite = new Composite(jobsAndOrdersGroup, SWT.NONE);
    final GridData gridData = new GridData(GridData.BEGINNING, GridData.FILL, false, false);
    composite.setLayoutData(gridData);
    final GridLayout gridLayout = new GridLayout();
    gridLayout.numColumns = 11;
    gridLayout.verticalSpacing = 0;
    gridLayout.marginWidth = 0;
    gridLayout.marginHeight = 0;
    gridLayout.horizontalSpacing = 0;
    composite.setLayout(gridLayout);

    txtYear = new Text(composite, SWT.BORDER);
    txtYear.addModifyListener(new ModifyListener() {
      public void modifyText(final ModifyEvent e) {
        if(!event)
          return;
        setTime();
      }
    });
    txtYear.setEnabled(false);
    txtYear.addVerifyListener(new VerifyListener() {
      public void verifyText(final VerifyEvent e) {
        e.doit = Utils.isOnlyDigits(e.text);
      }
    });
    txtYear.setTextLimit(4);
    final GridData gridData_7 = new GridData(GridData.FILL, GridData.CENTER, false, false);
    gridData_7.widthHint = 40;
    txtYear.setLayoutData(gridData_7);

    final Label label = new Label(composite, SWT.NONE);
    label.setText("-");

    txtMonth = new Text(composite, SWT.BORDER);
    txtMonth.addFocusListener(new FocusAdapter() {
      public void focusLost(final FocusEvent e) {
        txtMonth.setText(Utils.fill(2, txtMonth.getText()));   
      }
    });
    txtMonth.setEnabled(false);
    txtMonth.addModifyListener(new ModifyListener() {
      public void modifyText(final ModifyEvent e) { 
        if(!event)
          return;
        Utils.setBackground(1, 12, txtMonth);
        if(!txtMonth.getBackground().equals(Options.getRequiredColor()))
          setTime();
      }
    });
    txtMonth.addVerifyListener(new VerifyListener() {
      public void verifyText(final VerifyEvent e) {
        e.doit = Utils.isOnlyDigits(e.text);
      }
    });
    txtMonth.setTextLimit(2);
    final GridData gridData_9 = new GridData(GridData.FILL, GridData.CENTER, false, false);
    gridData_9.widthHint = 20;
    txtMonth.setLayoutData(gridData_9);

    final Label label_1 = new Label(composite, SWT.NONE);
    label_1.setText("-");

    txtDay = new Text(composite, SWT.BORDER);
    txtDay.addFocusListener(new FocusAdapter() {
      public void focusLost(final FocusEvent e) {
        txtDay.setText(Utils.fill(2, txtDay.getText()));
      }
    });
    txtDay.setEnabled(false);
    txtDay.addModifyListener(new ModifyListener() {
      public void modifyText(final ModifyEvent e) {
        if(!event)
          return;
        Utils.setBackground(1, 31, txtDay);
        if(!txtDay.getBackground().equals(Options.getRequiredColor()))
          setTime();
      }
    });
    txtDay.addVerifyListener(new VerifyListener() {
      public void verifyText(final VerifyEvent e) {
        e.doit = Utils.isOnlyDigits(e.text);
      }
    });
    txtDay.setTextLimit(2);
    final GridData gridData_13 = new GridData(GridData.FILL, GridData.CENTER, false, false);
    gridData_13.widthHint = 20;
    txtDay.setLayoutData(gridData_13);

    final Label label_2 = new Label(composite, SWT.NONE);
    label_2.setText("      ");

    txtHour = new Text(composite, SWT.BORDER);
    txtHour.addFocusListener(new FocusAdapter() {
      public void focusLost(final FocusEvent e) {
        txtHour.setText(Utils.fill(2, txtHour.getText()));
      }
    });
    txtHour.setEnabled(false);
    txtHour.addModifyListener(new ModifyListener() {
      public void modifyText(final ModifyEvent e) {
        if(!event)
          return;
        Utils.setBackground(0, 24, txtHour);
        if(!txtHour.getBackground().equals(Options.getRequiredColor()))
          setTime();
      }
    });
    txtHour.addVerifyListener(new VerifyListener() {
      public void verifyText(final VerifyEvent e) {
        e.doit = Utils.isOnlyDigits(e.text);
      }
    });
    txtHour.setTextLimit(2);
    final GridData gridData_14 = new GridData(GridData.FILL, GridData.CENTER, false, false);
    gridData_14.widthHint = 20;
    txtHour.setLayoutData(gridData_14);

    final Label label_3 = new Label(composite, SWT.NONE);
    label_3.setText(":");

    txtMin = new Text(composite, SWT.BORDER);
    txtMin.addFocusListener(new FocusAdapter() {
      public void focusLost(final FocusEvent e) {
        txtMin.setText(Utils.fill(2, txtMin.getText()));
      }
    });
    txtMin.setEnabled(false);
    txtMin.addModifyListener(new ModifyListener() {
      public void modifyText(final ModifyEvent e) {
        if(!event)
          return;
        Utils.setBackground(0, 60, txtMin);
        if(!txtMin.getBackground().equals(Options.getRequiredColor()))
          setTime();
      }
    });
    txtMin.addVerifyListener(new VerifyListener() {
      public void verifyText(final VerifyEvent e) {
        e.doit = Utils.isOnlyDigits(e.text);
      }
    });
    txtMin.setTextLimit(2);
    final GridData gridData_1 = new GridData(GridData.FILL, GridData.CENTER, false, false);
    gridData_1.widthHint = 20;
    txtMin.setLayoutData(gridData_1);

    final Label label_4 = new Label(composite, SWT.NONE);
    label_4.setText(":");

    txtSec = new Text(composite, SWT.BORDER);
    txtSec.addFocusListener(new FocusAdapter() {
      public void focusLost(final FocusEvent e) {
        txtSec.setText(Utils.fill(2, txtSec.getText()));
      }
    });
    txtSec.setEnabled(false);
    txtSec.addModifyListener(new ModifyListener() {
      public void modifyText(final ModifyEvent e) {
        if(!event)
          return;
        Utils.setBackground(0, 60, txtSec);
        if(!txtSec.getBackground().equals(Options.getRequiredColor()))
          setTime();
      }
    });
    txtSec.addVerifyListener(new VerifyListener() {
      public void verifyText(final VerifyEvent e) {
        e.doit = Utils.isOnlyDigits(e.text);
      }
    });
    txtSec.setTextLimit(2);
    final GridData gridData_6 = new GridData(GridData.FILL, GridData.CENTER, false, false);
    gridData_6.widthHint = 20;
    txtSec.setLayoutData(gridData_6);

    cboTimes = new Combo(jobsAndOrdersGroup, SWT.READ_ONLY);
    cboTimes.setVisibleItemCount(7);

    cboTimes.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(final SelectionEvent e) {
        normalized(cboTimes.getText());
        setTime();
        initTimes(listener.getAt());
      }
    });
    cboTimes.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false));
    priorityLabel = new Label(jobsAndOrdersGroup, SWT.NONE);
    final GridData gridData_11 = new GridData();
    priorityLabel.setLayoutData(gridData_11);
    priorityLabel.setText("Priority");

    tPriority = new Text(jobsAndOrdersGroup, SWT.BORDER);
    tPriority.addFocusListener(new FocusAdapter() {
      public void focusGained(final FocusEvent e) {
        tPriority.selectAll();
      }
    });
    tPriority.setEnabled(false);
    tPriority.addModifyListener(new org.eclipse.swt.events.ModifyListener() {
      public void modifyText(org.eclipse.swt.events.ModifyEvent e) {
        listener.setPriority(tPriority.getText());

      }
    });
    tPriority.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, false, false, 2, 1));
    titleLabel = new Label(jobsAndOrdersGroup, SWT.NONE);
    titleLabel.setLayoutData(new GridData());
    titleLabel.setText("Title");

    tTitle = new Text(jobsAndOrdersGroup, SWT.BORDER);
    tTitle.addFocusListener(new FocusAdapter() {
      public void focusGained(final FocusEvent e) {
        tTitle.selectAll();
      }
    });
    tTitle.setEnabled(false);
View Full Code Here

        final Label lblLogic = new Label(actionsGroup, SWT.NONE);
        lblLogic.setText("Logic:");

        txtLogic = new Text(actionsGroup, SWT.BORDER);
        txtLogic.addFocusListener(new FocusAdapter() {
          public void focusGained(final FocusEvent e) {
            txtLogic.selectAll();
          }
        });
        txtLogic.addModifyListener(new ModifyListener() {
          public void modifyText(final ModifyEvent e) {
            listener.setLogic(txtLogic.getText());
          }
        });
        txtLogic.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false));

        butEventsOperation = new Button(actionsGroup, SWT.NONE);
        butEventsOperation.addSelectionListener(new SelectionAdapter() {
          public void widgetSelected(final SelectionEvent e) {
            ArrayList list = new ArrayList();
            list.addAll(listener.getGroups());
           
            LogicOperationDialog logicOperationDialog = new LogicOperationDialog(SWT.NONE);
            logicOperationDialog.open(txtLogic, list);
          }
        });
        butEventsOperation.setText("Operation");

        final Label label = new Label(actionsGroup, SWT.HORIZONTAL | SWT.SEPARATOR);
        final GridData gridData_1 = new GridData(GridData.FILL, GridData.CENTER, false, false, 2, 1);
        //gridData_1.heightHint = 18;
        label.setLayoutData(gridData_1);
        label.setText("label");
        new Label(actionsGroup, SWT.NONE);

        final Group group = new Group(actionsGroup, SWT.NONE);
        group.setText("Events Group");
        final GridData gridData = new GridData(GridData.FILL, GridData.FILL, true, true, 3, 1);
        group.setLayoutData(gridData);
        final GridLayout gridLayout_1 = new GridLayout();
        gridLayout_1.numColumns = 4;
        group.setLayout(gridLayout_1);

        final Label groupLabel = new Label(group, SWT.NONE);
        groupLabel.setText("Group: ");

        txtGroup = new Text(group, SWT.BORDER);
        txtGroup.addFocusListener(new FocusAdapter() {
          public void focusGained(final FocusEvent e) {
            txtGroup.selectAll();   
          }
        });
        txtGroup.setBackground(SWTResourceManager.getColor(255, 255, 217));
       
        txtGroup.addKeyListener(new KeyAdapter() {
          public void keyPressed(final KeyEvent e) {
            if (e.keyCode == SWT.CR && !txtGroup.equals(""))
              apply();
          }
        });
        txtGroup.addModifyListener(new ModifyListener() {
          public void modifyText(final ModifyEvent e) {
            butApply.setEnabled(true);
            butEventGroupOperation.setEnabled(txtGroup.getText().length() > 0);
               
          }
        });
        txtGroup.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false, 2, 1));

        butApply = new Button(group, SWT.NONE);
        butApply.setEnabled(false);
        butApply.addSelectionListener(new SelectionAdapter() {
          public void widgetSelected(final SelectionEvent e) {
            apply();
          }
        });
        butApply.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, false, false));
        butApply.setText("Apply");

        final Label logicLabel = new Label(group, SWT.NONE);
        logicLabel.setText("Logic: ");

        txtGroupLogic = new Text(group, SWT.BORDER);
        txtGroupLogic.addFocusListener(new FocusAdapter() {
          public void focusGained(final FocusEvent e) {
            txtGroupLogic.selectAll();
          }
        });
        txtGroupLogic.addModifyListener(new ModifyListener() {
View Full Code Here

        groupStartTimeFuction.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, false, false));
        final GridLayout gridLayout = new GridLayout();
        groupStartTimeFuction.setLayout(gridLayout);

        tFunction = new Text(groupStartTimeFuction, SWT.BORDER);
        tFunction.addFocusListener(new FocusAdapter() {
         
          public void focusGained(final FocusEvent e) {
            tFunction.selectAll();
          }
        });
View Full Code Here

TOP

Related Classes of org.eclipse.swt.events.FocusAdapter

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.