Package com.jitcaforwin.basic.exceptions

Examples of com.jitcaforwin.basic.exceptions.WindowDeletedException


  public long getRight() throws WindowDeletedException {
    try {
      return this.iTunesCom.getPropertyAsLong("Right");
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new WindowDeletedException(this);
    }
  }
View Full Code Here


  public void setRight(long right) throws WindowDeletedException, WindowException {
    try {
      this.iTunesCom.setProperty("Right", right);
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new WindowDeletedException(this);
    } catch (ITUNES_E_OBJECTLOCKED e) {
      throw new WindowException("Window is maximized, or is not a browser or playlist window.");
    }
  }
View Full Code Here

  public long getWidth() throws WindowDeletedException {
    try {
      return this.iTunesCom.getPropertyAsLong("Width");
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new WindowDeletedException(this);
    }
  }
View Full Code Here

  public void setWidth(long width) throws WindowDeletedException, WindowException {
    try {
      this.iTunesCom.setProperty("Width", width);
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new WindowDeletedException(this);
    } catch (ITUNES_E_OBJECTLOCKED e) {
      throw new WindowException("Window is maximized, or is not a browser or playlist window.");
    }
  }
View Full Code Here

  public long getHeight() throws WindowDeletedException {
    try {
      return this.iTunesCom.getPropertyAsLong("Height");
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new WindowDeletedException(this);
    }
  }
View Full Code Here

  public void setHeight(long height) throws WindowDeletedException, WindowException {
    try {
      this.iTunesCom.setProperty("Height", height);
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new WindowDeletedException(this);
    } catch (ITUNES_E_OBJECTLOCKED e) {
      throw new WindowException("Window is maximized, or is not a browser or playlist window.");
    }
  }
View Full Code Here

  public String getName() throws WindowDeletedException {
    try {
      return this.iTunesCom.getPropertyAsString("Name");
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new WindowDeletedException(this);
    }
  }
View Full Code Here

  public ITWindowKind getKind() throws WindowDeletedException {
    try {
      return new ITWindowKind(this.iTunesCom.getPropertyAsEnum("Kind"));
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new WindowDeletedException(this);
    }
  }
View Full Code Here

  public boolean isVisible() throws WindowDeletedException {
    try {
      return this.iTunesCom.getPropertyAsBoolean("Visible");
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new WindowDeletedException(this);
    }
  }
View Full Code Here

  public void setVisible(boolean shouldBeVisible) throws WindowDeletedException, WindowException {
    try {
      this.iTunesCom.setProperty("Visible", shouldBeVisible);
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new WindowDeletedException(this);
    } catch (E_NOINTERFACE e) {
      throw new WindowException("This is the main browser window");
    }
  }
View Full Code Here

TOP

Related Classes of com.jitcaforwin.basic.exceptions.WindowDeletedException

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.