// Path: src/main/java/ch/picard/ppimapbuilder/ui/util/PMBUIStyle.java
// public class PMBUIStyle {
// 
// 	private static Color defaultPanelColor = UIManager.getColor("Panel.background");
// 	private static float hsbVals[] = Color.RGBtoHSB(
// 			defaultPanelColor.getRed(),
// 			defaultPanelColor.getGreen(),
// 			defaultPanelColor.getBlue(),
// 			null
// 	);
// 
// 	public static final Color blurActiveTabColor = Color.getHSBColor(hsbVals[0], hsbVals[1], hsbVals[2] *= 0.97f);
// 	public static final Color blurInactiveTabColor = Color.getHSBColor(hsbVals[0], hsbVals[1], hsbVals[2] *= 0.95f);
// 
// 	public static final Color focusActiveTabColor = Color.getHSBColor(hsbVals[0], hsbVals[1], hsbVals[2] *= 0.97f);
// 	public static final Color focusInactiveTabColor = Color.getHSBColor(hsbVals[0], hsbVals[1], hsbVals[2] *= 0.84f);
// 
// 	public static final Color defaultBorderColor = Color.getHSBColor(hsbVals[0], hsbVals[1], hsbVals[2] *= 0.94f);
// 
// 	public static final Border defaultComponentBorder = new LineBorder(defaultBorderColor, 1);
// 	public static final Border fancyPanelBorder = new CompoundBorder(
// 			// Outside border 1px bottom light color
// 			new MatteBorder(0, 0, 1, 0, Color.WHITE),
// 			// Border all around panel 1px dark grey
// 			defaultComponentBorder
// 	);
// 	public static final Border emptyBorder = new EmptyBorder(0, 0, 0, 0);
// 
// }


import ch.picard.ppimapbuilder.ui.util.PMBUIStyle;
import javax.swing.*;
import javax.swing.border.EmptyBorder;
import java.awt.*;
import java.awt.event.ActionListener;
/*
 * This file is part of PPiMapBuilder.
 *
 * PPiMapBuilder 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 3 of the License, or
 * (at your option) any later version.
 *
 * PPiMapBuilder 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 PPiMapBuilder.  If not, see <http://www.gnu.org/licenses/>.
 *
 * Copyright 2015 Echeverria P.C., Dupuis P., Cornut G., Gravouil K., Kieffer A., Picard D.
 *
 */

package ch.picard.ppimapbuilder.ui.util.field;



public class ListDeletableItem {

	private final JPanel listPanel;
	private final JScrollPane scrollPane;

	public ListDeletableItem() {
		scrollPane = new JScrollPane(listPanel = new JPanel());
// Path: src/main/java/ch/picard/ppimapbuilder/ui/util/PMBUIStyle.java
// public class PMBUIStyle {
// 
// 	private static Color defaultPanelColor = UIManager.getColor("Panel.background");
// 	private static float hsbVals[] = Color.RGBtoHSB(
// 			defaultPanelColor.getRed(),
// 			defaultPanelColor.getGreen(),
// 			defaultPanelColor.getBlue(),
// 			null
// 	);
// 
// 	public static final Color blurActiveTabColor = Color.getHSBColor(hsbVals[0], hsbVals[1], hsbVals[2] *= 0.97f);
// 	public static final Color blurInactiveTabColor = Color.getHSBColor(hsbVals[0], hsbVals[1], hsbVals[2] *= 0.95f);
// 
// 	public static final Color focusActiveTabColor = Color.getHSBColor(hsbVals[0], hsbVals[1], hsbVals[2] *= 0.97f);
// 	public static final Color focusInactiveTabColor = Color.getHSBColor(hsbVals[0], hsbVals[1], hsbVals[2] *= 0.84f);
// 
// 	public static final Color defaultBorderColor = Color.getHSBColor(hsbVals[0], hsbVals[1], hsbVals[2] *= 0.94f);
// 
// 	public static final Border defaultComponentBorder = new LineBorder(defaultBorderColor, 1);
// 	public static final Border fancyPanelBorder = new CompoundBorder(
// 			// Outside border 1px bottom light color
// 			new MatteBorder(0, 0, 1, 0, Color.WHITE),
// 			// Border all around panel 1px dark grey
// 			defaultComponentBorder
// 	);
// 	public static final Border emptyBorder = new EmptyBorder(0, 0, 0, 0);
// 
// }


// Path: src/main/java/ch/picard/ppimapbuilder/ui/util/field/ListDeletableItem.java
import ch.picard.ppimapbuilder.ui.util.PMBUIStyle;
import javax.swing.*;
import javax.swing.border.EmptyBorder;
import java.awt.*;
import java.awt.event.ActionListener;

/*
 * This file is part of PPiMapBuilder.
 *
 * PPiMapBuilder 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 3 of the License, or
 * (at your option) any later version.
 *
 * PPiMapBuilder 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 PPiMapBuilder.  If not, see <http://www.gnu.org/licenses/>.
 *
 * Copyright 2015 Echeverria P.C., Dupuis P., Cornut G., Gravouil K., Kieffer A., Picard D.
 *
 */

package ch.picard.ppimapbuilder.ui.util.field;



public class ListDeletableItem {

	private final JPanel listPanel;
	private final JScrollPane scrollPane;

	public ListDeletableItem() {
		scrollPane = new JScrollPane(listPanel = new JPanel());
		scrollPane.setViewportBorder(PMBUIStyle.emptyBorder);