Package eu.webtoolkit.jwt
Class WFileDropWidget.Directory
java.lang.Object
eu.webtoolkit.jwt.WObject
eu.webtoolkit.jwt.WFileDropWidget.File
eu.webtoolkit.jwt.WFileDropWidget.Directory
- Enclosing class:
- WFileDropWidget
A nested class of
WFileDropWidget representing a WFileDropWidget.Directory.
In true linux tradition, a WFileDropWidget.Directory is a WFileDropWidget.File. However, in this case it was
more a matter of compatibility. This class was added later on and by having it inherit from
WFileDropWidget.File, the existing WFileDropWidget.drop() signal can return both Files and
Directories.
-
Nested Class Summary
Nested classes/interfaces inherited from class eu.webtoolkit.jwt.WObject
WObject.FormData -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFile(WFileDropWidget.File file) Returns the contents of the directory.booleanReturns whether this is a directory.Methods inherited from class eu.webtoolkit.jwt.WFileDropWidget.File
dataReceived, emitDataReceived, getClientFileName, getMimeType, getPath, getSize, getUploadedFile, handleIncomingData, isCancelled, isFiltered, isFilterEnabled, isUploadFinished, setFilterEnabled, setIsFiltered, uploadedMethods inherited from class eu.webtoolkit.jwt.WObject
getId, getObjectName, remove, setFormData, setObjectName, tr
-
Constructor Details
-
Directory
-
-
Method Details
-
getContents
Returns the contents of the directory. -
isDirectory
public boolean isDirectory()Description copied from class:WFileDropWidget.FileReturns whether this is a directory.- Overrides:
isDirectoryin classWFileDropWidget.File
-
addFile
-