T
- measure unit which shows progress of taskV
- result typepublic class BackgroundWorkProgressWindow<T extends java.lang.Number,V> extends AbstractWindow
On error:
Window.BeforeCloseEvent, Window.BeforeCloseWithCloseButtonEvent, Window.BeforeCloseWithCloseButtonListener, Window.BeforeCloseWithShortcutEvent, Window.BeforeCloseWithShortcutListener, Window.CloseListener, Window.CloseWithCommitListener, Window.Committable, Window.ContentSwitchMode, Window.Editor, Window.HasFoldersPane, Window.HasUserIndicator, Window.HasWorkArea, Window.Lookup, Window.MainWindow, Window.TopLevelWindow, Window.Wrapper
Frame.MessageMode, Frame.MessageType, Frame.NotificationType, Frame.UiEventListenersHolder
ExpandingLayout.ExpandDirection
Component.ActionOwner, Component.ActionsHolder, Component.Alignment, Component.BelongToFrame, Component.Buffered, Component.ChildEditableController, Component.Collapsable, Component.Container, Component.ContextHelpIconClickEvent, Component.Disposable, Component.Editable, Component.EditableChangeEvent, Component.EditableChangeListener, Component.EditableChangeNotifier, Component.ExpandedStateChangeEvent, Component.ExpandedStateChangeListener, Component.Focusable, Component.HasBorder, Component.HasButtonsPanel, Component.HasCaption, Component.HasContextHelp, Component.HasFormatter, Component.HasIcon, Component.HasInputPrompt, Component.HasNamedComponents, Component.HasOptionsStyleProvider, Component.HasPresentations, Component.HasRowsCount, Component.HasSettings, Component.HasValue, Component.HasXmlDescriptor, Component.LayoutClickEvent, Component.LayoutClickListener, Component.LayoutClickNotifier, Component.Margin, Component.MouseEventDetails, Component.OptionsStyleProvider, Component.OrderedContainer, Component.OuterMargin, Component.SecuredActionsHolder, Component.ShortcutAction, Component.ShortcutNotifier, Component.ShortcutTriggeredEvent, Component.Spacing, Component.UiPermissionAware, Component.Validatable, Component.ValueChangeEvent, Component.ValueChangeListener
BROWSE_WINDOW_SUFFIX, CLOSE_ACTION_ID, COMMIT_ACTION_ID, CREATE_WINDOW_SUFFIX, EDITOR_WINDOW_SUFFIX, LOOKUP_WINDOW_SUFFIX, NAME, SELECT_ACTION_ID
AUTO_SIZE, AUTO_SIZE_PX, UNITS_PERCENTAGE, UNITS_PIXELS
Constructor and Description |
---|
BackgroundWorkProgressWindow() |
Modifier and Type | Method and Description |
---|---|
void |
cancel() |
boolean |
close(java.lang.String actionId)
Close the screen.
|
void |
init(java.util.Map<java.lang.String,java.lang.Object> params)
Called by the framework after creation of all components and before showing the screen.
|
static <T extends java.lang.Number,V> |
show(BackgroundTask<T,V> task,
java.lang.Number total)
Show modal window with default title and message which will last until task completes.
|
static <T extends java.lang.Number,V> |
show(BackgroundTask<T,V> task,
java.lang.Number total,
boolean cancelAllowed)
Show modal window with default title and message which will last until task completes.
|
static <T extends java.lang.Number,V> |
show(BackgroundTask<T,V> task,
java.lang.String title,
java.lang.String message,
java.lang.Number total)
Show modal window with message which will last until task completes.
|
static <T extends java.lang.Number,V> |
show(BackgroundTask<T,V> task,
java.lang.String title,
java.lang.String message,
java.lang.Number total,
boolean cancelAllowed)
Show modal window with message which will last until task completes.
|
static <T extends java.lang.Number,V> |
show(BackgroundTask<T,V> task,
java.lang.String title,
java.lang.String message,
java.lang.Number total,
boolean cancelAllowed,
boolean percentProgress)
Show modal window with message which will last until task completes.
|
addBeforeCloseWithCloseButtonListener, addBeforeCloseWithShortcutListener, addCloseListener, addCloseWithCommitListener, addListener, addTimer, applySettings, close, closeAndRun, deleteSettings, getActionsPermissions, getCaption, getContentSwitchMode, getContext, getDescription, getDialogOptions, getDsContext, getFocusComponent, getIcon, getSettings, getTimer, getWindowManager, getWrappedWindow, getXmlDescriptor, isAttributeAccessControlEnabled, ready, removeBeforeCloseWithCloseButtonListener, removeBeforeCloseWithShortcutListener, removeCloseListener, removeCloseWithCommitListener, removeListener, saveSettings, setCaption, setContentSwitchMode, setDescription, setDsContext, setFocusComponent, setIcon, setIconFromSet, setWindowManager, setXmlDescriptor, validate, validateAll
add, add, addAction, addAction, addStyleName, dispose, expand, expand, getAction, getActions, getAlignment, getCompanion, getComponent, getComponent, getComponent, getComponents, getComposition, getDebugId, getDialogParams, getExpandDirection, getFrame, getHeight, getHeightUnits, getId, getMargin, getMessagesPack, getOwnComponent, getOwnComponents, getParent, getRegisteredComponent, getSpacing, getStyleName, getUiEventListeners, getWidth, getWidthUnits, getWrappedFrame, indexOf, isEnabled, isEnabledItself, isExpanded, isResponsive, isValid, isVisible, isVisibleItself, openEditor, openEditor, openEditor, openEditor, openEditor, openEditor, openEditor, openFrame, openFrame, openLookup, openLookup, openLookup, openLookup, openWindow, openWindow, registerComponent, remove, removeAction, removeAction, removeAll, removeAllActions, removeStyleName, requestFocus, resetExpanded, setAlignment, setCompanion, setContext, setDebugId, setEnabled, setFrame, setHeight, setId, setMargin, setMessagesPack, setParent, setResponsive, setSpacing, setStyleName, setUiEventListeners, setVisible, setWidth, setWrappedFrame, showMessageDialog, showNotification, showNotification, showNotification, showOptionDialog, showOptionDialog, showValidationErrors, showWebPage, unregisterComponent, unwrap, unwrapComposition, validate
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDialogParams, getMessagesPack, getRegisteredComponent, isValid, openEditor, openEditor, openEditor, openEditor, openEditor, openEditor, openEditor, openFrame, openFrame, openLookup, openLookup, openLookup, openLookup, openWindow, openWindow, registerComponent, setContext, setMessagesPack, showMessageDialog, showNotification, showNotification, showNotification, showOptionDialog, showOptionDialog, showWebPage, unregisterComponent, validate
expand, expand, getExpandDirection, isExpanded, resetExpanded
add, getComponent, getComponentNN, indexOf
add, getComponent, getComponentNN, getComponents, getOwnComponent, getOwnComponents, remove, removeAll
addStyleName, getAlignment, getDebugId, getHeight, getHeightUnits, getId, getParent, getStyleName, getWidth, getWidthUnits, isEnabled, isEnabledItself, isResponsive, isVisible, isVisibleItself, removeStyleName, requestFocus, setAlignment, setDebugId, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition
getFrame, setFrame
getSpacing, setSpacing
getMargin, setMargin, setMargin, setMargin
addAction, addAction, getAction, getActionNN, getActions, removeAction, removeAction, removeAllActions
public static <T extends java.lang.Number,V> void show(BackgroundTask<T,V> task, @Nullable java.lang.String title, @Nullable java.lang.String message, java.lang.Number total, boolean cancelAllowed, boolean percentProgress)
V
- task result typetask
- background task containing long operationtitle
- window title, optionalmessage
- window message, optionaltotal
- total number of items, that will be processedcancelAllowed
- show or not cancel buttonpercentProgress
- show progress in percentspublic static <T extends java.lang.Number,V> void show(BackgroundTask<T,V> task, @Nullable java.lang.String title, @Nullable java.lang.String message, java.lang.Number total, boolean cancelAllowed)
V
- task result typetask
- background task containing long operationtitle
- window title, optionalmessage
- window message, optionaltotal
- total number of items, that will be processedcancelAllowed
- show or not cancel buttonpublic static <T extends java.lang.Number,V> void show(BackgroundTask<T,V> task, java.lang.String title, java.lang.String message, java.lang.Number total)
V
- task result typetask
- background task containing long operationtitle
- window title, optionalmessage
- window message, optionaltotal
- total number of items, that will be processedpublic static <T extends java.lang.Number,V> void show(BackgroundTask<T,V> task, java.lang.Number total, boolean cancelAllowed)
V
- task result typetask
- background task containing long operationtotal
- total number of items, that will be processedcancelAllowed
- show or not cancel buttonpublic static <T extends java.lang.Number,V> void show(BackgroundTask<T,V> task, java.lang.Number total)
V
- task result typetask
- background task containing long operationtotal
- total number of items, that will be processedpublic void init(java.util.Map<java.lang.String,java.lang.Object> params)
AbstractFrame
init
in class AbstractFrame
params
- parameters passed from caller's code, usually from
AbstractFrame.openWindow(String, com.haulmont.cuba.gui.WindowManager.OpenType)
and similar methods, or set in
screens.xml
for this registered screenpublic void cancel()
public boolean close(java.lang.String actionId)
AbstractWindow
DsContext
,
the confirmation dialog will be shown.
AbstractWindow.preClose(String)
close
in interface Window
close
in class AbstractWindow
actionId
- action ID that will be propagated to attached CloseListener
s.
Use Window.COMMIT_ACTION_ID
if some changes have just been committed, or
Window.CLOSE_ACTION_ID
otherwise. These constants are recognized by various mechanisms of the
framework.