Examples of addTraverseListener()


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

   
   
    final Text userStatusTxt = new Text(composite,SWT.SINGLE | SWT.BORDER | SWT.LEFT);
    userStatusTxt.setText(getStatusInfo());
    userStatusTxt.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));
    userStatusTxt.addTraverseListener(new TraverseListener() {
     
      @Override
      public void keyTraversed(TraverseEvent e) {
        if(e.detail == SWT.TRAVERSE_RETURN){
          //TODO 更新状态
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.