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
    Modifier and Type
    Class
    Description
    static interface 
     

    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

    Fields
    Modifier and Type
    Field
    Description
    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.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 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 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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    protected void
     
    protected void
     
    void
     
    protected com.google.gwt.user.client.Element
     
     
    protected com.google.gwt.dom.client.Element
     
    void
     
    protected boolean
    Returns the closable state of the sub window.
    protected void
     
    void
    onBrowserEvent(com.google.gwt.user.client.Event event)
     
    protected void
     
    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
     
    void
    setCaption(String c, boolean asHtml)
     
    void
    setClosable(boolean closable)
    Sets the closable state of the window.
    void
     
    void
    setCurrentFileName(String currentFileName)
     
    void
    setDraggable(boolean draggable)
     
    void
    setHeight(String height)
     
    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
    setVaadinModality(boolean modality)
     
    void
    setVisible(boolean visible)
     
    void
     
    protected void
    setZIndex(int zIndex)
     
    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

      public static final String CLASSNAME
      See Also:
    • Z_INDEX

      public static final int Z_INDEX
      See Also:
    • contents

      protected com.google.gwt.dom.client.Element contents
    • 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:
      onAttach in class com.vaadin.client.widgets.Overlay
    • onDetach

      protected void onDetach()
      Overrides:
      onDetach in class com.vaadin.client.widgets.Overlay
    • setZIndex

      protected void setZIndex(int zIndex)
      Overrides:
      setZIndex in class com.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 interface com.google.gwt.user.client.ui.HasVisibility
      Overrides:
      setVisible in class com.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

      public void setCancelButtonCaption(String cancelButtonCaption)
    • setCurrentFileName

      public void setCurrentFileName(String currentFileName)
    • getCurrentFileName

      public String getCurrentFileName()
    • setProgress

      public void setProgress(float state)
    • show

      public void show()
      Overrides:
      show in class com.vaadin.client.widgets.Overlay
    • hide

      public void hide()
      Overrides:
      hide in class com.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 class com.vaadin.client.widgets.Overlay
    • setCaption

      public void setCaption(String c)
    • setCaption

      public void setCaption(String c, boolean asHtml)
    • getContainerElement

      protected com.google.gwt.user.client.Element getContainerElement()
      Overrides:
      getContainerElement in class com.google.gwt.user.client.ui.PopupPanel
    • onBrowserEvent

      public void onBrowserEvent(com.google.gwt.user.client.Event event)
      Specified by:
      onBrowserEvent in interface com.google.gwt.user.client.EventListener
      Overrides:
      onBrowserEvent in class com.google.gwt.user.client.ui.Widget
    • closeWindow

      protected void closeWindow()
    • setWidth

      public void setWidth(String width)
      Overrides:
      setWidth in class com.vaadin.client.widgets.Overlay
    • setHeight

      public void setHeight(String height)
      Overrides:
      setHeight in class com.vaadin.client.widgets.Overlay
    • onPreviewNativeEvent

      protected void onPreviewNativeEvent(com.google.gwt.user.client.Event.NativePreviewEvent event)
      Overrides:
      onPreviewNativeEvent in class com.google.gwt.user.client.ui.PopupPanel
    • addStyleDependentName

      public void addStyleDependentName(String styleSuffix)
      Overrides:
      addStyleDependentName in class com.google.gwt.user.client.ui.UIObject
    • onKeyDown

      public void onKeyDown(com.google.gwt.event.dom.client.KeyDownEvent event)
      Specified by:
      onKeyDown in interface com.google.gwt.event.dom.client.KeyDownHandler
    • onKeyUp

      public void onKeyUp(com.google.gwt.event.dom.client.KeyUpEvent event)
      Specified by:
      onKeyUp in interface com.google.gwt.event.dom.client.KeyUpHandler
    • focus

      public void focus()
      Specified by:
      focus in interface com.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

      public void setCloseListener(JmixFileUploadProgressWindow.CloseListener closeListener)