Examples of moveItemAtIndex()


Examples of org.jampa.model.playlists.Playlist.moveItemAtIndex()

  public void moveTitleAtIndex(String playlistName, int index, AudioItem item) {
    if (_items.containsKey(playlistName)) {
      Log.getInstance(PlaylistController.class).debug("Move item " + item.getFileName() + " to index: " + index); //$NON-NLS-1$ //$NON-NLS-2$
     
      Playlist playlist = _items.get(playlistName);
      playlist.moveItemAtIndex(index, item);
     
      Controller.getInstance().getEventController().fireAudioItemChange(EventConstants.EVT_ITEM_CHANGE_IN_PLAYLIST, null, null);
    } else
      Log.getInstance(PlaylistController.class).info("Playlist not found : " + playlistName);   //$NON-NLS-1$
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.