Package com.jitcaforwin.basic.api.exceptions

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


  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 boolean isMiniPlayer() throws WindowDeletedException {
    try {
      return this.iTunesCom.getPropertyAsBoolean("MiniPlayer");
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new WindowDeletedException(this);
    }
  }
View Full Code Here

  public void setMiniPlayer(boolean shouldBeMiniPlayer) throws WindowDeletedException, WindowException {
    try {
      this.iTunesCom.setProperty("MiniPlayer", shouldBeMiniPlayer);
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new WindowDeletedException(this);
    } catch (ITUNES_E_OBJECTLOCKED e) {
      throw new WindowException("The window is maximized!");
    }
  }
View Full Code Here

  // TestTODO
  public IITTrackCollection getSelectedTracks() throws WindowDeletedException {
    try {
      return new ITTrackCollectionImpl(this.iTunesCom.getPropertyAsDispatchObject("SelectedTracks"));
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new WindowDeletedException(this);
    } catch (DispatchObjectNullException e) {
      // No Tracks selected
      return null;
    }
View Full Code Here

  public IITPlaylist getSelectedPlaylist() throws WindowDeletedException {
    try {
      return ITPlaylistImpl.newIITPlaylist(this.iTunesCom.getPropertyAsDispatchObject("SelectedPlaylist"));
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new WindowDeletedException(this);
    }
  }
View Full Code Here

  // TestTODO
  public void setSelectedPlaylist(IITPlaylist playlist) throws WindowDeletedException {
    try {
      this.iTunesCom.setProperty("SelectedPlaylist", playlist.getDispatchObject());
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new WindowDeletedException(this);
    }
  }
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.