public class FileUploadSource extends java.lang.Object implements FileSelectorSource
Constructor and Description |
---|
FileUploadSource() |
Modifier and Type | Method and Description |
---|---|
void |
configureGrid(FileSelectionWidget fileSelectionWidget,
<any> grid) |
void |
configureToolbar(FileSelectionWidget fileSelectionWidget,
ToolBar toolbar) |
boolean |
consumes(SelectedFileWrapper value) |
DownloadProperties |
getDownloadPropertiesFor(SelectedFileWrapper selectedItem) |
ImageResource |
getIconFor(SelectedFileWrapper value) |
java.lang.String |
getInvalidFileMessage() |
java.lang.String |
getInvalidFileTitle() |
ImageResource |
getLegacyUploadBtnIcon() |
java.lang.String |
getLegacyUploadBtnText() |
java.lang.String |
getTypeDescription(SelectedFileWrapper value) |
java.lang.String |
getUploadDialogBtnText() |
java.lang.String |
getUploadDialogHeadingText() |
java.lang.String |
getUploadDialogLabelText() |
java.lang.String |
getUploadedFileDescription() |
ImageResource |
getUploadedFileIcon() |
FileUploadFilter |
getUploadFilter() |
void |
init(FileSelectionWidget fileSelectionWidget) |
boolean |
isDisplayLegacyUpload() |
boolean |
isDownloadEnabled(SelectedFileWrapper item) |
boolean |
isEditNameEnabled(SelectedFileWrapper selectedItem) |
boolean |
isEnableDownload() |
boolean |
isEnableNameEditing() |
boolean |
isValid() |
void |
setDisplayLegacyUpload(boolean displayLegacyUpload) |
void |
setEnableDownload(boolean enableDownload) |
void |
setEnableNameEditing(boolean enableNameEditing) |
void |
setInvalidFileMessage(java.lang.String invalidFileMessage) |
void |
setInvalidFileTitle(java.lang.String invalidFileTitle) |
void |
setLegacyUploadBtnIcon(ImageResource legacyUploadBtnIcon) |
void |
setLegacyUploadBtnText(java.lang.String legacyUploadBtnText) |
void |
setUploadDialogBtnText(java.lang.String uploadDialogBtnText) |
void |
setUploadDialogHeadingText(java.lang.String uploadHeadingText) |
void |
setUploadDialogLabelText(java.lang.String uploadDialogLabelText) |
void |
setUploadedFileDescription(java.lang.String uploadedFileDescription) |
void |
setUploadedFileIcon(ImageResource uploadedFileIcon) |
void |
setUploadFilter(FileUploadFilter uploadFilter) |
public void init(FileSelectionWidget fileSelectionWidget)
init
in interface FileSelectorSource
public void configureToolbar(FileSelectionWidget fileSelectionWidget, ToolBar toolbar)
configureToolbar
in interface FileSelectorSource
public void configureGrid(FileSelectionWidget fileSelectionWidget, <any> grid)
configureGrid
in interface FileSelectorSource
public boolean consumes(SelectedFileWrapper value)
consumes
in interface FileSelectorSource
public ImageResource getIconFor(SelectedFileWrapper value)
getIconFor
in interface FileSelectorSource
public ImageResource getUploadedFileIcon()
public void setUploadedFileIcon(ImageResource uploadedFileIcon)
public java.lang.String getUploadedFileDescription()
public void setUploadedFileDescription(java.lang.String uploadedFileDescription)
public boolean isEditNameEnabled(SelectedFileWrapper selectedItem)
isEditNameEnabled
in interface FileSelectorSource
public void setEnableNameEditing(boolean enableNameEditing)
public boolean isEnableNameEditing()
public boolean isDownloadEnabled(SelectedFileWrapper item)
isDownloadEnabled
in interface FileSelectorSource
public boolean isEnableDownload()
public void setEnableDownload(boolean enableDownload)
public boolean isDisplayLegacyUpload()
public void setDisplayLegacyUpload(boolean displayLegacyUpload)
public java.lang.String getLegacyUploadBtnText()
public void setLegacyUploadBtnText(java.lang.String legacyUploadBtnText)
public java.lang.String getUploadDialogHeadingText()
public void setUploadDialogHeadingText(java.lang.String uploadHeadingText)
public java.lang.String getUploadDialogBtnText()
public void setUploadDialogBtnText(java.lang.String uploadDialogBtnText)
public java.lang.String getUploadDialogLabelText()
public void setUploadDialogLabelText(java.lang.String uploadDialogLabelText)
public FileUploadFilter getUploadFilter()
public void setUploadFilter(FileUploadFilter uploadFilter)
public ImageResource getLegacyUploadBtnIcon()
public void setLegacyUploadBtnIcon(ImageResource legacyUploadBtnIcon)
public DownloadProperties getDownloadPropertiesFor(SelectedFileWrapper selectedItem)
getDownloadPropertiesFor
in interface FileSelectorSource
public java.lang.String getTypeDescription(SelectedFileWrapper value)
getTypeDescription
in interface FileSelectorSource
public void setInvalidFileMessage(java.lang.String invalidFileMessage)
public java.lang.String getInvalidFileMessage()
public void setInvalidFileTitle(java.lang.String invalidFileTitle)
public java.lang.String getInvalidFileTitle()
public boolean isValid()
isValid
in interface FileSelectorSource