createHTML(buttons, deck, "Red", "#ff9999");
createHTML(buttons, deck, "Green", "#ccffcc");
createHTML(buttons, deck, "Blue", "#cacaf7");
createHTML(buttons, deck, "Yellow", "#ffcc66");
Button clearButton = new Button("Clear Selection", new ClickHandler() {
public void onClick(ClickEvent event) {
deck.clearSelection();
}
});
clearButton.getElement().getStyle().setMarginLeft(10, Style.Unit.PX);
buttons.add(clearButton);
SimpleToggleButton enableDisableButton = new SimpleToggleButton("Disable Animation");
enableDisableButton.addChangeHandler(new ChangeHandler() {
public void onChange(ChangeEvent event) {