Examples of Dispatch


Examples of ag.ion.noa.internal.frame.Dispatch

      XURLTransformer xURLTranformer = (XURLTransformer)UnoRuntime.queryInterface(XURLTransformer.class, service);
      xURLTranformer.parseStrict(urls);
      XDispatch xDispatch = xDispatchProvider.queryDispatch(urls[0], "", FrameSearchFlag.GLOBAL);     
      if(xDispatch == null)
        throw new NOAException("The command URL is not valid");
      return new Dispatch(xDispatch, urls[0]);
    }
    catch(Throwable throwable) {
      throw new NOAException(throwable);
    }
  }
View Full Code Here

Examples of ag.ion.noa.internal.frame.Dispatch

      xURLTranformer.parseStrict(urls);
      XDispatch xDispatch = xDispatchProvider.queryDispatch(urls[0], "",
          FrameSearchFlag.GLOBAL);
      if (xDispatch == null)
        throw new NOAException("The command URL is not valid");
      return new Dispatch(xDispatch, urls[0]);
    } catch (Throwable throwable) {
      throw new NOAException(throwable);
    }
  }
View Full Code Here

Examples of at.molindo.notify.model.Dispatch

    }

    String key = notification.getKey();
    Version version = cPrefs.getVersion();

    return new Dispatch(_renderService.render(key, version, params), params);
  }
View Full Code Here

Examples of at.molindo.notify.model.Dispatch

    if (!channel.getNotificationTypes().contains(notification.getType())) {
      // channel not applicable for type
      throw new PushException("channel not applicable for type " + notification.getType(), false);
    }

    Dispatch dispatch = _dispatchService.create(notification, prefs, cPrefs);

    if (!channel.isConfigured(dispatch.getParams())) {
      // don't flood user after he configures this channel
      throw new PushException("channel not configured for user", false);
    }

    if (!ignoreFrequency && !Frequency.INSTANT.equals(cPrefs.getFrequency())) {
View Full Code Here

Examples of com.gwtplatform.dispatch.server.Dispatch

        return new PropertySourcesPlaceholderConfigurer();
    }

    @Bean
    public Dispatch getDispatch() {
        Dispatch instance = SpringUtils.getOrCreate(context, dispatchClass);
        return instance;
    }
View Full Code Here

Examples of com.jacob.com.Dispatch

          if (i % 10 == 0) {
            System.out.println(Thread.currentThread().getName()
                + ": Iteration " + i);
            System.out.flush();
          }
          Dispatch comPresentations = Dispatch.get(comPowerpoint,
              "Presentations").toDispatch();
          Dispatch comPresentation = Dispatch.call(
              comPresentations,
              "Open",
              getWindowsFilePathToPackageResource("test"
                  + threadID + ".ppt", this.getClass()),
              new Integer(0), new Integer(0), new Integer(0))
View Full Code Here

Examples of com.jacob.com.Dispatch

          // show the type
          argString += "(" + argType + ")";
        }
        argString += "=";
        if (argType == Variant.VariantDispatch) {
          Dispatch foo = (args[i].getDispatch());
          argString += foo;
        } else if ((argType & Variant.VariantBoolean) == Variant.VariantBoolean) {
          // do the boolean thing
          if ((argType & Variant.VariantByref) == Variant.VariantByref) {
            // boolean by ref
View Full Code Here

Examples of com.jacob.com.Dispatch

  public void testPowerpoint() {
    ComThread.InitMTA();

    ActiveXComponent component = new ActiveXComponent(
        "Powerpoint.Application");
    Dispatch comPowerpoint = component.getObject();

    try {
      PowerpointTestThread[] threads = new PowerpointTestThread[NUM_THREADS];
      for (int i = 0; i < NUM_THREADS; i++) {
        threads[i] = new PowerpointTestThread(i + 1, comPowerpoint);
View Full Code Here

Examples of com.jacob.com.Dispatch

    try {

      System.out.println("version=" + axc.getProperty("Version"));
      System.out.println("version=" + Dispatch.get(axc, "Version"));
      axc.setProperty("Visible", true);
      Dispatch workbooks = axc.getPropertyAsComponent("Workbooks");
      Dispatch workbook = Dispatch.get(workbooks, "Add").toDispatch();
      Dispatch sheet = Dispatch.get(workbook, "ActiveSheet").toDispatch();
      hookupListener(sheet, excelSheetProgramId, typeLibLocation);
      Dispatch a1 = Dispatch.invoke(sheet, "Range", Dispatch.Get,
          new Object[] { "A1" }, new int[1]).toDispatch();
      Dispatch a2 = Dispatch.invoke(sheet, "Range", Dispatch.Get,
          new Object[] { "A2" }, new int[1]).toDispatch();
      System.out.println("Inserting value into A1");
      System.out.println("Inserting calculation 2xA1 into A2");
      Dispatch.put(a1, "Value", "123.456");
      Dispatch.put(a2, "Formula", "=A1*2");
 
View Full Code Here

Examples of com.jacob.com.Dispatch

        // should we get this?
      }

      String scriptCommand = getSampleVPScriptForEval();
      // get a thread-local Dispatch from sCon
      Dispatch sc = script.sCon.toDispatch();

      // call a method on the thread-local Dispatch obtained
      // from the DispatchProxy. If you try to make the same
      // method call on the sControl object - you will get a
      // ComException.
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.