java.lang.Object | |||
↳ | com.google.gwt.user.client.ui.UIObject | ||
↳ | com.google.gwt.user.client.ui.Widget | ||
↳ | com.google.gwt.user.client.ui.FileUpload |
A widget that wraps the HTML <input type='file'> element. This widget
must be used with FormPanel
if it is to
be submitted to a server.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gwt.user.client.ui.UIObject
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new file upload widget.
|
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This constructor may be used by subclasses to explicitly use an existing
element.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a
ChangeEvent handler. | |||||||||||
Gets the filename selected by the user.
| |||||||||||
Gets the widget's name.
| |||||||||||
Gets whether this widget is enabled.
| |||||||||||
Fired whenever a browser event is received.
| |||||||||||
Sets whether this widget is enabled.
| |||||||||||
Sets the widget's name.
| |||||||||||
Creates a FileUpload widget that wraps an existing <input
type='file'> element.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gwt.user.client.ui.Widget
| |||||||||||
From class
com.google.gwt.user.client.ui.UIObject
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.google.gwt.event.dom.client.HasChangeHandlers
| |||||||||||
From interface com.google.gwt.event.logical.shared.HasAttachHandlers | |||||||||||
From interface com.google.gwt.event.shared.HasHandlers | |||||||||||
From interface
com.google.gwt.user.client.EventListener
| |||||||||||
From interface
com.google.gwt.user.client.ui.HasName
| |||||||||||
From interface
com.google.gwt.user.client.ui.IsWidget
|
Constructs a new file upload widget.
This constructor may be used by subclasses to explicitly use an existing element. This element must be an <input> element whose type is 'file'.
element | the element to be used |
---|
Adds a ChangeEvent
handler.
handler | the change handler |
---|
HandlerRegistration
used to remove this handler
Gets the filename selected by the user. This property has no mutator, as browser security restrictions preclude setting it.
Gets whether this widget is enabled.
true
if the widget is enabled
Fired whenever a browser event is received.
event | the event received |
---|
Sets whether this widget is enabled.
enabled | true to enable the widget, false
to disable it
|
---|
Creates a FileUpload widget that wraps an existing <input
type='file'> element.
This element must already be attached to the document. If the element is
removed from the document, you must call
detachNow(Widget)
.
element | the element to be wrapped |
---|