public class Progress

  1. Object
  2. Component
  3. Container
  4. Form
  5. Dialog
  6. Progress

ImplementsAbstractDialog, ActionListener<NetworkEvent>, Animation, Editable, Iterable<Component>, StyleListener, TopLevelContainer

Displays a progress dialog with the ability to cancel an ongoing operation

Constructors

public Progress(String title, ConnectionRequest request)Binds the progress UI to the completion of this request
public Progress(String title, ConnectionRequest request, boolean showPercentage)Binds the progress UI to the completion of this request

Methods

protected void actionCommand(Command cmd)Invoked to allow subclasses of form to handle a command from one point rather than implementing many command instances
public void dispose()Closes the current form and returns to the previous form, releasing the EDT in the process
public boolean isDisposeOnCompletion()
public void setDisposeOnCompletion(boolean disposeOnCompletion)
public void actionPerformed(NetworkEvent ev)Invoked when an action occurred on a component
public boolean isAutoShow()Shows the progress automatically when the request processing is started
public void setAutoShow(boolean autoShow)Shows the progress automatically when the request processing is started

Inherited nested types

Inherited fields

Inherited methods

From Dialog

isDefaultDisposeWhenPointerOutOfBounds, setDefaultDisposeWhenPointerOutOfBounds, show, show, show, show, show, show, show, show, show, show, show, show, show, getDefaultDialogPosition, setDefaultDialogPosition, getDefaultDialogType, setDefaultDialogType, isAutoAdjustDialogSize, setAutoAdjustDialogSize, isDisableStaticDialogScrolling, setDisableStaticDialogScrolling, isCommandsAsButtons, setCommandsAsButtons, getDefaultBlurBackgroundRadius, setDefaultBlurBackgroundRadius, isDefaultTitleCentered, setDefaultTitleCentered, isDefaultNativeWindowMode, setDefaultNativeWindowMode, isNativeWindowMode, setNativeWindowMode, getNativeWindow, initNativeWindow, isDefaultInteractionDialogMode, setDefaultInteractionDialogMode, isInteractionDialogMode, setInteractionDialogMode, setPreviousForm, initGlobalToolbar, getContentPane, getLayout, setLayout, getTitle, setTitle, addComponent, addComponent, addComponent, addComponent, removeAll, removeComponent, refreshTheme, getTitleComponent, setTitleComponent, isTitleCentered, setTitleCentered, getTitleStyle, getDialogComponent, setTitleComponent, getDialogUIID, setDialogUIID, getDialogStyle, setDialogStyle, initLaf, show, show, show, showAtPosition, setTimeout, setTransitions, configureCommands, autoAdjust, placeButtonCommands, keyReleased, onShow, showBack, setScrollable, show, showModeless, setTopLevelHost, getTopLevelHost, addCommand, removeCommand, removeAllCommands, showPopupDialog, showPopupDialog, showPacked, showStretched, showStetched, getDialogPreferredSize, showDialog, animate, isAutoDispose, setAutoDispose, getDialogType, setDialogType, isDisposeWhenPointerOutOfBounds, setDisposeWhenPointerOutOfBounds, pointerReleased, pointerPressed, wasDisposedDueToOutOfBoundsTouch, getDialogPosition, setDialogPosition, growOrShrink, getPopupDirectionBiasPortrait, setPopupDirectionBiasPortrait, wasDisposedDueToRotation, getBlurBackgroundRadius, setBlurBackgroundRadius, setUIIDByPopupPosition

From Form

