View Javadoc

1   package org.musicontroller.gui.edit;
2   
3   import java.io.Serializable;
4   
5   /**
6    * Helper bean class that stores the ID, description and a "mergeIndicator"
7    * for a playlist. This bean is used in the playlist edit page.
8    * @author Hans Drexler.
9    * @version $Id: PlaylistMergeBean.java,v 1.1 2010/03/16 18:55:42 varienaja Exp $
10   */
11  public class PlaylistMergeBean implements Serializable {
12  
13  	private static final long serialVersionUID = 2007072801L;
14  
15  	/**
16  	 * Stores the playlist id.
17  	 */
18  	private long _playlistid;
19  	
20  	/**
21  	 * Stores a textual description of the playlist.
22  	 */
23  	private String _description;
24  	
25  	/**
26  	 * Stores a boolean value indicating if this playlist should be
27  	 * merged into one with another playlist.
28  	 */
29  	private boolean _mergeIndicator;
30  	
31  	/**
32  	 * Getter for the playlist id.
33  	 * @return The playlist id.
34  	 */
35  	public long getPlaylistId() {
36  		return _playlistid;
37  	}
38  
39  	public void setPlaylistId(long playlistId) {
40  		_playlistid = playlistId;
41  	}
42  
43  	/**
44  	 * Setter for the playlist description.
45  	 * @param description The playlist description.
46  	 */
47  	public void setPlaylistDescription(String description) {
48  		_description = description;
49  	}
50  
51  	/**
52  	 * Getter for the playlist description.
53  	 * @return The playlist description.
54  	 */
55  	public Object getPlaylistDescription() {
56  		return _description;
57  	}
58  
59  	/**
60  	 * Setter for the merge indicator.
61  	 * @param indicator The indicator.
62  	 */
63  	public void setMergeIndicator(boolean indicator) {
64  		_mergeIndicator = indicator;
65  	}
66  
67  	/**
68  	 * Getter for the merge indicator.
69  	 * @return The merge indicator.
70  	 */
71  	public boolean getMergeIndicator() {
72  		return _mergeIndicator;
73  	}
74  }