// Path: src/main/java/org/zephyrsoft/sdb2/model/ScreenContentsEnum.java
// public enum ScreenContentsEnum {
// 	ONLY_LYRICS("only lyrics", false, false, false),
// 	LYRICS_AND_CHORDS("lyrics and chords", false, true, false),
// 	LYRICS_AND_CHORD_SEQUENCE("lyrics and chord sequence", false, false, true),
// 	LYRICS_AND_CHORDS_AND_CHORD_SEQUENCE("lyrics, chords and chord sequence", false, true, true),
// 	LYRICS_AND_TRANSLATION("lyrics and translation", true, false, false),
// 	LYRICS_AND_TRANSLATION_AND_CHORDS("lyrics, translation and chords", true, true, false),
// 	LYRICS_AND_TRANSLATION_AND_CHORD_SEQUENCE("lyrics, translation and chord sequence", true, false, true),
// 	LYRICS_AND_TRANSLATION_AND_CHORDS_AND_CHORD_SEQUENCE("lyrics, translation, chords and chord sequence", true, true, true);
// 	
// 	private final String description;
// 	private final boolean showTranslation;
// 	private final boolean showChords;
// 	private final boolean showChordSequence;
// 	
// 	private ScreenContentsEnum(String description, boolean showTranslation, boolean showChords, boolean showChordSequence) {
// 		this.description = description;
// 		this.showTranslation = showTranslation;
// 		this.showChords = showChords;
// 		this.showChordSequence = showChordSequence;
// 	}
// 	
// 	public String getDescription() {
// 		return description;
// 	}
// 	
// 	public boolean shouldShowTranslation() {
// 		return showTranslation;
// 	}
// 	
// 	public boolean shouldShowChords() {
// 		return showChords;
// 	}
// 	
// 	public boolean shouldShowChordSequence() {
// 		return showChordSequence;
// 	}
// 	
// 	public String getInternalName() {
// 		return WordUtils.capitalizeFully(name(), new char[] { '_' }).replaceAll("_", "");
// 	}
// 	
// 	public static ScreenContentsEnum withInternalName(String internalName) {
// 		for (ScreenContentsEnum sce : values()) {
// 			if (sce.getInternalName().equalsIgnoreCase(internalName)) {
// 				return sce;
// 			}
// 		}
// 		return null;
// 	}
// }


import java.awt.Component;
import javax.swing.DefaultListCellRenderer;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.ListCellRenderer;
import org.zephyrsoft.sdb2.model.ScreenContentsEnum;
/*
 * This file is part of the Song Database (SDB).
 *
 * SDB is free software: you can redistribute it and/or modify it
 * under the terms of the GNU General Public License 3.0 as published by
 * the Free Software Foundation.
 *
 * SDB 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 3.0 for more details.
 *
 * You should have received a copy of the GNU General Public License 3.0
 * along with SDB. If not, see <http://www.gnu.org/licenses/>.
 */
package org.zephyrsoft.sdb2.gui.renderer;




/**
 * A {@link ListCellRenderer} for {@link ScreenContentsEnum} values.
 */
public class ScreenContentsCellRenderer implements ListCellRenderer<ScreenContentsEnum> {
	
	protected DefaultListCellRenderer defaultRenderer = new DefaultListCellRenderer();
	
	@Override
// Path: src/main/java/org/zephyrsoft/sdb2/model/ScreenContentsEnum.java
// public enum ScreenContentsEnum {
// 	ONLY_LYRICS("only lyrics", false, false, false),
// 	LYRICS_AND_CHORDS("lyrics and chords", false, true, false),
// 	LYRICS_AND_CHORD_SEQUENCE("lyrics and chord sequence", false, false, true),
// 	LYRICS_AND_CHORDS_AND_CHORD_SEQUENCE("lyrics, chords and chord sequence", false, true, true),
// 	LYRICS_AND_TRANSLATION("lyrics and translation", true, false, false),
// 	LYRICS_AND_TRANSLATION_AND_CHORDS("lyrics, translation and chords", true, true, false),
// 	LYRICS_AND_TRANSLATION_AND_CHORD_SEQUENCE("lyrics, translation and chord sequence", true, false, true),
// 	LYRICS_AND_TRANSLATION_AND_CHORDS_AND_CHORD_SEQUENCE("lyrics, translation, chords and chord sequence", true, true, true);
// 	
// 	private final String description;
// 	private final boolean showTranslation;
// 	private final boolean showChords;
// 	private final boolean showChordSequence;
// 	
// 	private ScreenContentsEnum(String description, boolean showTranslation, boolean showChords, boolean showChordSequence) {
// 		this.description = description;
// 		this.showTranslation = showTranslation;
// 		this.showChords = showChords;
// 		this.showChordSequence = showChordSequence;
// 	}
// 	
// 	public String getDescription() {
// 		return description;
// 	}
// 	
// 	public boolean shouldShowTranslation() {
// 		return showTranslation;
// 	}
// 	
// 	public boolean shouldShowChords() {
// 		return showChords;
// 	}
// 	
// 	public boolean shouldShowChordSequence() {
// 		return showChordSequence;
// 	}
// 	
// 	public String getInternalName() {
// 		return WordUtils.capitalizeFully(name(), new char[] { '_' }).replaceAll("_", "");
// 	}
// 	
// 	public static ScreenContentsEnum withInternalName(String internalName) {
// 		for (ScreenContentsEnum sce : values()) {
// 			if (sce.getInternalName().equalsIgnoreCase(internalName)) {
// 				return sce;
// 			}
// 		}
// 		return null;
// 	}
// }


// Path: src/main/java/org/zephyrsoft/sdb2/gui/renderer/ScreenContentsCellRenderer.java
import java.awt.Component;
import javax.swing.DefaultListCellRenderer;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.ListCellRenderer;
import org.zephyrsoft.sdb2.model.ScreenContentsEnum;

/*
 * This file is part of the Song Database (SDB).
 *
 * SDB is free software: you can redistribute it and/or modify it
 * under the terms of the GNU General Public License 3.0 as published by
 * the Free Software Foundation.
 *
 * SDB 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 3.0 for more details.
 *
 * You should have received a copy of the GNU General Public License 3.0
 * along with SDB. If not, see <http://www.gnu.org/licenses/>.
 */
package org.zephyrsoft.sdb2.gui.renderer;




/**
 * A {@link ListCellRenderer} for {@link ScreenContentsEnum} values.
 */
public class ScreenContentsCellRenderer implements ListCellRenderer<ScreenContentsEnum> {
	
	protected DefaultListCellRenderer defaultRenderer = new DefaultListCellRenderer();
	
	@Override
	public Component getListCellRendererComponent(JList<? extends ScreenContentsEnum> list, ScreenContentsEnum value,