我正在使用通过 stackoverflow 找到的代码(请参见下文)加载图像。但是,我现在注意到“getWidget()”已被弃用。而不是等到它不再可用,我想现在解决这个问题。请问我应该用什么来代替“getWidget()”?
// Add a finish handler which will load the image once the upload finishes
existingdefaultUploader.addOnFinishUploadHandler(onReplaceFinishUploaderHandler);
existingdefaultUploader.getFileInput().getWidget().setStyleName("customButton");
existingdefaultUploader.getFileInput().getWidget().setSize("100px", "20px");
问候,
格林