public class Progress
ImplementsAbstractDialog, ActionListener<NetworkEvent>, Animation, Editable, Iterable<Component>, StyleListener, TopLevelContainer
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
From Form
Inherited fields
From Form
From Component
DEFAULT_CURSOR, CROSSHAIR_CURSOR, TEXT_CURSOR, WAIT_CURSOR, SW_RESIZE_CURSOR, SE_RESIZE_CURSOR, NW_RESIZE_CURSOR, NE_RESIZE_CURSOR, N_RESIZE_CURSOR, S_RESIZE_CURSOR, W_RESIZE_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, MOVE_CURSOR, DRAG_REGION_NOT_DRAGGABLE, DRAG_REGION_POSSIBLE_DRAG_X, DRAG_REGION_POSSIBLE_DRAG_Y, DRAG_REGION_POSSIBLE_DRAG_XY, DRAG_REGION_LIKELY_DRAG_X, DRAG_REGION_LIKELY_DRAG_Y, DRAG_REGION_LIKELY_DRAG_XY, DRAG_REGION_IMMEDIATELY_DRAG_X, DRAG_REGION_IMMEDIATELY_DRAG_Y, DRAG_REGION_IMMEDIATELY_DRAG_XY, BRB_CONSTANT_ASCENT, BRB_CONSTANT_DESCENT, BRB_CENTER_OFFSET, BRB_OTHER, CENTER, TOP, LEFT, BOTTOM, RIGHT, BASELINE
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 Container
encloseIn, encloseIn, isSurface, add, addAll, add, add, add, add, add, getLeadComponent, setLeadComponent, getLeadParent, invalidate, setShouldLayout, setShouldCalcPreferredSize, getLayoutWidth, getLayoutHeight, applyRTL, constrainWidthWhenScrollable, constrainHeightWhenScrollable, replaceAndWait, replace, replaceAndWait, createReplaceTransition, isEnabled, setEnabled, cancelRepaints, flushReplace, revalidateWithAnimationSafety, revalidate, revalidateLater, forceRevalidate, clearClientProperties, paintGlass, layoutContainer, isSafeArea, setSafeArea, isSafeAreaRoot, getSafeAreaRoot, setSafeAreaRoot, getComponentCount, getComponentAt, contains, getClosestComponentTo, getResponderAt, getComponentAt, findDropTargetAt, calcPreferredSize, getBottomGap, setCellRenderer, getScrollIncrement, setScrollIncrement, findFirstFocusable, dragInitiated, fireClicked, isSelectableInteraction, getGridPosY, paintComponentBackground, getGridPosX, createAnimateHierarchy, createAnimateHierarchyFade, createAnimateLayoutFadeAndWait, createAnimateLayoutFade, updateTabIndices, createAnimateLayout, drop, createAnimateMotion, morph, morphAndWait, createAnimateUnlayout, getChildrenAsList, iterator, iterator
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)Parameters
titleString- the title of the progress dialog
requestConnectionRequest- the network request pending
Progress
public Progress(String title, ConnectionRequest request, boolean showPercentage)Parameters
titleString- the title of the progress dialog
requestConnectionRequest- the network request pending
showPercentageboolean- shows percentage on the progress bar
Method details
actionCommand
protected void actionCommand(Command cmd)Parameters
cmdCommand- the action command
dispose
public void dispose()isDisposeOnCompletion
public boolean isDisposeOnCompletion()Returns
setDisposeOnCompletion
public void setDisposeOnCompletion(boolean disposeOnCompletion)Parameters
disposeOnCompletionboolean- the disposeOnCompletion to set
actionPerformed
public void actionPerformed(NetworkEvent ev)Parameters
evNetworkEvent- event object describing the source of the action as well as its trigger
isAutoShow
public boolean isAutoShow()Returns
setAutoShow
public void setAutoShow(boolean autoShow)Parameters
autoShowboolean- the autoShow to set