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 TypeMethodDescriptionvoid
addFile
(WFileDropWidget.File file) Returns the contents of the directory.boolean
Returns 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, uploaded
Methods 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.File
Returns whether this is a directory.- Overrides:
isDirectory
in classWFileDropWidget.File
-
addFile
-