View Javadoc

1   /*
2    * Created on May 3, 2007
3    *
4    */
5   package org.musicontroller.gui.components;
6   
7   
8   import java.util.List;
9   
10  import org.apache.tapestry.BaseComponent;
11  import org.musicontroller.core.Playlist;
12  import org.musicontroller.dao.BagAndKeywordUtils;
13  import org.musicontroller.gui.edit.AiRelationBean;
14  
15  public abstract class AIList extends BaseComponent {
16  	
17  	public abstract Playlist getPlaylist();
18  		
19  	/**
20  	 * Returns a list of <tt>AiRelationBean</tt> objects constructed from
21  	 * the playlist passed to the component.
22  	 * @return A list of <tt>AiRelationBean</tt> objects.
23  	 */
24  	public List<AiRelationBean> getAiRelationList() {
25  		return BagAndKeywordUtils.buildAiRelationBeanList(getPlaylist());
26  	}	
27  }