Class JmixFileUploadProgressWindow
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.google.gwt.user.client.ui.PopupPanel
com.vaadin.client.widgets.Overlay
com.vaadin.client.ui.VOverlay
io.jmix.ui.widget.client.jqueryfileupload.JmixFileUploadProgressWindow
- All Implemented Interfaces:
com.google.gwt.event.dom.client.KeyDownHandler,com.google.gwt.event.dom.client.KeyUpHandler,com.google.gwt.event.logical.shared.HasAttachHandlers,com.google.gwt.event.logical.shared.HasCloseHandlers<com.google.gwt.user.client.ui.PopupPanel>,com.google.gwt.event.shared.EventHandler,com.google.gwt.event.shared.HasHandlers,com.google.gwt.user.client.EventListener,com.google.gwt.user.client.EventPreview,com.google.gwt.user.client.ui.AcceptsOneWidget,com.google.gwt.user.client.ui.HasAnimation,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,com.google.gwt.user.client.ui.SourcesPopupEvents,com.vaadin.client.Focusable,Iterable<com.google.gwt.user.client.ui.Widget>
public class JmixFileUploadProgressWindow
extends com.vaadin.client.ui.VOverlay
implements com.google.gwt.event.dom.client.KeyDownHandler, com.google.gwt.event.dom.client.KeyUpHandler, com.vaadin.client.Focusable
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.vaadin.client.widgets.Overlay
com.vaadin.client.widgets.Overlay.PositionAndSize, com.vaadin.client.widgets.Overlay.ResizeAnimationNested classes/interfaces inherited from class com.google.gwt.user.client.ui.PopupPanel
com.google.gwt.user.client.ui.PopupPanel.AnimationType, com.google.gwt.user.client.ui.PopupPanel.PositionCallbackNested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabledNested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets
com.google.gwt.user.client.ui.HasWidgets.ForIsWidget -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.google.gwt.event.shared.HandlerRegistrationprotected com.google.gwt.user.client.Event.NativePreviewHandlerprotected com.google.gwt.dom.client.Elementprotected com.vaadin.client.ui.VButtonstatic final Stringprotected booleanprotected com.google.gwt.dom.client.Elementprotected com.vaadin.client.ui.SimpleFocusablePanelprotected com.google.gwt.dom.client.Elementprotected com.vaadin.client.ui.VLabelprotected booleanprotected booleanprotected booleanprotected com.google.gwt.dom.client.Elementprotected com.google.gwt.dom.client.Elementprotected com.google.gwt.dom.client.Elementprotected com.google.gwt.dom.client.Elementprotected com.google.gwt.dom.client.Elementprotected intprotected intprotected intprotected intprotected com.vaadin.client.ui.VProgressBarprotected booleanprotected com.google.gwt.dom.client.Elementprotected booleanprotected com.google.gwt.dom.client.Elementprotected intprotected intprotected com.google.gwt.event.shared.HandlerRegistrationprotected com.google.gwt.user.client.Event.NativePreviewHandlerprotected com.google.gwt.dom.client.Elementprotected booleanprotected booleanprotected com.google.gwt.dom.client.Elementstatic final intFields inherited from class com.vaadin.client.ui.VOverlay
acFields inherited from class com.vaadin.client.widgets.Overlay
ADDITIONAL_CLASSNAME_ANIMATE_IN, ADDITIONAL_CLASSNAME_ANIMATE_OUT, CLASSNAME_CONTAINER, CLASSNAME_SHADOW, currentFields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddStyleDependentName(String styleSuffix) protected voidprotected voidvoidfocus()protected com.google.gwt.user.client.Elementprotected com.google.gwt.dom.client.Elementvoidhide()protected booleanReturns the closable state of the sub window.protected voidonAttach()voidonBrowserEvent(com.google.gwt.user.client.Event event) protected voidonDetach()voidonKeyDown(com.google.gwt.event.dom.client.KeyDownEvent event) voidonKeyUp(com.google.gwt.event.dom.client.KeyUpEvent event) protected voidonPreviewNativeEvent(com.google.gwt.user.client.Event.NativePreviewEvent event) voidsetCancelButtonCaption(String cancelButtonCaption) voidsetCaption(String c) voidsetCaption(String c, boolean asHtml) voidsetClosable(boolean closable) Sets the closable state of the window.voidsetCloseListener(JmixFileUploadProgressWindow.CloseListener closeListener) voidsetCurrentFileName(String currentFileName) voidsetDraggable(boolean draggable) voidvoidsetPopupPosition(int left, int top) voidsetProgress(float state) voidsetResizable(boolean resizability) INTERNAL.voidsetTabStopEnabled(boolean doTabStop) Registers the handlers that prevent to leave the window using the Tab-key.voidsetVaadinModality(boolean modality) voidsetVisible(boolean visible) voidprotected voidsetZIndex(int zIndex) voidshow()Methods inherited from class com.vaadin.client.ui.VOverlay
getApplicationConnection, getOverlayContainer, getOverlayContainer, setApplicationConnection, setOverlayContainerLabelMethods inherited from class com.vaadin.client.widgets.Overlay
center, getOwner, hide, hide, isFitInWindow, isShimElementEnabled, needsShimElement, positionOrSizeUpdated, setFitInWindow, setOwner, updateShadowSizeAndPositionMethods inherited from class com.google.gwt.user.client.ui.PopupPanel
addAutoHidePartner, addCloseHandler, addPopupListener, getAnimationType, getGlassElement, getGlassStyleName, getOffsetHeight, getOffsetWidth, getPopupLeft, getPopupTop, getStyleElement, getTitle, isAnimationEnabled, isAutoHideEnabled, isAutoHideOnHistoryEventsEnabled, isGlassEnabled, isModal, isPreviewingAllNativeEvents, isShowing, isVisible, onEventPreview, onKeyDownPreview, onKeyPressPreview, onKeyUpPreview, onUnload, removeAutoHidePartner, removePopupListener, setAnimationEnabled, setAnimationType, setAutoHideEnabled, setAutoHideOnHistoryEventsEnabled, setGlassEnabled, setGlassStyleName, setModal, setPopupPositionAndShow, setPreviewingAllNativeEvents, setTitle, setWidget, showRelativeToMethods inherited from class com.google.gwt.user.client.ui.SimplePanel
add, getWidget, iterator, remove, setWidgetMethods inherited from class com.google.gwt.user.client.ui.Panel
add, adopt, clear, doAttachChildren, doDetachChildren, orphan, removeMethods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onLoad, removeFromParent, setLayoutData, sinkEvents, unsinkEventsMethods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEventMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
CLASSNAME
- See Also:
-
Z_INDEX
public static final int Z_INDEX- See Also:
-
contents
protected com.google.gwt.dom.client.Element contents -
header
protected com.google.gwt.dom.client.Element header -
resizeBox
protected com.google.gwt.dom.client.Element resizeBox -
contentPanel
protected com.vaadin.client.ui.SimpleFocusablePanel contentPanel -
dragging
protected boolean dragging -
startX
protected int startX -
startY
protected int startY -
origX
protected int origX -
origY
protected int origY -
resizing
protected boolean resizing -
origW
protected int origW -
origH
protected int origH -
closeBox
protected com.google.gwt.dom.client.Element closeBox -
vaadinModality
protected boolean vaadinModality -
resizable
protected boolean resizable -
draggable
protected boolean draggable -
modalityCurtain
protected com.google.gwt.dom.client.Element modalityCurtain -
draggingCurtain
protected com.google.gwt.dom.client.Element draggingCurtain -
resizingCurtain
protected com.google.gwt.dom.client.Element resizingCurtain -
headerText
protected com.google.gwt.dom.client.Element headerText -
closable
protected boolean closable -
topTabStop
protected com.google.gwt.dom.client.Element topTabStop -
bottomTabStop
protected com.google.gwt.dom.client.Element bottomTabStop -
topEventBlocker
protected com.google.gwt.user.client.Event.NativePreviewHandler topEventBlocker -
bottomEventBlocker
protected com.google.gwt.user.client.Event.NativePreviewHandler bottomEventBlocker -
topBlockerRegistration
protected com.google.gwt.event.shared.HandlerRegistration topBlockerRegistration -
bottomBlockerRegistration
protected com.google.gwt.event.shared.HandlerRegistration bottomBlockerRegistration -
doTabStop
protected boolean doTabStop -
wrapper
protected com.google.gwt.dom.client.Element wrapper -
visibilityChangesDisabled
protected boolean visibilityChangesDisabled -
closeListener
-
currentFileLabel
protected com.vaadin.client.ui.VLabel currentFileLabel -
cancelButton
protected com.vaadin.client.ui.VButton cancelButton -
progressBar
protected com.vaadin.client.ui.VProgressBar progressBar
-
-
Constructor Details
-
JmixFileUploadProgressWindow
public JmixFileUploadProgressWindow()
-
-
Method Details
-
onAttach
protected void onAttach()- Overrides:
onAttachin classcom.vaadin.client.widgets.Overlay
-
onDetach
protected void onDetach()- Overrides:
onDetachin classcom.vaadin.client.widgets.Overlay
-
setZIndex
protected void setZIndex(int zIndex) - Overrides:
setZIndexin classcom.vaadin.client.widgets.Overlay
-
getModalityCurtain
protected com.google.gwt.dom.client.Element getModalityCurtain() -
constructDOM
protected void constructDOM() -
setVisible
public void setVisible(boolean visible) - Specified by:
setVisiblein interfacecom.google.gwt.user.client.ui.HasVisibility- Overrides:
setVisiblein classcom.vaadin.client.widgets.Overlay
-
setDraggable
public void setDraggable(boolean draggable) -
setClosable
public void setClosable(boolean closable) Sets the closable state of the window. Additionally hides/shows the close button according to the new state.- Parameters:
closable- true if the window can be closed by the user
-
isClosable
protected boolean isClosable()Returns the closable state of the sub window. If the sub window is closable a decoration (typically an X) is shown to the user. By clicking on the X the user can close the window.- Returns:
- true if the sub window is closable
-
setCancelButtonCaption
-
setCurrentFileName
-
getCurrentFileName
-
setProgress
public void setProgress(float state) -
show
public void show()- Overrides:
showin classcom.vaadin.client.widgets.Overlay
-
hide
public void hide()- Overrides:
hidein classcom.vaadin.client.widgets.Overlay
-
setVaadinModality
public void setVaadinModality(boolean modality) -
setResizable
public void setResizable(boolean resizability) INTERNAL. May be removed or replaced in the future. -
setPopupPosition
public void setPopupPosition(int left, int top) - Overrides:
setPopupPositionin classcom.vaadin.client.widgets.Overlay
-
setCaption
-
setCaption
-
getContainerElement
protected com.google.gwt.user.client.Element getContainerElement()- Overrides:
getContainerElementin classcom.google.gwt.user.client.ui.PopupPanel
-
onBrowserEvent
public void onBrowserEvent(com.google.gwt.user.client.Event event) - Specified by:
onBrowserEventin interfacecom.google.gwt.user.client.EventListener- Overrides:
onBrowserEventin classcom.google.gwt.user.client.ui.Widget
-
closeWindow
protected void closeWindow() -
setWidth
- Overrides:
setWidthin classcom.vaadin.client.widgets.Overlay
-
setHeight
- Overrides:
setHeightin classcom.vaadin.client.widgets.Overlay
-
onPreviewNativeEvent
protected void onPreviewNativeEvent(com.google.gwt.user.client.Event.NativePreviewEvent event) - Overrides:
onPreviewNativeEventin classcom.google.gwt.user.client.ui.PopupPanel
-
addStyleDependentName
- Overrides:
addStyleDependentNamein classcom.google.gwt.user.client.ui.UIObject
-
onKeyDown
public void onKeyDown(com.google.gwt.event.dom.client.KeyDownEvent event) - Specified by:
onKeyDownin interfacecom.google.gwt.event.dom.client.KeyDownHandler
-
onKeyUp
public void onKeyUp(com.google.gwt.event.dom.client.KeyUpEvent event) - Specified by:
onKeyUpin interfacecom.google.gwt.event.dom.client.KeyUpHandler
-
focus
public void focus()- Specified by:
focusin interfacecom.vaadin.client.Focusable
-
setTabStopEnabled
public void setTabStopEnabled(boolean doTabStop) Registers the handlers that prevent to leave the window using the Tab-key.The value of the parameter doTabStop is stored and used for non-modal windows. For modal windows, the handlers are always registered, while preserving the stored value.
- Parameters:
doTabStop- true to prevent leaving the window, false to allow leaving the window for non modal windows
-
setCloseListener
-