}
private int shadeButtonCounter = 1;
private void addShadeButton(Color color, HorizontalLayout layout) {
AbstractColorPicker colorPicker = new ColorPicker(color.toString(),
color);
colorPicker.setDefaultCaptionEnabled(false);
colorPicker.setWidth("41px");
colorPicker.setId("shadebutton_" + shadeButtonCounter);
layout.addComponent(colorPicker);
layout.setComponentAlignment(colorPicker, Alignment.MIDDLE_CENTER);
++shadeButtonCounter;
}