Package org.pentaho.mantle.client.dialogs

Examples of org.pentaho.mantle.client.dialogs.ManageContentDialog


  protected void performOperation() {
    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 ) {
          OpenFileCommand cmd = new OpenFileCommand( FileCommand.COMMAND.SHARE );
          cmd.execute();
        } else if ( dialog.getState() == ManageContentDialog.STATE.SCHEDULE ) {
          OpenFileCommand cmd = new OpenFileCommand( FileCommand.COMMAND.SCHEDULE_NEW );
          cmd.execute();
        }
      }

      public void cancelPressed() {
      }
    } );
    dialog.center();
  }
View Full Code Here

TOP

Related Classes of org.pentaho.mantle.client.dialogs.ManageContentDialog

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.