Class LongOperationNotifier
- java.lang.Object
-
- com.hybris.cockpitng.engine.operations.LongOperationNotifier
-
public class LongOperationNotifier extends java.lang.ObjectLong operation notifier.
-
-
Field Summary
Fields Modifier and Type Field Description protected static intHUNDREDprotected static java.lang.StringPERCENTprotected static intPROGRESS_TIMER_DELAYprotected static java.lang.StringSCLASS_PROGRESS_CANCELprotected static java.lang.StringSCLASS_PROGRESS_METER_CONTAINERprotected static java.lang.StringSCLASS_PROGRESS_TITLEprotected static java.lang.StringSCLASS_PROGRESS_VALUE_LABEL
-
Constructor Summary
Constructors Constructor Description LongOperationNotifier(Operation operation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProgressgetProgress()voidremoveNotification()Hides long operation notification by detaching renderComponent passed inshowNotification(Component)voidshowNotification(org.zkoss.zk.ui.Component renderComponent)Shows long operation notification.voidshowNotification(org.zkoss.zk.ui.Component renderComponent, Cancellable cancellable)Shows long operation notification.
-
-
-
Field Detail
-
SCLASS_PROGRESS_VALUE_LABEL
protected static final java.lang.String SCLASS_PROGRESS_VALUE_LABEL
- See Also:
- Constant Field Values
-
SCLASS_PROGRESS_METER_CONTAINER
protected static final java.lang.String SCLASS_PROGRESS_METER_CONTAINER
- See Also:
- Constant Field Values
-
SCLASS_PROGRESS_CANCEL
protected static final java.lang.String SCLASS_PROGRESS_CANCEL
- See Also:
- Constant Field Values
-
SCLASS_PROGRESS_TITLE
protected static final java.lang.String SCLASS_PROGRESS_TITLE
- See Also:
- Constant Field Values
-
HUNDRED
protected static final int HUNDRED
- See Also:
- Constant Field Values
-
PROGRESS_TIMER_DELAY
protected static final int PROGRESS_TIMER_DELAY
- See Also:
- Constant Field Values
-
PERCENT
protected static final java.lang.String PERCENT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LongOperationNotifier
public LongOperationNotifier(Operation operation)
- Parameters:
operation- holds long operation information which is used to display notificationOperation.isTerminable(),Operation.getProgressType(),Operation.getLabel()
-
-
Method Detail
-
removeNotification
public void removeNotification()
Hides long operation notification by detaching renderComponent passed inshowNotification(Component)
-
getProgress
public Progress getProgress()
-
showNotification
public void showNotification(org.zkoss.zk.ui.Component renderComponent)
Shows long operation notification.- Parameters:
renderComponent- component on which notification will be rendered. The component will be detached from parent when the notification is removed.
-
showNotification
public void showNotification(org.zkoss.zk.ui.Component renderComponent, Cancellable cancellable)Shows long operation notification.- Parameters:
renderComponent- component on which notification will be rendered. The component will be detached from parent when the notification is removed.cancellable- on cancel request from uiCancellable.cancel()will be called.
-
-