Package org.eclipse.swt.ole.win32

Examples of org.eclipse.swt.ole.win32.OleFrame


    Variant result = getVariantProperty(name);
    return (result != null) ? result.getBoolean() : false;
  }

  public boolean setBooleanProperty(String name, boolean value) {
    return setVariantProperty(name, new Variant(value));
  }
View Full Code Here


  public boolean setBooleanProperty(String name, boolean value) {
    return setVariantProperty(name, new Variant(value));
  }

  public String getStringProperty(String name) {
    Variant result = getVariantProperty(name);
    return (result != null) ? result.getString() : "";
  }
View Full Code Here

    Variant result = getVariantProperty(name);
    return (result != null) ? result.getString() : "";
  }

  public boolean setStringProperty(String name, String value) {
    return setVariantProperty(name, new Variant(value));
  }
View Full Code Here

  public boolean setStringProperty(String name, String value) {
    return setVariantProperty(name, new Variant(value));
  }

  public float getFloatProperty(String name) {
    Variant result = oleAutomation.getProperty(getDispID(name));
    return (result != null) ? result.getFloat() : 0.0f;
  }
View Full Code Here

    Variant result = oleAutomation.getProperty(getDispID(name));
    return (result != null) ? result.getFloat() : 0.0f;
  }

  public boolean setFloatProperty(String name, float value) {
    return oleAutomation.setProperty(getDispID(name), new Variant(value));
  }
View Full Code Here

  public boolean setFloatProperty(String name, float value) {
    return oleAutomation.setProperty(getDispID(name), new Variant(value));
  }

  public OleAutomation getAutomationProperty(String name) {
    Variant result = oleAutomation.getProperty(getDispID(name));
    return (result != null) ? result.getAutomation() : null;
  }
View Full Code Here

    Variant result = oleAutomation.getProperty(getDispID(name));
    return (result != null) ? result.getAutomation() : null;
  }

  public OleObject getObjectProperty(String name) {
    Variant result = oleAutomation.getProperty(getDispID(name));
    return (result != null) ? new OleObject(result.getAutomation(), false)
        : null;
  }
View Full Code Here

    // ReadyStateChange event
    oleControlSite.addEventListener(DISPID_ONREADYSTATECHANGE,
        new OleListener() {
          public void handleEvent(OleEvent event) {
            Variant state = event.arguments[0];
            if (flashListener != null)
              flashListener.onReadyStateChange(state.getInt());
          }
        });

    // OnProgress event
    oleControlSite.addEventListener(DISPID_ONPROGRESS, new OleListener() {
      public void handleEvent(OleEvent event) {
        Variant percentDone = event.arguments[0];
        if (percentDone != null) {
          if (flashListener != null)
            flashListener.onProgress(percentDone.getInt());
        }
      }
    });

    // FSCommand event
    oleControlSite.addEventListener(DISPID_FSCOMMAND, new OleListener() {
      public void handleEvent(OleEvent event) {
        Variant command = event.arguments[0];
        Variant args = event.arguments[1];
        if (command != null && args != null) {
          if (flashListener != null)
            flashListener.onFSCommand(command.getString(), args
                .getString());
        }
      }
    });
  }
View Full Code Here

  public void setZoomRect(int left, int top, int right, int bottom) {
    if (!created)
      return;

    Variant[] args = new Variant[4];
    args[0] = new Variant(left);
    args[1] = new Variant(top);
    args[2] = new Variant(right);
    args[3] = new Variant(bottom);

    flashObject.invokeNoReply(DISPID_SETZOOMRECT, args);
  }
View Full Code Here

  public void zoom(int factor) {
    if (!created)
      return;

    Variant[] args = new Variant[1];
    args[0] = new Variant(factor);

    flashObject.invokeNoReply(DISPID_ZOOM, args);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.swt.ole.win32.OleFrame

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.