setAllowEnableLayoutOnPaint, addPasteListener, removePasteListener, dispatchPaste, getTextSelection, isEnableCursors, setEnableCursors, getSourceCommand, setSourceCommand, getCurrentInputDevice, setCurrentInputDevice, setOverrideInvisibleAreaUnderVKB, getInvisibleAreaUnderVKB, getAnimationManager, isFormBottomPaddingEditingMode, setFormBottomPaddingEditingMode, getSafeArea, shouldPaintStatusBar, createStatusBar, isAlwaysTensile, setAlwaysTensile, grabAnimationLock, releaseAnimationLock, findCurrentlyEditingComponent, getTitleArea, getUIManager, setUIManager, addShowListener, removeShowListener, removeAllShowListeners, addOrientationListener, removeOrientationListener, addSizeChangedListener, removeSizeChangedListener, hideNotify, showNotify, sizeChanged, setSafeAreaChanged, isDragRegion, getDragRegionStatus, getGlassPane, setGlassPane, addKeyListener, removeKeyListener, removeGameKeyListener, addGameKeyListener, getSoftButtonCount, getSoftButton, getMenuStyle, setTitleStyle, getDefaultCommand, setDefaultCommand, getClearCommand, setClearCommand, setBackCommand, getBackCommand, setBackCommand, setPopGuard, getPopGuard, checkPopGuard, asContainer, getLayeredPane, getLayeredPane, getLayeredPane, getFormLayeredPane, getLayeredPaneIfExists, getFormLayeredPaneIfExists, setBgImage, stopEditing, isEditing, replace, replaceAndWait, animateHierarchy, animateHierarchyAndWait, animateHierarchyFade, animateHierarchyFadeAndWait, animateLayout, animateLayoutAndWait, animateLayoutFade, animateLayoutFadeAndWait, animateUnlayout, animateUnlayoutAndWait, isTopLevelShowing, hasMedia, registerAnimated, onRegisterAnimated, deregisterAnimated, getSideGap, paintScrollbars, paintBackground, getTransitionInAnimator, setTransitionInAnimator, getTransitionOutAnimator, setTransitionOutAnimator, addCommandListener, removeCommandListener, dispatchCommand, addPointerPressedListener, removePointerPressedListener, addPointerDraggedListener, removePointerDraggedListener, addPointerReleasedListener, removePointerReleasedListener, addLongPressListener, removeLongPressListener, isSmoothScrolling, setSmoothScrolling, getScrollAnimationSpeed, setScrollAnimationSpeed, onShowCompleted, getComponentForm, getTopLevelContainer, getFocused, setFocused, longKeyPress, longPointerPress, shouldSendPointerReleaseToOtherForm, getNextComponent, getPreviousComponent, getTabIterator, keyPressed, isMinimizeOnBack, setMinimizeOnBack, keyRepeated, resumeDragAfterScrolling, addComponentAwaitingRelease, removeComponentAwaitingRelease, clearComponentsAwaitingRelease, pointerDragged, pointerDragged, pointerHoverReleased, pointerHoverPressed, pointerHover, isSingleFocusMode, isScrollVisible, setScrollVisible, getComponentIndex, getCommandCount, getCommand, addCommand, findNextFocusVertical, findNextFocusHorizontal, isCyclicFocus, setCyclicFocus, scrollComponentToVisible, setMenuCellRenderer, setRTL, paint, isScrollable, isScrollableX, setScrollableX, isScrollableY, setScrollableY, setVisible, getTintColor, setTintColor, setMenuTransitions, paramString, getMenuBar, setMenuBar, setToolBar, getToolbar, setToolbar, isFocusScrolling, setFocusScrolling, getPropertyNames, getPropertyTypes, getPropertyTypeNames, getPropertyValue, setPropertyValue, getEditOnShow, setEditOnShow

From Component

