Examples of GwtConfirmBox


Examples of org.pentaho.ui.xul.gwt.tags.GwtConfirmBox

      }
      menuBar.addSeparator();
      menuBar.addItem( menuClearMessage, new Command() {
        public void execute() {
          // confirm the clear
          GwtConfirmBox warning = new GwtConfirmBox();
          warning.setHeight( 117 );
          warning.setMessage( clearMessage );
          warning.setTitle( menuClearMessage );
          warning.setAcceptLabel( Messages.getString( "clearRecentAcceptButtonLabel" ) );
          warning.setCancelLabel( Messages.getString( "clearRecentCancelButtonLabel" ) );
          warning.addDialogCallback( new XulDialogCallback<String>() {
            public void onClose( XulComponent sender, Status returnCode, String retVal ) {
              if ( returnCode == Status.ACCEPT ) {
                filePickList.clear();
              }
            }

            public void onError( XulComponent sender, Throwable t ) {
            }
          } );
          warning.show();
        }
      } );
    } else {
      menuBar.addItem( Messages.getString( "empty" ), new Command() { //$NON-NLS-1$
          public void execute() {
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.