// Path: HybridMenu-addon/src/main/java/kaesdingeling/hybridmenu/data/interfaces/ValueChangeListener.java
// public interface ValueChangeListener<T> {
// 	public void change(T value);
// }
// 
// Path: HybridMenu-addon/src/main/java/kaesdingeling/hybridmenu/design/DesignColor.java
// public class DesignColor {
// 	private int red = 255;
//     private int green = 255;
//     private int blue = 255;
//     private int alpha = 255;
//     
//     public static DesignColor get() {
//     	return new DesignColor();
//     }
//     public static DesignColor get(Color color) {
//     	return new DesignColor(color);
//     }
//     public static DesignColor get(int red, int green, int blue) {
//     	return new DesignColor(red, green, blue);
//     }
//     
//     public DesignColor() {
//     	
//     }
//     public DesignColor(Color color) {
//     	convert(color);
//     }
//     public DesignColor(int red, int green, int blue) {
//     	this.red = red;
//     	this.green = green;
//     	this.blue = blue;
//     }
// 	public int getRed() {
// 		return red;
// 	}
// 	public void setRed(int red) {
// 		this.red = red;
// 	}
// 	public int getGreen() {
// 		return green;
// 	}
// 	public void setGreen(int green) {
// 		this.green = green;
// 	}
// 	public int getBlue() {
// 		return blue;
// 	}
// 	public void setBlue(int blue) {
// 		this.blue = blue;
// 	}
// 	public int getAlpha() {
// 		return alpha;
// 	}
// 	public void setAlpha(int alpha) {
// 		this.alpha = alpha;
// 	}
// 	public void convert(Color color) {
// 		red = color.getRed();
// 	    green = color.getGreen();
// 	    blue = color.getBlue();
// 	    alpha = color.getAlpha();
// 	}
// 	public Color getColor() {
// 		return new Color(red, green, blue, alpha);
// 	}
// }


import java.util.HashSet;
import java.util.Set;
import com.vaadin.shared.ui.colorpicker.Color;
import com.vaadin.ui.Button;
import com.vaadin.ui.UI;
import kaesdingeling.hybridmenu.data.interfaces.ValueChangeListener;
import kaesdingeling.hybridmenu.design.DesignColor;
package kaesdingeling.hybridmenu.components;




public class ColorPicker extends Button {
	private static final long serialVersionUID = 2366670234096059323L;
	
	private Color value = null;
	private boolean showCss = false;
	private Set<ValueChangeListener<Color>> valueChangeListenerList = new HashSet<ValueChangeListener<Color>>();

	public ColorPicker() {
		build();
	}
	
	public ColorPicker(boolean showCss) {
		this.showCss = showCss;
		build();
	}
	
	public ColorPicker(Color value) {
		this.value = value;
		build();
	}
	
	public ColorPicker(DesignColor value) {
		this.value = value.getColor();
// Path: HybridMenu-addon/src/main/java/kaesdingeling/hybridmenu/data/interfaces/ValueChangeListener.java
// public interface ValueChangeListener<T> {
// 	public void change(T value);
// }
// 
// Path: HybridMenu-addon/src/main/java/kaesdingeling/hybridmenu/design/DesignColor.java
// public class DesignColor {
// 	private int red = 255;
//     private int green = 255;
//     private int blue = 255;
//     private int alpha = 255;
//     
//     public static DesignColor get() {
//     	return new DesignColor();
//     }
//     public static DesignColor get(Color color) {
//     	return new DesignColor(color);
//     }
//     public static DesignColor get(int red, int green, int blue) {
//     	return new DesignColor(red, green, blue);
//     }
//     
//     public DesignColor() {
//     	
//     }
//     public DesignColor(Color color) {
//     	convert(color);
//     }
//     public DesignColor(int red, int green, int blue) {
//     	this.red = red;
//     	this.green = green;
//     	this.blue = blue;
//     }
// 	public int getRed() {
// 		return red;
// 	}
// 	public void setRed(int red) {
// 		this.red = red;
// 	}
// 	public int getGreen() {
// 		return green;
// 	}
// 	public void setGreen(int green) {
// 		this.green = green;
// 	}
// 	public int getBlue() {
// 		return blue;
// 	}
// 	public void setBlue(int blue) {
// 		this.blue = blue;
// 	}
// 	public int getAlpha() {
// 		return alpha;
// 	}
// 	public void setAlpha(int alpha) {
// 		this.alpha = alpha;
// 	}
// 	public void convert(Color color) {
// 		red = color.getRed();
// 	    green = color.getGreen();
// 	    blue = color.getBlue();
// 	    alpha = color.getAlpha();
// 	}
// 	public Color getColor() {
// 		return new Color(red, green, blue, alpha);
// 	}
// }


// Path: HybridMenu-addon/src/main/java/kaesdingeling/hybridmenu/components/ColorPicker.java
import java.util.HashSet;
import java.util.Set;
import com.vaadin.shared.ui.colorpicker.Color;
import com.vaadin.ui.Button;
import com.vaadin.ui.UI;
import kaesdingeling.hybridmenu.data.interfaces.ValueChangeListener;
import kaesdingeling.hybridmenu.design.DesignColor;

package kaesdingeling.hybridmenu.components;




public class ColorPicker extends Button {
	private static final long serialVersionUID = 2366670234096059323L;
	
	private Color value = null;
	private boolean showCss = false;
	private Set<ValueChangeListener<Color>> valueChangeListenerList = new HashSet<ValueChangeListener<Color>>();

	public ColorPicker() {
		build();
	}
	
	public ColorPicker(boolean showCss) {
		this.showCss = showCss;
		build();
	}
	
	public ColorPicker(Color value) {
		this.value = value;
		build();
	}
	
	public ColorPicker(DesignColor value) {
		this.value = value.getColor();
		build();