/* * Jajuk * Copyright (C) The Jajuk Team * http://jajuk.info * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ package org.jajuk.base; import javax.swing.ImageIcon; import org.jajuk.util.IconLoader; import org.jajuk.util.JajukIcons; import org.jajuk.util.Messages; /** * An Album-Artist * <br> * Logical item. * <p> * Album artist objects are not widely used in jajuk (mainly in tracks tree view), * so we leverage the Artist and ArtistManager classes to limit complexity and * code duplication. The drawback is the need for casts from Artist to AlbumArtist. * </p> */ public class AlbumArtist extends Artist { /** * Builds an album-artist. * * @param sId album-artist guid * @param sName album-artist string */ AlbumArtist(String sId, String sName) { super(sId, sName); } /* * (non-Javadoc) * * @see org.jajuk.base.Item#getIdentifier() */ @Override public String getXMLTag() { return XML_ALBUM_ARTIST; } /* (non-Javadoc) * @see org.jajuk.base.Item#getTitle() */ @Override public String getTitle() { return Messages.getString("Item_AlbumArtist") + " : " + getName2(); } /* * (non-Javadoc) * * @see org.jajuk.base.Item#getIconRepresentation() */ @Override public ImageIcon getIconRepresentation() { return IconLoader.getIcon(JajukIcons.ARTIST); } }