Package org.latexlab.docs.client.content.dialogs.StaticActionDialog

Examples of org.latexlab.docs.client.content.dialogs.StaticActionDialog.ActionDialogOption


  private void execute(final NewDocumentStartCommand cmd) {
    Date now = new Date();
    StaticActionDialog ad = StaticActionDialog.get();
    ad.update("New Document", "Do you want to start the new document in a new window?",
        new ActionDialogOption[] {
        new ActionDialogOption("Open New Window", new SystemOpenPageCommand("Untitled" + now.getTime(), "/docs", false)),
        new ActionDialogOption("Use Current Window", new SystemOpenPageCommand("Untitled" + now.getTime(), "/docs", true))
      }
    );
    ad.center();
  }
View Full Code Here


      StaticActionDialog actionDialog = StaticActionDialog.get();
      actionDialog.update("View Exported Document",
          "A " + cmd.getExportFormat() + " version of the current " +
          "document has been compiled and is available for viewing.",
          new ActionDialogOption[] {
            new ActionDialogOption("View " + cmd.getExportFormat() + " Document",
              new SystemOpenPageCommand(currentDocument.getDocumentId() + "_exp", url, false))
        }
        );
      actionDialog.center();
      }
View Full Code Here

            String url = "/docs?docid=" + result.getDocumentId();
            StaticActionDialog actionDialog = StaticActionDialog.get();
      actionDialog.update("Open Copied Document",
          "A copy of the current document has been created and is available for editing.",
          new ActionDialogOption[] {
          new ActionDialogOption("Open Copied Document",
              new SystemOpenPageCommand(result.getDocumentId(), url, false))
        }
      );
      actionDialog.center();
          }
View Full Code Here

TOP

Related Classes of org.latexlab.docs.client.content.dialogs.StaticActionDialog.ActionDialogOption

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.