Examples of DebugDialogBox


Examples of com.gadglet.client.gwt.ui.DebugDialogBox

  /**
   * @param isSecure (if https - true, else false)
   * @return the URL for the gadget server.
   */
  public static String getGadgetserver(boolean isSecure) {
    DebugDialogBox errorNotifier = DebugDialogBox.getErrorNotifier();
    String serverName = null;
    String serverNamePref = "://";
    int nameStart = 0;
    if (getGadgetXmlUrl().indexOf(serverNamePref) > 0) {
      try {
        nameStart = getGadgetXmlUrl().indexOf(serverNamePref)
            + serverNamePref.length();
        serverName = getGadgetXmlUrl().substring(nameStart,
            getGadgetXmlUrl().indexOf("/", nameStart));
      } catch (Exception e) {

        errorNotifier.showError(0, e.getMessage());
      }
    } else {
      serverName = SharedConstants.defaultGadgetServer;
    }

View Full Code Here

Examples of com.gadglet.client.gwt.ui.DebugDialogBox

  /**
   * @return the name of the gadget as defined on the gadgets server
   *
   */
  public static String getGadgetNameFromXmlUrl() {
    DebugDialogBox errorNotifier = DebugDialogBox.getErrorNotifier();
    String gadgetName = null;
    String gadgetLocation = GadgetUtils.getGadgetXmlUrl();
    try {
      int gadgetNameSart = gadgetLocation
          .indexOf(SharedConstants.gadgetDirName)
          + SharedConstants.gadgetDirName.length();
      gadgetName = gadgetLocation.substring(gadgetNameSart,
          gadgetLocation.indexOf("/", gadgetNameSart));
    } catch (Exception e) {

      errorNotifier.showError(0, e.getMessage());
    }

    return gadgetName;
  }
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.