Package org.eclipse.swt.widgets

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


    }
     
    text.setToolTipText("Enter a Type name." + (contentAssistAvailable ?
            "Content Assist is available (press Ctrl + Space)" : ""));
    text.getParent().setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    text.addListener(SWT.KeyUp, this);
    text.addListener(SWT.MouseUp, this); // for paste operation
    text.addListener(SWT.Modify, this)// for content assist
   
//    newText(tc, SWT.NONE,
//    "Enter a Type name. Content Assist is available on Eclipse 3.2 and beyond (press Ctrl + Space)");
View Full Code Here


     
    text.setToolTipText("Enter a Type name." + (contentAssistAvailable ?
            "Content Assist is available (press Ctrl + Space)" : ""));
    text.getParent().setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    text.addListener(SWT.KeyUp, this);
    text.addListener(SWT.MouseUp, this); // for paste operation
    text.addListener(SWT.Modify, this)// for content assist
   
//    newText(tc, SWT.NONE,
//    "Enter a Type name. Content Assist is available on Eclipse 3.2 and beyond (press Ctrl + Space)");
View Full Code Here

    text.setToolTipText("Enter a Type name." + (contentAssistAvailable ?
            "Content Assist is available (press Ctrl + Space)" : ""));
    text.getParent().setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    text.addListener(SWT.KeyUp, this);
    text.addListener(SWT.MouseUp, this); // for paste operation
    text.addListener(SWT.Modify, this)// for content assist
   
//    newText(tc, SWT.NONE,
//    "Enter a Type name. Content Assist is available on Eclipse 3.2 and beyond (press Ctrl + Space)");

//    ContentProposalAdapter adapter = new ContentProposalAdapter(
View Full Code Here

        }
        decoration.setImage(image);
        decoration.setDescriptionText(localization.requiredField);
        decoration.show();

        text.addListener(SWT.Modify, new Listener(){

            public void handleEvent( Event event ) {
                getContainer().updateButtons();
                boolean valid = isValid(text);
                if (text.getText().trim().equals("") && valid) { //$NON-NLS-1$
View Full Code Here

          }
      });

    //add text box listeners to update the back-end username object
    //when changes are made
    userText.addListener(SWT.Modify, new Listener()
      {
        public void handleEvent(Event event)
          {
          try
            {
View Full Code Here

    Button buttonCancel = new Button(input, SWT.PUSH);
    buttonCancel.setText("Cancel");

    //we add listeners to caputre the modified information and perfom
    //actions
    userText.addListener(SWT.Modify, new Listener()
      {
        public void handleEvent(Event event)
          {
          try
            {
View Full Code Here

            buttonOK.setEnabled(false);
            }
          }
        });
   
    passwordText.addListener(SWT.Modify, new Listener()
        {
        public void handleEvent(Event event)
          {
          try
            {
View Full Code Here

            buttonOK.setEnabled(false);
            }
          }
      });

    serverPort.addListener(SWT.Modify, new Listener()
      {
        public void handleEvent(Event event)
          {
          try
            {
View Full Code Here

              }
            end.setMinutes(minutes);
            }
          });

    endSec.addListener(SWT.Modify, new Listener()
          {
          public void handleEvent(Event event)
            {
            int seconds = 0;
            try
View Full Code Here

                      }
                      break;
                    }
                  }
                };
                valueTxt.addListener(SWT.FocusOut, textListener);
                valueTxt.addListener(SWT.Traverse, textListener);
               
        // Open the text editor in the second column of the selected row.
        valueEditorActive.setEditor (valueTxt, item, 1);
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.