@Component(value="cuba_ExportDisplay") @Scope(value="prototype") public class WebExportDisplay extends java.lang.Object implements ExportDisplay
NAME| Constructor and Description |
|---|
WebExportDisplay()
Constructor with newWindow=false
|
WebExportDisplay(boolean newWindow) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isBrowserSupportsPopups() |
boolean |
isNewWindow()
Deprecated.
|
boolean |
isShowNewWindow() |
void |
setFrame(Frame frame)
INTERNAL.
|
void |
setNewWindow(boolean newWindow)
Deprecated.
|
void |
setShowNewWindow(boolean showNewWindow)
Sets explicit new window option.
|
void |
show(byte[] content,
java.lang.String resourceName,
ExportFormat format) |
void |
show(ExportDataProvider dataProvider,
java.lang.String resourceName)
Show/Download resource at client side
|
void |
show(ExportDataProvider dataProvider,
java.lang.String resourceName,
ExportFormat exportFormat)
Show/Download resource at client side
|
void |
show(FileDescriptor fileDescriptor)
Export a file from file storage.
|
void |
show(FileDescriptor fileDescriptor,
ExportFormat format)
Export a file from file storage.
|
public WebExportDisplay()
public WebExportDisplay(boolean newWindow)
newWindow - if true, show data in the same browser window;
if false, open new browser windowpublic void show(ExportDataProvider dataProvider, java.lang.String resourceName, ExportFormat exportFormat)
show in interface ExportDisplaydataProvider - ExportDataProviderresourceName - ResourceName for client sideexportFormat - ExportFormatFileDataProvider,
ByteArrayDataProviderpublic void show(ExportDataProvider dataProvider, java.lang.String resourceName)
show in interface ExportDisplaydataProvider - ExportDataProviderresourceName - ResourceName for client sideFileDataProvider,
ByteArrayDataProviderpublic void show(FileDescriptor fileDescriptor, ExportFormat format)
ExportDisplayshow in interface ExportDisplayfileDescriptor - file descriptorformat - export format, can be nullpublic void setFrame(Frame frame)
ExportDisplaysetFrame in interface ExportDisplaypublic boolean isShowNewWindow()
isShowNewWindow in interface ExportDisplaypublic void setShowNewWindow(boolean showNewWindow)
ExportDisplaysetShowNewWindow in interface ExportDisplayshowNewWindow - true if export display opens new window, false otherwisepublic void show(FileDescriptor fileDescriptor)
ExportDisplayshow in interface ExportDisplayfileDescriptor - file descriptorpublic void show(byte[] content,
java.lang.String resourceName,
ExportFormat format)
@Deprecated public boolean isNewWindow()
isShowNewWindow()@Deprecated public void setNewWindow(boolean newWindow)
setShowNewWindow(boolean)public boolean isBrowserSupportsPopups()