View Javadoc

1   /*
2    * Created on Jun 20, 2005
3    *
4    */
5   package org.musicontroller.gui.components;
6   
7   
8   import org.apache.tapestry.BaseComponent;
9   import org.musicontroller.core.Artist;
10  
11  
12  public abstract class ArtistLink extends BaseComponent {
13  	public abstract Artist getArtist();
14  	public abstract void setArtist(Artist artist);
15  
16  	public abstract Object[] getArtistinfo();
17  	public abstract void setArtistinfo(Object[] info);
18  
19  	public Long getArtistid() {
20  		return getArtist()==null ? (Long) getArtistinfo()[0] : Long.valueOf(getArtist().getId());
21  	}
22  	
23  	public String getArtistname() {
24  		return getArtist()==null ? (String) getArtistinfo()[1] : getArtist().getName();
25  	}
26  
27  }