public static class FileDocument.MediaTypeSelector extends java.lang.Object implements DataSelector
FileDocument.isImage()
,
FileDocument.isAudio()
,
FileDocument.isVideo()
,
FileDocument.isFlash()
REVISION
Constructor and Description |
---|
FileDocument.MediaTypeSelector(java.lang.String mediaType)
Build a new FileDocument MediaTypeSelector using the given media type.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isSelected(Data data)
Evaluates if a data must be selected or not.
|
public FileDocument.MediaTypeSelector(java.lang.String mediaType)
FileDocument.isImage()
FileDocument.isAudio()
FileDocument.isVideo()
FileDocument.isFlash()
mediaType
- the media type to selectpublic boolean isSelected(Data data)
DataSelector
isSelected
in interface DataSelector
data
- the data to evaluate.Copyright © 2001-2010 Jalios SA. All Rights Reserved.