Package com.vaadin.client.ui
Class VUpload
- java.lang.Object
-
- com.google.gwt.user.client.ui.UIObject
-
- com.google.gwt.user.client.ui.Widget
-
- com.google.gwt.user.client.ui.Panel
-
- com.google.gwt.user.client.ui.SimplePanel
-
- com.vaadin.client.ui.VUpload
-
- All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers
,com.google.gwt.event.shared.HasHandlers
,com.google.gwt.user.client.EventListener
,com.google.gwt.user.client.ui.AcceptsOneWidget
,com.google.gwt.user.client.ui.HasOneWidget
,com.google.gwt.user.client.ui.HasVisibility
,com.google.gwt.user.client.ui.HasWidgets
,com.google.gwt.user.client.ui.HasWidgets.ForIsWidget
,com.google.gwt.user.client.ui.IsWidget
,Iterable<com.google.gwt.user.client.ui.Widget>
public class VUpload extends com.google.gwt.user.client.ui.SimplePanel
Note, we are not using GWT FormPanel as we want to listen submitcomplete events even though the upload component is already detached.
-
-
Field Summary
Fields Modifier and Type Field Description static String
CLASSNAME
ApplicationConnection
client
For internal use only.com.google.gwt.dom.client.FormElement
element
For internal use only.com.google.gwt.user.client.ui.FileUpload
fu
FileUpload component that opens native OS dialog to select file.int
nextUploadId
For internal use only.String
paintableId
For internal use only.VButton
submitButton
Button that initiates uploading.com.google.gwt.user.client.Timer
t
When expecting big files, programmer may initiate some UI changes when uploading the file starts.
-
Constructor Summary
Constructors Constructor Description VUpload()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
disableTitle(boolean disable)
For internal use only.void
disableUpload()
For internal use only.void
enableUpload()
For internal use only.void
ensureTargetFrame()
For internal use only.protected void
onAttach()
protected void
onDetach()
void
setImmediate(boolean booleanAttribute)
For internal use only.void
submit()
For internal use only.-
Methods inherited from class com.google.gwt.user.client.ui.SimplePanel
add, getContainerElement, getWidget, iterator, remove, setWidget, setWidget
-
Methods inherited from class com.google.gwt.user.client.ui.Panel
add, adopt, clear, doAttachChildren, doDetachChildren, orphan, remove
-
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onBrowserEvent, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
-
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
-
-
-
-
Field Detail
-
CLASSNAME
public static final String CLASSNAME
- See Also:
- Constant Field Values
-
fu
public com.google.gwt.user.client.ui.FileUpload fu
FileUpload component that opens native OS dialog to select file.For internal use only. May be removed or replaced in the future.
-
client
public ApplicationConnection client
For internal use only. May be removed or replaced in the future.
-
paintableId
public String paintableId
For internal use only. May be removed or replaced in the future.
-
submitButton
public final VButton submitButton
Button that initiates uploading.For internal use only. May be removed or replaced in the future.
-
t
public com.google.gwt.user.client.Timer t
When expecting big files, programmer may initiate some UI changes when uploading the file starts. Bit after submitting file we'll visit the server to check possible changes.For internal use only. May be removed or replaced in the future.
-
element
public com.google.gwt.dom.client.FormElement element
For internal use only. May be removed or replaced in the future.
-
nextUploadId
public int nextUploadId
For internal use only. May be removed or replaced in the future.
-
-
Method Detail
-
setImmediate
public void setImmediate(boolean booleanAttribute)
For internal use only. May be removed or replaced in the future.
-
disableUpload
public void disableUpload()
For internal use only. May be removed or replaced in the future.
-
enableUpload
public void enableUpload()
For internal use only. May be removed or replaced in the future.
-
submit
public void submit()
For internal use only. May be removed or replaced in the future.
-
disableTitle
public void disableTitle(boolean disable)
For internal use only. May be removed or replaced in the future.- Parameters:
disable
-true
if the built-in browser-dependent tooltip should be hidden in favor of a Vaadin tooltip,false
otherwise
-
onAttach
protected void onAttach()
- Overrides:
onAttach
in classcom.google.gwt.user.client.ui.Widget
-
ensureTargetFrame
public void ensureTargetFrame()
For internal use only. May be removed or replaced in the future.
-
onDetach
protected void onDetach()
- Overrides:
onDetach
in classcom.google.gwt.user.client.ui.Widget
-
-