public class AutoProgressMessageBox extends MessageBox
MessageBox
which displays an AutoProgressBar
.MessageBox.MessageBoxAppearance, MessageBox.MessageBoxIcons
Dialog.DefaultDialogMessages, Dialog.DialogMessages, Dialog.PredefinedButton
Window.DefaultWindowMessages, Window.WindowAppearance, Window.WindowMessages
ContentPanel.ContentPanelAppearance, ContentPanel.ContentPanelMessages, ContentPanel.DefaultContentPanelMessages, ContentPanel.PanelHeaderAppearance
icon, ICONS
ariaMoveResizeDistance, closeBtn, dragger, manager, removeFromParentOnHide, restoreBtn
buttonBar, header, secondPassRequired
resize, widget
forceLayoutCommand, forceLayoutOnResize, hadLayoutRunning, layoutCommand, layoutRequiredThisEventLoop, layoutRunning
adjustSize, allowTextSelection, cacheSizes, disableContextMenu, disabled, disabledStyle, ensureVisibilityOnSizing, height, hidden, lastSize, layer, left, mask, maskMessage, monitorWindowResize, pageX, pageY, shim, tabIndex, toolTip, toolTipConfig, top, width, windowResizeDelay, windowResizeTask
Constructor and Description |
---|
AutoProgressMessageBox(SafeHtml headingHtml)
Creates a progress message box with the specified heading HTML.
|
AutoProgressMessageBox(SafeHtml headingHtml,
SafeHtml messageHtml)
Creates a progress message box with the specified heading and message HTML.
|
AutoProgressMessageBox(SafeHtml headingHtml,
SafeHtml messageHtml,
Window.WindowAppearance windowAppearance,
MessageBox.MessageBoxAppearance messageBoxAppearance)
Creates a progress message box with the specified heading and message HTML.
|
AutoProgressMessageBox(String headingText)
Creates a progress message box with the specified heading HTML.
|
AutoProgressMessageBox(String headingText,
String messageText)
Creates a progress message box with the specified heading and message HTML.
|
Modifier and Type | Method and Description |
---|---|
void |
auto()
Initiates an auto-updating progress bar using the current duration,
increment, and interval (see
getProgressBar() . |
protected void |
doAttachChildren() |
protected void |
doDetachChildren() |
int |
getMinProgressWidth()
Returns the minimum progress width.
|
AutoProgressBar |
getProgressBar()
Returns the box's progress bar.
|
String |
getProgressText()
Returns the progress text.
|
protected void |
onAfterFirstAttach()
Called immediately after the first time the widget becomes attached to the browser's document only the first time.
|
protected void |
onResize(int width,
int height)
Called after the widget is resized, this method is empty by default but can be implemented by any subclass that
needs to perform custom logic after a resize occurs.
|
void |
setMinProgressWidth(int minProgressWidth)
The minimum width in pixels of the message box if it is a progress-style
dialog.
|
void |
setProgressText(String progressText)
The text to display inside the progress bar (defaults to "").
|
getIcon, getMessageBoxAppearance, resizeContents, setIcon, setMessage, setMessage, show
addDialogHideHandler, createButtons, getButton, getDialogMessages, getPredefinedButton, getPredefinedButtons, getText, hide, isHideOnButtonClick, onButtonPressed, setDialogMessages, setHideOnButtonClick, setPredefinedButtons
addActivateHandler, addDeactivateHandler, addMaximizeHandler, addMinimizeHandler, addRestoreHandler, afterShow, alignTo, center, createGhost, doFocus, doLayout, fitContainer, focus, getAppearance, getConstrain, getContainer, getDraggable, getFocusWidget, getMinHeight, getMinWidth, getModalPanel, getResizable, getWindowMessages, ghost, initTools, isAutoHide, isBlinkModal, isClosable, isDraggable, isMaximizable, isMaximized, isMinimizable, isModal, isOnEsc, isResizable, maximize, minimize, onBrowserEvent, onDetach, onDragCancel, onDragEnd, onDragMove, onDragStart, onEndResize, onKeyPress, onStartResize, onWindowResize, restore, setActive, setAutoHide, setBlinkModal, setClosable, setConstrain, setContainer, setDraggable, setFocusWidget, setMaximizable, setMinHeight, setMinimizable, setMinWidth, setModal, setOnEsc, setPagePosition, setPosition, setResizable, setWindowMessages, setZIndex, showWindow, toBack, toFront, unghost
addBeforeCollapseHandler, addBeforeExpandHandler, addButton, addCollapseHandler, addExpandHandler, addTool, adjustBodySize, afterCollapse, afterExpand, collapse, doLayoutButtonBar, expand, forceLayout, getAnimationDuration, getBody, getButtonAlign, getButtonBar, getContainerTarget, getFrameSize, getHeader, getHeading, getMessages, getMinButtonWidth, isAnimCollapse, isCollapsed, isCollapsible, isExpanded, isHideCollapseTool, isTitleCollapse, layoutBars, onClick, onCollapse, onDisable, onEnable, onExpand, setAnimationDuration, setAnimCollapse, setBodyBorder, setBodyStyle, setBodyStyleName, setButtonAlign, setCollapsible, setExpanded, setHeaderVisible, setHeading, setHideCollapseTool, setMessages, setMinButtonWidth, setTitleCollapse
add, add, getWidget, isResize, onRemove, setElement, setResize, setWidget, setWidget
applyLayout, applyLayout, forceLayoutOnChildren, forceLayoutOnChildren, getLeftRightMargins, getParentLayoutWidget, getSideMargins, getTopBottomMargins, isLayoutRunning, isOrWasLayoutRunning, isWidgetVisible, onBeforeDoLayout, onLoad, onResize
addAddHandler, addBeforeAddHandler, addBeforeRemoveHandler, addContainerHandler, addRemoveHandler, adjustIndex, adopt, checkIndexBoundsForInsertion, clear, disable, doPhysicalAttach, doPhysicalDetach, enable, ensureGroupingHandlerRegistration, findWidget, getChildren, getItemByItemId, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, iterator, onInsert, onWidgetHide, onWidgetShow, orphan, remove, remove, remove
addBeforeHideHandler, addBeforeShowContextMenuHandler, addBeforeShowHandler, addBlurHandler, addDisableHandler, addEnableHandler, addFocusHandler, addGestureRecognizer, addHideHandler, addMoveHandler, addResizeHandler, addShowContextMenuHandler, addShowHandler, addStyleDependentName, addStyleOnOver, adjustPosition, adjustSize, applyState, assertAfterRender, assertPreRender, blur, clearSizeCache, disableContextMenu, disableEvents, enableEvents, fireCancellableEvent, fireEvent, getData, getElement, getFocusEl, getFocusSupport, getGestureRecognizer, getGestureRecognizerCount, getHideMode, getId, getItemId, getOffsetHeight, getOffsetWidth, getPositionEl, getShadow, getShadowPosition, getStateId, getTabIndex, getToolTip, hideShadow, hideToolTip, isAllowTextSelection, isAutoHeight, isAutoWidth, isDeferHeight, isEnabled, isMonitorWindowResize, isRendered, isStateful, isVisible, isVisible, mask, mask, notifyHide, notifyShow, onAttach, onBlur, onFocus, onHide, onHideContextMenu, onPosition, onRightClick, onShow, onShowContextMenu, onTouch, onUnload, removeStyleDependentName, removeStyleOnOver, removeToolTip, setAllowTextSelection, setBorders, setBounds, setBounds, setContextMenu, setData, setDeferHeight, setEnabled, setHeight, setHeight, setHideMode, setId, setItemId, setMonitorWindowResize, setPixelSize, setShadow, setShadowPosition, setSize, setStateful, setStateId, setStyleDependentName, setTabIndex, setToolTip, setToolTipConfig, setVisible, setWidth, setWidth, sync, syncSize, unmask
public AutoProgressMessageBox(String headingText)
getProgressBar()
.headingText
- the text to display for the message box heading.public AutoProgressMessageBox(SafeHtml headingHtml)
getProgressBar()
.headingHtml
- the HTML to display for the message box headingpublic AutoProgressMessageBox(String headingText, String messageText)
getProgressBar()
.headingText
- the text to display for the message box headingmessageText
- the text to display in the message boxpublic AutoProgressMessageBox(SafeHtml headingHtml, SafeHtml messageHtml)
getProgressBar()
.headingHtml
- the HTML to display for the message box headingmessageHtml
- the HTML to display in the message boxpublic AutoProgressMessageBox(SafeHtml headingHtml, SafeHtml messageHtml, Window.WindowAppearance windowAppearance, MessageBox.MessageBoxAppearance messageBoxAppearance)
getProgressBar()
.headingHtml
- the HTML to display for the message box headingmessageHtml
- the HTML to display in the message boxwindowAppearance
- the message box window windowAppearancemessageBoxAppearance
- the message box content windowAppearancepublic void auto()
getProgressBar()
.public int getMinProgressWidth()
public AutoProgressBar getProgressBar()
public String getProgressText()
public void setMinProgressWidth(int minProgressWidth)
minProgressWidth
- the min progress widthpublic void setProgressText(String progressText)
progressText
- the progress textprotected void doAttachChildren()
doAttachChildren
in class ContentPanel
protected void doDetachChildren()
doDetachChildren
in class ContentPanel
protected void onAfterFirstAttach()
Component
onAfterFirstAttach
in class Window
protected void onResize(int width, int height)
Component
onResize
in class MessageBox
width
- the widthheight
- the heightCopyright © 2018. All rights reserved.