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 classes/interfaces inherited from class com.vaadin.client.widgets.Overlay
com.vaadin.client.widgets.Overlay.PositionAndSize, com.vaadin.client.widgets.Overlay.ResizeAnimation
Nested 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.PositionCallback
Nested 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.DebugIdImplEnabled
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets
com.google.gwt.user.client.ui.HasWidgets.ForIsWidget
-
Field Summary
Modifier and TypeFieldDescriptionprotected com.google.gwt.event.shared.HandlerRegistration
protected com.google.gwt.user.client.Event.NativePreviewHandler
protected com.google.gwt.dom.client.Element
protected com.vaadin.client.ui.VButton
static final String
protected boolean
protected com.google.gwt.dom.client.Element
protected com.vaadin.client.ui.SimpleFocusablePanel
protected com.google.gwt.dom.client.Element
protected com.vaadin.client.ui.VLabel
protected boolean
protected boolean
protected boolean
protected com.google.gwt.dom.client.Element
protected int
protected com.google.gwt.dom.client.Element
protected com.google.gwt.dom.client.Element
protected com.google.gwt.dom.client.Element
protected com.google.gwt.dom.client.Element
protected int
protected int
protected int
protected int
protected com.vaadin.client.ui.VProgressBar
protected boolean
protected com.google.gwt.dom.client.Element
protected boolean
protected com.google.gwt.dom.client.Element
protected int
protected int
protected com.google.gwt.event.shared.HandlerRegistration
protected com.google.gwt.user.client.Event.NativePreviewHandler
protected com.google.gwt.dom.client.Element
protected com.vaadin.client.ui.VLabel
protected com.vaadin.client.ui.VProgressBar
protected boolean
protected String
protected boolean
protected boolean
protected com.google.gwt.dom.client.Element
static final int
Fields inherited from class com.vaadin.client.ui.VOverlay
ac
Fields inherited from class com.vaadin.client.widgets.Overlay
ADDITIONAL_CLASSNAME_ANIMATE_IN, ADDITIONAL_CLASSNAME_ANIMATE_OUT, CLASSNAME_CONTAINER, CLASSNAME_SHADOW, current
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addStyleDependentName
(String styleSuffix) protected void
protected void
void
focus()
protected com.google.gwt.user.client.Element
protected com.google.gwt.dom.client.Element
protected String
getTotalProgressMessage
(int currentFileNumber) void
hide()
void
initFilesNumber
(int filesNumber) protected boolean
Returns the closable state of the sub window.protected void
onAttach()
void
onBrowserEvent
(com.google.gwt.user.client.Event event) protected void
onDetach()
void
onKeyDown
(com.google.gwt.event.dom.client.KeyDownEvent event) void
onKeyUp
(com.google.gwt.event.dom.client.KeyUpEvent event) protected void
onPreviewNativeEvent
(com.google.gwt.user.client.Event.NativePreviewEvent event) void
setCancelButtonCaption
(String cancelButtonCaption) void
setCaption
(String c) void
setCaption
(String c, boolean asHtml) void
setClosable
(boolean closable) Sets the closable state of the window.void
setCloseListener
(JmixFileUploadProgressWindow.CloseListener closeListener) void
setCurrentFileName
(String currentFileName) void
setDraggable
(boolean draggable) void
void
setPopupPosition
(int left, int top) void
setProgress
(float state) void
setResizable
(boolean resizability) INTERNAL.void
setTabStopEnabled
(boolean doTabStop) Registers the handlers that prevent to leave the window using the Tab-key.void
setTotalProgressEnabled
(boolean totalProgressEnabled) void
setTotalProgressFormat
(String totalProgressFormat) void
setVaadinModality
(boolean modality) void
setVisible
(boolean visible) void
protected void
setZIndex
(int zIndex) void
show()
void
updateTotalProgress
(int filesLeft) protected void
Methods inherited from class com.vaadin.client.ui.VOverlay
getApplicationConnection, getOverlayContainer, getOverlayContainer, setApplicationConnection, setOverlayContainerLabel
Methods inherited from class com.vaadin.client.widgets.Overlay
center, getOwner, hide, hide, isFitInWindow, isShimElementEnabled, needsShimElement, positionOrSizeUpdated, setFitInWindow, setOwner, updateShadowSizeAndPosition
Methods 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, showRelativeTo
Methods inherited from class com.google.gwt.user.client.ui.SimplePanel
add, getWidget, iterator, remove, 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, onLoad, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
Methods 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, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
Methods 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 -
totalFilesLabel
protected com.vaadin.client.ui.VLabel totalFilesLabel -
cancelButton
protected com.vaadin.client.ui.VButton cancelButton -
progressBar
protected com.vaadin.client.ui.VProgressBar progressBar -
totalProgressBar
protected com.vaadin.client.ui.VProgressBar totalProgressBar -
filesNumber
protected int filesNumber -
totalProgressEnabled
protected boolean totalProgressEnabled -
totalProgressFormat
-
-
Constructor Details
-
JmixFileUploadProgressWindow
public JmixFileUploadProgressWindow()
-
-
Method Details
-
onAttach
protected void onAttach()- Overrides:
onAttach
in classcom.vaadin.client.widgets.Overlay
-
onDetach
protected void onDetach()- Overrides:
onDetach
in classcom.vaadin.client.widgets.Overlay
-
setZIndex
protected void setZIndex(int zIndex) - Overrides:
setZIndex
in 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:
setVisible
in interfacecom.google.gwt.user.client.ui.HasVisibility
- Overrides:
setVisible
in 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) -
updateTotalProgress
public void updateTotalProgress(int filesLeft) -
getTotalProgressMessage
-
initFilesNumber
public void initFilesNumber(int filesNumber) -
updateTotalProgressComponents
protected void updateTotalProgressComponents() -
setTotalProgressEnabled
public void setTotalProgressEnabled(boolean totalProgressEnabled) -
setTotalProgressFormat
-
show
public void show()- Overrides:
show
in classcom.vaadin.client.widgets.Overlay
-
hide
public void hide()- Overrides:
hide
in 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:
setPopupPosition
in classcom.vaadin.client.widgets.Overlay
-
setCaption
-
setCaption
-
getContainerElement
protected com.google.gwt.user.client.Element getContainerElement()- Overrides:
getContainerElement
in classcom.google.gwt.user.client.ui.PopupPanel
-
onBrowserEvent
public void onBrowserEvent(com.google.gwt.user.client.Event event) - Specified by:
onBrowserEvent
in interfacecom.google.gwt.user.client.EventListener
- Overrides:
onBrowserEvent
in classcom.google.gwt.user.client.ui.Widget
-
closeWindow
protected void closeWindow() -
setWidth
- Overrides:
setWidth
in classcom.vaadin.client.widgets.Overlay
-
setHeight
- Overrides:
setHeight
in classcom.vaadin.client.widgets.Overlay
-
onPreviewNativeEvent
protected void onPreviewNativeEvent(com.google.gwt.user.client.Event.NativePreviewEvent event) - Overrides:
onPreviewNativeEvent
in classcom.google.gwt.user.client.ui.PopupPanel
-
addStyleDependentName
- Overrides:
addStyleDependentName
in classcom.google.gwt.user.client.ui.UIObject
-
onKeyDown
public void onKeyDown(com.google.gwt.event.dom.client.KeyDownEvent event) - Specified by:
onKeyDown
in interfacecom.google.gwt.event.dom.client.KeyDownHandler
-
onKeyUp
public void onKeyUp(com.google.gwt.event.dom.client.KeyUpEvent event) - Specified by:
onKeyUp
in interfacecom.google.gwt.event.dom.client.KeyUpHandler
-
focus
public void focus()- Specified by:
focus
in 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
-