Package com.jitcaforwin.basic.exceptions

Examples of com.jitcaforwin.basic.exceptions.WindowDeletedException


  public IITPlaylist getPlaylist() throws WindowDeletedException {
    try {
      ResultObject playlist = this.iTunesCom.callFunction("Playlist");
      return ITPlaylistImpl.newIITPlaylist(playlist.getDispatch());
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new WindowDeletedException(this);
    }
  }
View Full Code Here


  public IITTrackCollection getSelectedTracks() throws WindowDeletedException {
    try {
      ResultObject tracks = this.iTunesCom.callFunction("SelectedTracks");
      return new ITTrackCollectionImpl(tracks.getDispatch());
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new WindowDeletedException(this);
    } catch (DispatchObjectNullException e) {
      return null;
    }
  }
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

  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

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.