public class BackgroundWorkWindow<T,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.WrapperFrame.MessageMode, Frame.MessageType, Frame.NotificationType, Frame.UiEventListenersHolderExpandingLayout.ExpandDirectionComponent.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.ValueChangeListenerBROWSE_WINDOW_SUFFIX, CLOSE_ACTION_ID, COMMIT_ACTION_ID, CREATE_WINDOW_SUFFIX, EDITOR_WINDOW_SUFFIX, LOOKUP_WINDOW_SUFFIX, NAME, SELECT_ACTION_IDAUTO_SIZE, AUTO_SIZE_PX, UNITS_PERCENTAGE, UNITS_PIXELS| Constructor and Description |
|---|
BackgroundWorkWindow() |
| 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,V> void |
show(BackgroundTask<T,V> task)
Show modal window with default title and message which will last until task completes.
|
static <T,V> void |
show(BackgroundTask<T,V> task,
boolean cancelAllowed)
Show modal window with default title and message which will last until task completes.
|
static <T,V> void |
show(BackgroundTask<T,V> task,
java.lang.String title,
java.lang.String message)
Show modal window with message which will last until task completes.
|
static <T,V> void |
show(BackgroundTask<T,V> task,
java.lang.String title,
java.lang.String message,
boolean cancelAllowed)
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, validateAlladd, add, addAction, addAction, addStyleName, 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, validateequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDialogParams, 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, validateexpand, expand, getExpandDirection, isExpanded, resetExpandedadd, getComponent, getComponentNN, indexOfadd, getComponent, getComponentNN, getComponents, getOwnComponent, getOwnComponents, remove, removeAlladdStyleName, 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, unwrapCompositiongetFrame, setFramegetSpacing, setSpacinggetMargin, setMargin, setMargin, setMarginaddAction, addAction, getAction, getActionNN, getActions, removeAction, removeAction, removeAllActionspublic static <T,V> void show(BackgroundTask<T,V> task, @Nullable java.lang.String title, @Nullable java.lang.String message, boolean cancelAllowed)
T - task progress unitV - task result typetask - background task containing long operationtitle - window title, optionalmessage - window message, optionalcancelAllowed - show or not cancel buttonpublic static <T,V> void show(BackgroundTask<T,V> task, java.lang.String title, java.lang.String message)
T - task progress unitV - task result typetask - background task containing long operationtitle - window title, optionalmessage - window message, optionalpublic static <T,V> void show(BackgroundTask<T,V> task, boolean cancelAllowed)
T - task progress unitV - task result typetask - background task containing long operationcancelAllowed - show or not cancel buttonpublic static <T,V> void show(BackgroundTask<T,V> task)
T - task progress unitV - task result typetask - background task containing long operationpublic void init(java.util.Map<java.lang.String,java.lang.Object> params)
AbstractFrameinit in class AbstractFrameparams - 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)
AbstractWindowDsContext,
the confirmation dialog will be shown.
AbstractWindow.preClose(String)close in interface Windowclose in class AbstractWindowactionId - action ID that will be propagated to attached CloseListeners.
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.