Package org.pentaho.gwt.widgets.client.dialogs

Examples of org.pentaho.gwt.widgets.client.dialogs.PromptDialogBox


      // showError(e);
    }
  }

  private void promptForScheduleResourceError( final JsJob job ) {
    final PromptDialogBox prompt =
        new PromptDialogBox( Messages.getString( "fileUnavailable" ), Messages.getString( "yesDelete" ), Messages
            .getString( "no" ), false, true );
    prompt.setContent( new HTML( Messages.getString( "editScheduleResourceDoesNotExist",
        job.getFullResourceName() ) ) );

    prompt.setCallback( new IDialogCallback() {
      public void okPressed() {
        HashSet<JsJob> jobSet = new HashSet<JsJob>();
        jobSet.add( job );
        controlJobs( jobSet, "removeJob", RequestBuilder.DELETE, true );
        prompt.hide();
      }

      public void cancelPressed() {
        prompt.hide();
      }
    } );
    prompt.setWidth( "530px" );
    prompt.center();
  }
View Full Code Here

TOP

Related Classes of org.pentaho.gwt.widgets.client.dialogs.PromptDialogBox

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.