Closed GoogleCodeExporter closed 8 years ago
I added in r809, the option of a CUSTOM FileInputType, so your code could be:
public class MyFancyLookingButton extends Composite {
public MyFancyLookingButton() {
DecoratorPanel widget = new DecoratorPanel();
initWidget(widget);
setStylePrimaryName("sprite-this-ma");
}
}
MyFancyLookingButton upload = new MyFancyLookingButton();
SingleUploader uploader = new SingleUploader(FileInputType.CUSTOM.with(upload));
RootPanel.get().add(uploader);
Let me know if it matches your needs, if not feel free to send patches which
I'll be happy to include.
- Manolo
Original comment by manuel.carrasco.m
on 29 Dec 2010 at 6:15
Just a point i forgot, your class should implement HasClickHandlers in order to
add the necessary handler to open the selection box. Optionally you can
implement HasMouseOverHandlers and HasMouseOutHandlers in order to handle these
events because your widget will be covered by the original file input
(transparent).
Original comment by manuel.carrasco.m
on 29 Dec 2010 at 7:11
Original comment by manuel.carrasco.m
on 29 Dec 2010 at 3:29
Original comment by manuel.carrasco.m
on 7 Feb 2011 at 6:31
Original issue reported on code.google.com by
philip.r...@gmail.com
on 29 Nov 2010 at 10:29