Examples of VuzeMessageBox


Examples of com.aelitis.azureus.ui.swt.views.skin.VuzeMessageBox

    installer.setListener(this);
  }

  public void open() {
   
    box = new VuzeMessageBox("","", null, 0);
    box.setSubTitle(MessageText.getString( resource_prefix + ".subtitle" ));
    box.addResourceBundle(SimplePluginInstallWindow.class,
        SkinPropertiesImpl.PATH_SKIN_DEFS, "skin3_dlg_register");
    box.setIconResource( resource_prefix + ".image" );
View Full Code Here

Examples of com.aelitis.azureus.ui.swt.views.skin.VuzeMessageBox

      mdi.showEntryByID(MultipleDocumentInterface.SIDEBAR_SECTION_PLUS);
    }
  }

  public static void openTrialAskWindow() {
    VuzeMessageBox box = new VuzeMessageBox(
        MessageText.getString("dlg.try.trial.title"),
        MessageText.getString("dlg.try.trial.text"), new String[] {
          MessageText.getString("Button.turnon"),
          MessageText.getString("Button.cancel")
        }, 0);
    box.setButtonVals(new Integer[] {
      SWT.OK,
      SWT.CANCEL,
    });
    box.addResourceBundle(FeatureManagerUI.class,
        SkinPropertiesImpl.PATH_SKIN_DEFS, "skin3_dlg_register");
    box.setIconResource("image.burn.dlg.header");

    box.setListener(new VuzeMessageBoxListener() {
      public void shellReady(Shell shell, SWTSkinObjectContainer soExtra) {
        SWTSkin skin = soExtra.getSkin();
        String id = "dlg.register.trialask";
        SWTSkinObject so = skin.createSkinObject(id, id, soExtra);

        SWTSkinObjectText soLink = (SWTSkinObjectText) skin.getSkinObject(
            "link", so);
        if (soLink != null) {
          soLink.addUrlClickedListener(new SWTSkinObjectText_UrlClickedListener() {
            public boolean urlClicked(URLInfo urlInfo) {
              String url = ConstantsVuze.getDefaultContentNetwork().getExternalSiteRelativeURL(
                  "plus_tos.start", true);
              Utils.launch(url);
              return true;
            }
          });
        }
      }
    });

    box.open(new UserPrompterResultListener() {
      public void prompterClosed(int result) {
        if (result == SWT.OK) {
          SimpleTimer.addEvent("createTrial", SystemTime.getCurrentTime(),
              new TimerEventPerformer() {
                public void perform(TimerEvent event) {
View Full Code Here

Examples of com.aelitis.azureus.ui.swt.views.skin.VuzeMessageBox

    }
   
    try {
      String tryNo = (trytwo ? "2" : "1");
      final SWTSkinObjectTextbox[] key = new SWTSkinObjectTextbox[1];
      entryWindow = new VuzeMessageBox(
          MessageText.getString("dlg.auth.title"),
          MessageText.getString("dlg.auth.enter.line.try." + tryNo),
          new String[] {
            MessageText.getString("Button.agree"),
            MessageText.getString("Button.cancel")
View Full Code Here

Examples of com.aelitis.azureus.ui.swt.views.skin.VuzeMessageBox

   *
   *
   * @since 4.1.0.5
   */
  private static void openTrialLicenceSuccessWindow() {
    final VuzeMessageBox box = new VuzeMessageBox(
        MessageText.getString("dlg.auth.trial.success.subtitle"),
        MessageText.getString("dlg.auth.trial.success.line1"), new String[] {
          MessageText.getString("Button.goLibrary"),
        }, 0);
    box.addResourceBundle(FeatureManagerUI.class,
        SkinPropertiesImpl.PATH_SKIN_DEFS, "skin3_dlg_register");
    box.setIconResource("image.burn.dlg.header");

    box.setListener(new VuzeMessageBoxListener() {
      public void shellReady(Shell shell, SWTSkinObjectContainer soExtra) {
        SWTSkin skin = soExtra.getSkin();
        skin.createSkinObject("dlg.register.trial.success",
            "dlg.register.trial.success", soExtra);
      }
    });

    box.open(new UserPrompterResultListener() {
      public void prompterClosed(int result) {
        if (result == 0) {
          SBC_PlusFTUX.setSourceRef("dlg-trial-installed");

          MultipleDocumentInterface mdi = UIFunctionsManager.getUIFunctions().getMDI();
View Full Code Here

Examples of com.aelitis.azureus.ui.swt.views.skin.VuzeMessageBox

      }
    });
  }

  private static void openFullLicenceSuccessWindow() {
    final VuzeMessageBox box = new VuzeMessageBox(
        MessageText.getString("dlg.auth.title"),
        MessageText.getString("dlg.auth.success.line1"), new String[] {
          MessageText.getString("Button.getstarted"),
        }, 0);
    box.setSubTitle(MessageText.getString("dlg.auth.success.subtitle"));
    box.addResourceBundle(FeatureManagerUI.class,
        SkinPropertiesImpl.PATH_SKIN_DEFS, "skin3_dlg_register");
    box.setIconResource("image.vp");

    box.setListener(new VuzeMessageBoxListener() {
      public void shellReady(Shell shell, SWTSkinObjectContainer soExtra) {
        SWTSkin skin = soExtra.getSkin();
        skin.createSkinObject("dlg.register.success", "dlg.register.success",
            soExtra);
      }
    });

    box.open(new UserPrompterResultListener() {
      public void prompterClosed(int result) {
        if (result == 0) {
          SBC_PlusFTUX.setSourceRef("dlg-plus-installed");

          MultipleDocumentInterface mdi = UIFunctionsManager.getUIFunctions().getMDI();
View Full Code Here

Examples of com.aelitis.azureus.ui.swt.views.skin.VuzeMessageBox

      }
    });
  }
 
  public static void openLicenceRevokedWindow(final Licence licence) {
    final VuzeMessageBox box = new VuzeMessageBox(
        MessageText.getString("dlg.auth.revoked"),
        MessageText.getString("dlg.auth.revoked.line1"), new String[] {
          MessageText.getString("Button.close"),
        }, 0);
    box.addResourceBundle(FeatureManagerUI.class,
        SkinPropertiesImpl.PATH_SKIN_DEFS, "skin3_dlg_register");
    box.setIconResource("image.vp");
    box.setTextIconResource("image.warn.big");

    box.setListener(new VuzeMessageBoxListener() {
      public void shellReady(Shell shell, SWTSkinObjectContainer soExtra) {
        SWTSkin skin = soExtra.getSkin();
        SWTSkinObject so = skin.createSkinObject("dlg.register.revoked",
            "dlg.register.revoked", soExtra);

        SWTSkinObjectText soLink = (SWTSkinObjectText) skin.getSkinObject(
            "link", so);
        if (soLink != null) {
          soLink.addUrlClickedListener(new SWTSkinObjectText_UrlClickedListener() {
            public boolean urlClicked(URLInfo urlInfo) {
              String url = ConstantsVuze.getDefaultContentNetwork().getExternalSiteRelativeURL(
                  "licence_revoked.start?key="
                      + UrlUtils.encode(licence.getKey()), true);
              Utils.launch(url);
              return true;
            }
          });
        }
      }
    });

    box.open(null);
  }
View Full Code Here

Examples of com.aelitis.azureus.ui.swt.views.skin.VuzeMessageBox

    box.open(null);
  }

  public static void openLicenceActivationDeniedWindow(final Licence licence) {
    final VuzeMessageBox box = new VuzeMessageBox(
        MessageText.getString("dlg.auth.denied"),
        MessageText.getString("dlg.auth.denied.line1"), new String[] {
          MessageText.getString("Button.close"),
        }, 0);
    box.addResourceBundle(FeatureManagerUI.class,
        SkinPropertiesImpl.PATH_SKIN_DEFS, "skin3_dlg_register");
    box.setIconResource("image.vp");
    box.setTextIconResource("image.warn.big");

    box.setListener(new VuzeMessageBoxListener() {
      public void shellReady(Shell shell, SWTSkinObjectContainer soExtra) {
        SWTSkin skin = soExtra.getSkin();
        SWTSkinObject so = skin.createSkinObject("dlg.register.denied",
            "dlg.register.denied", soExtra);

        SWTSkinObjectText soLink = (SWTSkinObjectText) skin.getSkinObject(
            "link", so);
        if (soLink != null) {
          soLink.addUrlClickedListener(new SWTSkinObjectText_UrlClickedListener() {
            public boolean urlClicked(URLInfo urlInfo) {
              String url = ConstantsVuze.getDefaultContentNetwork().getExternalSiteRelativeURL(
                  "licence_denied.start?key="
                      + UrlUtils.encode(licence.getKey()), true);
              Utils.launch(url);
              return true;
            }
          });
        }
      }
    });

    box.open(null);
  }
View Full Code Here

Examples of com.aelitis.azureus.ui.swt.views.skin.VuzeMessageBox

    item = new MenuItem(menuDebug, SWT.NONE);
    item.setText("MsgBox");
    item.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent e) {
        VuzeMessageBox box = new VuzeMessageBox("Title", "Text", new String[] { "Ok", "Cancel" }, 0);
        box.setListener(new VuzeMessageBoxListener() {
          public void shellReady(Shell shell, SWTSkinObjectContainer soExtra) {
            SWTSkin skin = soExtra.getSkin();
            skin.createSkinObject("dlg.generic.test", "dlg.generic.test", soExtra);
            skin.layout(soExtra);
            shell.layout(true, true);
          }
        });
        box.open(null);
      }
    });

    item = new MenuItem(menuDebug, SWT.CASCADE);
    item.setText("Size");
View Full Code Here

Examples of com.aelitis.azureus.ui.swt.views.skin.VuzeMessageBox

    box.open(null);
  }

  public static void openLicenceCancelledWindow(final Licence licence) {
    final VuzeMessageBox box = new VuzeMessageBox(
        MessageText.getString("dlg.auth.cancelled"),
        MessageText.getString("dlg.auth.cancelled.line1"), new String[] {
          MessageText.getString("Button.close"),
        }, 0);
    box.addResourceBundle(FeatureManagerUI.class,
        SkinPropertiesImpl.PATH_SKIN_DEFS, "skin3_dlg_register");
    box.setIconResource("image.vp");
    box.setTextIconResource("image.warn.big");

    box.setListener(new VuzeMessageBoxListener() {
      public void shellReady(Shell shell, SWTSkinObjectContainer soExtra) {
        SWTSkin skin = soExtra.getSkin();
        SWTSkinObject so = skin.createSkinObject("dlg.register.cancelled",
            "dlg.register.cancelled", soExtra);
      }
    });

    box.open(null);
  }
View Full Code Here

Examples of com.aelitis.azureus.ui.swt.views.skin.VuzeMessageBox

  public static void openLicenceValidatingWindow() {
    if (!enabled || validatingBox != null) {
      return;
    }

    validatingBox = new VuzeMessageBox(
        MessageText.getString("dlg.auth.validating.subtitle"), null, null, 0);
    validatingBox.addResourceBundle(FeatureManagerUI.class,
        SkinPropertiesImpl.PATH_SKIN_DEFS, "skin3_dlg_register");
    validatingBox.setIconResource("image.vp");
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.