private void addFancyButton()
{
/*
* Add the fancy button
*/
final FancySaveButton fancy = new FancySaveButton(Index.getStrings().save());
fancy.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event)
{
fancy.setInProgress(true);
//a little timer to simulate time it takes to set loading back to false
Timer t = new Timer() {
@Override
public void run()
{
fancy.setInProgress(false);
}
};
t.schedule(2000);
}