ButtonCell genericButtonCellType = new ButtonCell();
FieldUpdater<EOMDocument, String> previewUpdater = new FieldUpdater<EOMDocument, String>()
{
@Override
public void update(int index, EOMDocument object, String value)
{
if (object.getByteBlob() == null) {
Window.alert("Sorry but the PDF you are requesting from the database is empty. Please select another PDF to view!");
} else {
eventBus.writePdf(object.getByteBlob(), object.getIdocNumber());
String blobURL = GWT.getHostPageBaseURL() + "sp_pdf/" + object.getPreviewBlobPath();
Window.open(blobURL, "Search And Preview - PDF Review", null);
}
}
};
Thanks for the help.
Joshua
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/2FYOO_2DttUJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment