public class ProgressMessageBox extends MessageBox
MessageBox
which displays a ProgressBar
.MessageBox.MessageBoxAppearance, MessageBox.MessageBoxIcons
Dialog.DialogMessages, Dialog.PredefinedButton
Window.WindowAppearance, Window.WindowMessages
ContentPanel.ContentPanelAppearance, ContentPanel.ContentPanelMessages, ContentPanel.PanelHeaderAppearance
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
HasWidgets.ForIsWidget
IndexedPanel.ForIsWidget
ICONS
DEBUG_ID_PREFIX
Constructor and Description |
---|
ProgressMessageBox(SafeHtml headingHtml)
Creates a progress message box with the specified heading HTML.
|
ProgressMessageBox(SafeHtml headingHtml,
SafeHtml messageHtml)
Creates a progress message box with the specified heading and message HTML.
|
ProgressMessageBox(SafeHtml headingHtml,
SafeHtml messageHtml,
Window.WindowAppearance windowAppearance,
MessageBox.MessageBoxAppearance messageBoxAppearance)
Creates a progress message box with the specified heading and message HTML.
|
ProgressMessageBox(String headingText)
Creates a progress message box with the specified heading HTML.
|
ProgressMessageBox(String headingText,
String messageText)
Creates a progress message box with the specified heading and message HTML.
|
Modifier and Type | Method and Description |
---|---|
int |
getMinProgressWidth()
Returns the minimum progress width.
|
ProgressBar |
getProgressBar()
Returns the box's progress bar.
|
String |
getProgressText()
Returns the progress text.
|
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.
|
void |
updateProgress(double value,
String text)
Updates a progress-style message box's text and progress bar.
|
getIcon, getMessageBoxAppearance, setIcon, setMessage, setMessage, show
addDialogHideHandler, getButton, getDialogMessages, getPredefinedButton, getPredefinedButtons, hide, isHideOnButtonClick, setDialogMessages, setHideOnButtonClick, setPredefinedButtons
addActivateHandler, addDeactivateHandler, addMaximizeHandler, addMinimizeHandler, addRestoreHandler, alignTo, center, focus, getAppearance, getConstrain, getContainer, getDraggable, getFocusWidget, getMinHeight, getMinWidth, getResizable, isAutoHide, isBlinkModal, isClosable, isDraggable, isMaximizable, isMaximized, isMinimizable, isModal, isOnEsc, isResizable, maximize, minimize, onBrowserEvent, restore, setActive, setAutoHide, setBlinkModal, setClosable, setConstrain, setContainer, setDraggable, setFocusWidget, setMaximizable, setMinHeight, setMinimizable, setMinWidth, setModal, setOnEsc, setPagePosition, setPosition, setResizable, setWindowMessages, setZIndex, toBack, toFront
addBeforeCollapseHandler, addBeforeExpandHandler, addButton, addCollapseHandler, addExpandHandler, addTool, collapse, expand, forceLayout, getAnimationDuration, getBody, getButtonAlign, getButtonBar, getHeader, getHeading, getMessages, getMinButtonWidth, isAnimCollapse, isCollapsed, isCollapsible, isExpanded, isHideCollapseTool, isTitleCollapse, setAnimationDuration, setAnimCollapse, setBodyBorder, setBodyStyle, setBodyStyleName, setButtonAlign, setCollapsible, setExpanded, setHeaderVisible, setHeading, setHeading, setHideCollapseTool, setMessages, setMinButtonWidth, setTitleCollapse
add, add, getWidget, isResize, setResize, setWidget, setWidget
isLayoutRunning, isOrWasLayoutRunning, onResize
add, addAddHandler, addBeforeAddHandler, addBeforeRemoveHandler, addContainerHandler, addRemoveHandler, clear, disable, enable, findWidget, getItemByItemId, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, iterator, remove, remove, remove
addBeforeHideHandler, addBeforeShowContextMenuHandler, addBeforeShowHandler, addBlurHandler, addDisableHandler, addEnableHandler, addFocusHandler, addGestureRecognizer, addHideHandler, addMoveHandler, addResizeHandler, addShowContextMenuHandler, addShowHandler, addStyleOnOver, clearSizeCache, disableEvents, enableEvents, fireEvent, getData, getElement, getFocusSupport, getGestureRecognizer, getGestureRecognizerCount, getHideMode, getId, getItemId, getOffsetHeight, getOffsetWidth, getShadow, getShadowPosition, getStateId, getTabIndex, getToolTip, hideToolTip, isAllowTextSelection, isAutoHeight, isAutoWidth, isDeferHeight, isEnabled, isRendered, isStateful, isVisible, isVisible, mask, mask, removeToolTip, setAllowTextSelection, setBorders, setBounds, setBounds, setContextMenu, setData, setDeferHeight, setEnabled, setHeight, setHeight, setHideMode, setId, setItemId, setPixelSize, setShadow, setShadowPosition, setSize, setStateful, setStateId, setTabIndex, setToolTip, setToolTip, setToolTipConfig, setVisible, setWidth, setWidth, sync, syncSize, unmask
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, getLayoutData, getParent, isAttached, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, removeStyleDependentName, removeStyleName, setStyleDependentName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, sinkBitlessEvent, toString
public ProgressMessageBox(String headingText)
headingText
- the text to display for the message box heading.public ProgressMessageBox(SafeHtml headingHtml)
headingHtml
- the HTML to display for the message box headingpublic ProgressMessageBox(String headingText, String messageText)
headingText
- the text to display for the message box headingmessageText
- the text to display in the message boxpublic ProgressMessageBox(SafeHtml headingHtml, SafeHtml messageHtml)
headingHtml
- the HTML to display for the message box headingmessageHtml
- the HTML to display in the message boxpublic ProgressMessageBox(SafeHtml headingHtml, SafeHtml messageHtml, Window.WindowAppearance windowAppearance, MessageBox.MessageBoxAppearance messageBoxAppearance)
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 int getMinProgressWidth()
public ProgressBar getProgressBar()
public String getProgressText()
public void setMinProgressWidth(int minProgressWidth)
minProgressWidth
- the min progress widthpublic void setProgressText(String progressText)
progressText
- the progress textpublic void updateProgress(double value, String text)
value
- any number between 0 and 1 (e.g., .5)text
- the progress text to display inside the progress bar or nullCopyright © 2016. All rights reserved.