Package com.jitcaforwin.basic.api.exceptions

Examples of com.jitcaforwin.basic.api.exceptions.WindowDeletedException


  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

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

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

  public void setMinimized(boolean shouldBeMinimized) throws WindowDeletedException {
    try {
      this.iTunesCom.setProperty("Minimized", shouldBeMinimized);
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new WindowDeletedException(this);
    }
  }
View Full Code Here

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

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

  public void setMaximized(boolean shouldBeMaximized) throws WindowDeletedException, WindowException {
    try {
      this.iTunesCom.setProperty("Maximized", shouldBeMaximized);
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new WindowDeletedException(this);
    } catch (ITUNES_E_OBJECTLOCKED e) {
      throw new WindowException("Window is not maximizable.");
    }
  }
View Full Code Here

TOP

Related Classes of com.jitcaforwin.basic.api.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.