setSameSize, isSetCursorSupported, parsePreferredSize, getDefaultDragTransparency, setDefaultDragTransparency, getEditingDelegate, setEditingDelegate, getCursor, setCursor, showNativeOverlay, hideNativeOverlay, updateNativeOverlay, getNativeOverlay, getAllStyles, getSameWidth, setSameWidth, getSameHeight, setSameHeight, getX, setX, getOuterX, getInnerX, getY, setY, getOuterY, getInnerY, isVisible, getClientProperty, stripMarginAndPadding, putClientProperty, getDirtyRegion, setDirtyRegion, isOpaque, setOpaque, getWidth, setWidth, getOuterWidth, getInnerWidth, getHeight, setHeight, getOuterHeight, getInnerHeight, getBaseline, getBaselineResizeBehavior, getPreferredSizeStr, setPreferredSizeStr, getPreferredSize, setPreferredSize, getScrollDimension, calcScrollSize, setScrollSize, getPreferredW, setPreferredW, getPreferredH, setPreferredH, getOuterPreferredH, getInnerPreferredH, getOuterPreferredW, getInnerPreferredW, setSize, getUIID, setUIID, setUIIDFinal, setUIID, getInlineAllStyles, setInlineAllStyles, getInlineSelectedStyles, setInlineSelectedStyles, getInlineUnselectedStyles, setInlineUnselectedStyles, getInlineDisabledStyles, setInlineDisabledStyles, getInlinePressedStyles, setInlinePressedStyles, remove, getParent, getOwner, setOwner, isOwnedBy, containsOrOwns, addFocusListener, removeFocusListener, addScrollListener, removeScrollListener, getSelectCommandText, setSelectCommandText, getLabelForComponent, setLabelForComponent, focusGained, focusLost, paintBackgrounds, paintShadows, getAbsoluteX, getAbsoluteY, isInClippingRegion, paintIntersectingComponentsAbove, paintScrollbarX, getScrollOpacity, getSelectedRect, paintScrollbarY, paintComponent, paintComponent, getBorder, getScrollable, getScrollX, setScrollX, getScrollY, setScrollY, onScrollX, onScrollY, getDraggedx, getDraggedy, contains, visibleBoundsContains, hasFixedPreferredSize, getBounds, getBounds, getVisibleBounds, getVisibleBounds, isFocusable, setFocusable, onSetFocusable, resetFocusable, getTabIndex, setTabIndex, getPreferredTabIndex, setPreferredTabIndex, isTraversable, setTraversable, handlesInput, setHandlesInput, consumesRawTextInput, hasFocus, setFocus, repaint, repaint, registerForAnimation, deregisterFromAnimation, isBlockLead, setBlockLead, isIgnorePointerEvents, setIgnorePointerEvents, isRippleEffect, setRippleEffect, getInlineStylesTheme, setInlineStylesTheme, shouldRenderComponentSelection, isHideInLandscape, setHideInLandscape, createStyleAnimation, stopScrollMomentum, pinch, pinchReleased, pinch, rotation, isPinchBlocksDragAndDrop, setPinchBlocksDragAndDrop, getDragImage, getDragTransparency, setDragTransparency, toImage, drawDraggedImage, draggingOver, dragEnter, dragExit, addPullToRefresh, setPullToRefresh, respondsToPointerEvents, isStickyDrag, pointerPressed, isDragAndDropOperation, pointerReleased, setVerticalScrollBounds, setHorizontalScrollBounds, isVScrollThumbGrabbed, isHScrollThumbGrabbed, isVScrollThumbHover, isHScrollThumbHover, isTensileDragEnabled, setTensileDragEnabled, getTextSelectionSupport, addDropListener, removeDropListener, addDragOverListener, removeDragOverListener, isNativeDragSource, setNativeDragSource, getNativeDragOperation, setNativeDragOperation, createNativeDragOperation, isNativeDropTarget, setNativeDropTarget, getAcceptedDropMimeTypes, setAcceptedDropMimeTypes, getAcceptedDropActions, setAcceptedDropActions, canAcceptNativeDrop, nativeDragEnter, nativeDragOver, nativeDragExit, nativeDrop, addNativeDropListener, removeNativeDropListener, addNativeDragOverListener, removeNativeDragOverListener, dragFinished, addDragFinishedListener, addStateChangeListener, removeStateChangeListener, addContextMenuListener, removeContextMenuListener, addMouseWheelListener, removeMouseWheelListener, addStylusListener, removeStylusListener, mouseWheel, paintRippleOverlay, removeDragFinishedListener, getDragSpeed, getStyle, getPressedStyle, setPressedStyle, initUnselectedStyle, initPressedStyle, initDisabledStyle, initSelectedStyle, getUnselectedStyle, setUnselectedStyle, getSelectedStyle, setSelectedStyle, getDisabledStyle, setDisabledStyle, installDefaultPainter, requestFocus, toString, refreshTheme, refreshTheme, isDragActivated, scrollRectToVisible, scrollRectToVisible, paintBorder, paintBorderBackground, isCellRenderer, setIsScrollVisible, startEditingAsync, isEditable, laidOut, deinitialize, initComponent, isInitialized, setInitialized, styleChanged, getNextFocusDown, setNextFocusDown, getNextFocusUp, setNextFocusUp, getNextFocusLeft, setNextFocusLeft, getNextFocusRight, setNextFocusRight, getName, setName, initCustomStyle, deinitializeCustomStyle, isRTL, isTactileTouch, isTactileTouch, setTactileTouch, paintLockRelease, paintLock, isSnapToGrid, setSnapToGrid, shouldBlockSideSwipe, shouldBlockSideSwipeLeft, shouldBlockSideSwipeRight, blocksSideSwipe, isFlatten, setFlatten, getTensileLength, setTensileLength, isGrabsPointerEvents, setGrabsPointerEvents, getScrollOpacityChangeSpeed, setScrollOpacityChangeSpeed, growShrink, isDraggable, setDraggable, isDropTarget, setDropTarget, isChildOf, isHideInPortrait, setHideInPortrait, getBindablePropertyNames, getBindablePropertyTypes, bindProperty, unbindProperty, getBoundPropertyValue, setBoundPropertyValue, getCloudBoundProperty, setCloudBoundProperty, getCloudDestinationProperty, setCloudDestinationProperty, getComponentState, setComponentState, setHidden, isHidden, setHidden, isHidden, announceForAccessibility, getAccessibilityText, setAccessibilityText, getSemantics, getAccessibilityNode, accessibilityChanged, accessibilityChanged, getTooltip, setTooltip

Constructor details

Progress

public Progress(String title, ConnectionRequest request)
Binds the progress UI to the completion of this request

Parameters

title String
the title of the progress dialog
request ConnectionRequest
the network request pending

Progress

public Progress(String title, ConnectionRequest request, boolean showPercentage)
Binds the progress UI to the completion of this request

Parameters

title String
the title of the progress dialog
request ConnectionRequest
the network request pending
showPercentage boolean
shows percentage on the progress bar

Method details

actionCommand

protected void actionCommand(Command cmd)
Invoked to allow subclasses of form to handle a command from one point rather than implementing many command instances

Parameters

cmd Command
the action command

dispose

public void dispose()
Closes the current form and returns to the previous form, releasing the EDT in the process

isDisposeOnCompletion

public boolean isDisposeOnCompletion()

Returns

the disposeOnCompletion

setDisposeOnCompletion

public void setDisposeOnCompletion(boolean disposeOnCompletion)

Parameters

disposeOnCompletion boolean
the disposeOnCompletion to set

actionPerformed

public void actionPerformed(NetworkEvent ev)
Invoked when an action occurred on a component

Parameters

ev NetworkEvent
event object describing the source of the action as well as its trigger

isAutoShow

public boolean isAutoShow()
Shows the progress automatically when the request processing is started

Returns

the autoShow

setAutoShow

public void setAutoShow(boolean autoShow)
Shows the progress automatically when the request processing is started

Parameters

autoShow boolean
the autoShow to set