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

Examples of org.pentaho.gwt.widgets.client.dialogs.MessageDialogBox.center()


  }

  private void displayErrorInMessageBox( String title, String message ) {
    MessageDialogBox messageBox = new MessageDialogBox( title, message, false, false, true
        , Messages.getString( "close" ) );
    messageBox.center();
  }

  public void deleteUsers() {

    StringBuilder selectedUsers = new StringBuilder();
View Full Code Here


          @Override
          public void cancelPressed() {
          }
        } );
        warning.center();
      }
    }
  }

  class NewUserListener implements ClickHandler {
View Full Code Here

          @Override
          public void cancelPressed() {
          }
        } );
        warning.center();
      }
    }
  }

  class EditPasswordListener implements ClickHandler {
View Full Code Here

                      refreshPermission();
                      MessageDialogBox dialogBox =
                          new MessageDialogBox(
                              Messages.getString( "error" ), Messages.getString( "couldNotGetPermissions", response.getStatusText() ), //$NON-NLS-1$ //$NON-NLS-2$
                              false, false, true );
                      dialogBox.center();
                    }
                  }

                  @Override
                  public void onError( Request request, Throwable exception ) {
View Full Code Here

                    refreshPermission();
                    MessageDialogBox dialogBox =
                        new MessageDialogBox(
                            Messages.getString( "error" ), Messages.getString( "couldNotGetPermissions", exception.getLocalizedMessage() ), //$NON-NLS-1$ //$NON-NLS-2$
                            false, false, true );
                    dialogBox.center();
                  }
                } );
              } catch ( RequestException e ) {
                inheritsCheckBox.setValue( false );
                refreshPermission();
View Full Code Here

                refreshPermission();
                MessageDialogBox dialogBox =
                    new MessageDialogBox(
                        Messages.getString( "error" ), Messages.getString( "couldNotGetPermissions", e.getLocalizedMessage() ), //$NON-NLS-1$ //$NON-NLS-2$
                        false, false, true );
                dialogBox.center();
              }
            }
          };
          permissionsOverwriteConfirm.setCallback( callback );
          permissionsOverwriteConfirm.center();
View Full Code Here

        public void onError( Request request, Throwable exception ) {
          MessageDialogBox dialog =
              new MessageDialogBox(
                  Messages.getString( "error" ), Messages.getString( "couldNotGetUserSettings" ), true, false, true ); //$NON-NLS-1$ //$NON-NLS-2$
          dialog.center();
        }

        public void onResponseReceived( Request request, Response response ) {
          JsArray<JsSetting> jsSettings = null;
          try {
View Full Code Here

        @Override
        public void onError( Request request, Throwable exception ) {
          MessageDialogBox dialogBox =
              new MessageDialogBox( Messages.getString( "error" ), exception.toString(), false, false, true ); //$NON-NLS-1$
          dialogBox.center();
        }

        @Override
        public void onResponseReceived( Request request, Response response ) {
          Boolean hasBlockouts = Boolean.valueOf( response.getText() );
View Full Code Here

        }
      } );
    } catch ( RequestException e ) {
      MessageDialogBox dialogBox = new MessageDialogBox( Messages.getString( "error" ), e.toString(), //$NON-NLS-1$
          false, false, true );
      dialogBox.center();
    }
    IWizardPanel[] wizardPanels = { scheduleEditorWizardPanel };
    setWizardPanels( wizardPanels );
    setPixelSize( 475, 465 );
    center();
View Full Code Here

      addBlockoutPeriodRequest.sendRequest( addBlockoutParams.toString(), new RequestCallback() {
        @Override
        public void onError( Request request, Throwable exception ) {
          MessageDialogBox dialogBox =
              new MessageDialogBox( Messages.getString( "error" ), exception.toString(), false, false, true ); //$NON-NLS-1$
          dialogBox.center();
          setDone( false );
        }

        @Override
        public void onResponseReceived( Request request, Response response ) {
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.