Package com.vaadin.v7.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.v7.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.SimplePanelNote, 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 StringCLASSNAMEApplicationConnectionclientFor internal use only.com.google.gwt.dom.client.FormElementelementFor internal use only.com.google.gwt.user.client.ui.FileUploadfuFileUpload component that opens native OS dialog to select file.intnextUploadIdFor internal use only.StringpaintableIdFor internal use only.VButtonsubmitButtonButton that initiates uploading.com.google.gwt.user.client.TimertWhen 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 voiddisableTitle(boolean disable)For internal use only.voiddisableUpload()For internal use only.voidenableUpload()For internal use only.voidensureTargetFrame()For internal use only.protected voidonAttach()protected voidonDetach()voidsetImmediate(boolean booleanAttribute)For internal use only.voidsubmit()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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
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.
-
onAttach
protected void onAttach()
- Overrides:
onAttachin 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:
onDetachin classcom.google.gwt.user.client.ui.Widget
-
-