Hi all,
Recently upgraded to GWTUpload v1.0.1 and it seems I'm unable to customise the Upload button anymore.
My code looks like:
uploader = new MultiUploader(IFileInput.FileInputType.BUTTON.with(wrapper));
Where wrapper is an instanceof:
private static class ButtonDecorator extends SimplePanel implements HasClickHandlers {
private final Button button;
private ButtonDecorator(Button button) {
super(button);
this.button = button;
}
@Override
public HandlerRegistration addClickHandler(ClickHandler clickHandler) {
return button.addClickHandler(clickHandler);
}
}
It also doesn't work if I omit the wrapper:
uploader = new MultiUploader(IFileInput.FileInputType.BUTTON);
The only way I get it to work is using MultiUploader's default constructor which results in an ugly default button:
uploader = new MultiUploader();
Any ideas appreciated.
Cheers,
Thomas