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

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


      @Override
      public void execute() {
        Set<JsJob> jobs = getSelectedSet();
        final JsJob jsJob = jobs.iterator().next();

        IDialogCallback callback = new IDialogCallback() {
          public void okPressed() {
            // delete the old one
            removeBlockout( jsJob );
            refreshCallBack.okPressed();
          }

          public void cancelPressed() {
            refreshCallBack.cancelPressed();
          }
        };

        NewBlockoutScheduleDialog blockoutDialog = new NewBlockoutScheduleDialog( jsJob, callback, false, true );
        table.selectRow( list.indexOf( jsJob ) );
        blockoutDialog.setUpdateMode();
        blockoutDialog.center();
      }
    } );
    editButton.setToolTip( Messages.getString( "blockoutEdit" ) );
    removeButton = new ToolbarButton( ImageUtil.getThemeableImage( "pentaho-deletebutton" ) );
    removeButton.setEnabled( false );
    removeButton.setCommand( new Command() {
      public void execute() {

        final Set<JsJob> selectedSet = getSelectedSet();

        final Label messageTextBox = new Label( Messages.getString( "deleteBlockoutWarning", ""
            + selectedSet.size() ) );
        final PromptDialogBox blockoutDeleteWarningDialogBox =
            new PromptDialogBox( Messages.getString( "delete" ), Messages.getString( "yesDelete" ), Messages
                .getString( "no" ), true, true );
        blockoutDeleteWarningDialogBox.setContent( messageTextBox );
        final IDialogCallback callback = new IDialogCallback() {

          public void cancelPressed() {
            blockoutDeleteWarningDialogBox.hide();
          }
View Full Code Here


    performOperation( true );
  }

  protected void performOperation( boolean feedback ) {
    final ManageContentDialog dialog = new ManageContentDialog();
    dialog.setCallback( new IDialogCallback() {
      public void okPressed() {
        if ( dialog.getState() == ManageContentDialog.STATE.EDIT ) {
          OpenFileCommand cmd = new OpenFileCommand( FileCommand.COMMAND.EDIT );
          cmd.execute();
        } else if ( dialog.getState() == ManageContentDialog.STATE.SHARE ) {
View Full Code Here

            new MessageDialogBox( Messages.getString( "error" ), Messages.getString( "invalidLogin" ), false, false,
                true ) {

            }; //$NON-NLS-1$ //$NON-NLS-2$

        dialogBox.setCallback( new IDialogCallback() {
          public void cancelPressed() {
            // do nothing
          }

          public void okPressed() {
View Full Code Here

          public void onFailure( Throwable caught ) {
            MessageDialogBox dialogBox =
                new MessageDialogBox(
                    Messages.getString( "error" ), Messages.getString( "invalidLogin" ), false, false, true ); //$NON-NLS-1$ //$NON-NLS-2$
            dialogBox.setCallback( new IDialogCallback() {
              public void cancelPressed() {
                // do nothing
              }

              public void okPressed() {
View Full Code Here

        VerticalPanel vp = new VerticalPanel();
        vp.add( new Label( Messages.getString( "confirmTabClose" ) ) ); //$NON-NLS-1$
        final PromptDialogBox confirmDialog =
            new PromptDialogBox(
                Messages.getString( "confirm" ), Messages.getString( "yes" ), Messages.getString( "no" ), false, true, vp ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
        confirmDialog.setCallback( new IDialogCallback() {
          public void cancelPressed() {
          }

          public void okPressed() {
            ( (CustomFrame) ( (IFrameTabPanel) closeTab.getContent() ).getFrame() ).removeEventListeners( frameElement );
View Full Code Here

        } else {
          final MessageDialogBox dialogBox =
              new MessageDialogBox(
                  Messages.getString( "open" ), Messages.getString( "scheduleInvalidFileType", repositoryFile.getPath() ), false, false, true ); //$NON-NLS-1$ //$NON-NLS-2$

          dialogBox.setCallback( new IDialogCallback() {
            public void cancelPressed() {
            }

            public void okPressed() {
              dialogBox.hide();
View Full Code Here

    vp.add( new Label( Messages.getString( message ) ) );

    final PromptDialogBox scheduleInBackground =
        new PromptDialogBox( title, Messages.getString( "yes" ), Messages.getString( "no" ), false, true, vp ); //$NON-NLS-1$ //$NON-NLS-2$

    final IDialogCallback callback = new IDialogCallback() {
      public void cancelPressed() {
        scheduleInBackground.hide();
      }

      public void okPressed() {
View Full Code Here

      @Override
      public void onSubmitComplete( SubmitCompleteEvent sce ) {
        new RefreshRepositoryCommand().execute( false );
      }
    } );
    final IDialogCallback callback = new IDialogCallback() {

      public void cancelPressed() {
        importDialog.hide();
      }
View Full Code Here

      final PromptDialogBox fileMoveToTrashWarningDialogBox =
          new PromptDialogBox( Messages.getString( "moveToTrash" ), Messages.getString( "yesMoveToTrash" ), Messages
              .getString( "no" ), true, true );
      fileMoveToTrashWarningDialogBox.setContent( messageTextBox );

      final IDialogCallback callback = new IDialogCallback() {

        public void cancelPressed() {
          fileMoveToTrashWarningDialogBox.hide();
        }
View Full Code Here

                  }
                }
              }
              if ( promptForOptions ) {
                final OverwritePromptDialog overwriteDialog = new OverwritePromptDialog();
                final IDialogCallback callback = new IDialogCallback() {
                  public void cancelPressed() {
                    event.setMessage( "Cancel" );
                    EventBusUtil.EVENT_BUS.fireEvent( event );
                    overwriteDialog.hide();
                  }
View Full Code Here

TOP

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

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.