Package com.eclipsesource.tabris.widgets

Examples of com.eclipsesource.tabris.widgets.ClientDialog


    button.setLayoutData( new GridData( SWT.FILL, SWT.BOTTOM, true, true ) );
    button.addSelectionListener( new SelectionAdapter() {

      @Override
      public void widgetSelected( SelectionEvent e ) {
        ClientDialog dialog = createReservationDialog();
        dialog.open();
      }
    } );
  }
View Full Code Here


    GridData layoutData = new GridData( SWT.FILL, SWT.FILL, true, true );
    flightLabel.setLayoutData( layoutData );
  }

  public ClientDialog createReservationDialog() {
    ClientDialog dialog = new ClientDialog();
    dialog.setTitle( "Reservation" );
    dialog.setMessage( "Do you really want to place\na reservation?" );
    dialog.setButton( ButtonType.CANCEL, "No" );
    dialog.setButton( ButtonType.OK, "Yes", new Listener() {
     
      @Override
      public void handleEvent( Event event ) {
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append( "First Name: " + firstNameField.getText() + "\n" );
View Full Code Here

TOP

Related Classes of com.eclipsesource.tabris.widgets.ClientDialog

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.