@Override
protected void onRender(Element parent, int index) {
super.onRender(parent, index);
ColorPalette palette = new ColorPalette();
palette.addListener(Events.Select, new Listener<ColorPaletteEvent>() {
public void handleEvent(ColorPaletteEvent be) {
Info.display("Event", be.getColor() + " was selected");
}
});