public class IntermediateListener extends Object implements ProgressListener
| Constructor and Description |
|---|
IntermediateListener(ProgressListener child)
Create an IntermediateListener that translates notifications of a
child into a broader range.
|
| Modifier and Type | Method and Description |
|---|---|
void |
notifyProgress(float level,
String message)
Forward a new notification adjusting the percent to the specified range.
|
void |
setRange(float min,
float max)
Set the current range of notifications, For example if the range 20-40% is specified,
when the child notifies 0, this IntermediateListener notifies the parent with 20%, and when
the child notifies 100, the IntermediateListener notifies 40.
|
public IntermediateListener(ProgressListener child)
child - public void notifyProgress(float level,
String message)
notifyProgress in interface ProgressListenerpublic void setRange(float min,
float max)
min - max - Copyright © 2018 DataWeb Research. All rights reserved.