public class LongOperationNotifier extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static int |
HUNDRED |
protected static String |
PERCENT |
protected static int |
PROGRESS_TIMER_DELAY |
protected static String |
SCLASS_PROGRESS_CANCEL |
protected static String |
SCLASS_PROGRESS_METER_CONTAINER |
protected static String |
SCLASS_PROGRESS_TITLE |
protected static String |
SCLASS_PROGRESS_VALUE_LABEL |
| Constructor and Description |
|---|
LongOperationNotifier(Operation operation) |
| Modifier and Type | Method and Description |
|---|---|
Progress |
getProgress() |
void |
removeNotification()
Hides long operation notification by detaching renderComponent passed in
showNotification(Component) |
void |
showNotification(org.zkoss.zk.ui.Component renderComponent)
Shows long operation notification.
|
void |
showNotification(org.zkoss.zk.ui.Component renderComponent,
Cancellable cancellable)
Shows long operation notification.
|
protected static final String SCLASS_PROGRESS_VALUE_LABEL
protected static final String SCLASS_PROGRESS_METER_CONTAINER
protected static final String SCLASS_PROGRESS_CANCEL
protected static final String SCLASS_PROGRESS_TITLE
protected static final int HUNDRED
protected static final int PROGRESS_TIMER_DELAY
protected static final String PERCENT
public LongOperationNotifier(Operation operation)
operation - holds long operation information which is used to display notification
Operation.isTerminable(),Operation.getProgressType(), Operation.getLabel()public void removeNotification()
showNotification(Component)public Progress getProgress()
public void showNotification(org.zkoss.zk.ui.Component renderComponent)
renderComponent - component on which notification will be rendered. The component will be detached from
parent when the notification is removed.public void showNotification(org.zkoss.zk.ui.Component renderComponent,
Cancellable cancellable)
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 ui Cancellable.cancel() will be called.Copyright © 2018. All rights reserved.