Esempio n. 1
0
 public void setMarkedTracks(final IMp3Track[] tracks) {
   if (Arrays.equals(tracks, markedTracks)) {
     return;
   }
   this.markedTracks = tracks;
   trackDetailModel.setSelectedTrack(tracks.length > 0 ? tracks[0] : null);
 }
Esempio n. 2
0
 public void clearCurrentSelection() {
   currentSelection.clear();
   trackDetailModel.setSelectedTrack(null);
   fireTrackSelectionChanged();
 }
Esempio n. 3
0
 public void removeFromCurrentSelection(int[] selectedIndices) {
   currentSelection.removeTracks(selectedIndices);
   trackDetailModel.setSelectedTrack(markedTracks.length > 0 ? markedTracks[0] : null);
   fireTrackSelectionChanged();
 }