Lines 285-290
Link Here
|
285 |
public void processProgressEvent(ProgressEvent event) { |
285 |
public void processProgressEvent(ProgressEvent event) { |
286 |
if (event.getType() == ProgressEvent.TYPE_START) { |
286 |
if (event.getType() == ProgressEvent.TYPE_START) { |
287 |
createListItem(event.getSource()); |
287 |
createListItem(event.getSource()); |
|
|
288 |
if (handle != null && handle.isInSleepMode()) { |
289 |
initiateComponent(event); |
290 |
} |
288 |
} else if (event.getType() == ProgressEvent.TYPE_PROGRESS || |
291 |
} else if (event.getType() == ProgressEvent.TYPE_PROGRESS || |
289 |
event.getType() == ProgressEvent.TYPE_SWITCH || |
292 |
event.getType() == ProgressEvent.TYPE_SWITCH || |
290 |
event.getType() == ProgressEvent.TYPE_SILENT) { |
293 |
event.getType() == ProgressEvent.TYPE_SILENT) { |
Lines 326-335
Link Here
|
326 |
return; |
329 |
return; |
327 |
} else { |
330 |
} else { |
328 |
if (event.getSource() != handle || event.isSwitched() || |
331 |
if (event.getSource() != handle || event.isSwitched() || |
329 |
event.getType() == ProgressEvent.TYPE_SILENT || |
|
|
330 |
// the following condition re-initiates the bar when going from/to sleep mode.. |
332 |
// the following condition re-initiates the bar when going from/to sleep mode.. |
331 |
(event.getSource().isInSleepMode() != (bar.getClientProperty(NbProgressBar.SLEEPY) != null))) { //NIO18N |
333 |
(event.getSource().isInSleepMode() != (bar.getClientProperty(NbProgressBar.SLEEPY) != null))) { //NIO18N |
332 |
initiateComponent(event); |
334 |
if (!event.getSource().isInSleepMode()) { |
|
|
335 |
initiateComponent(event); |
336 |
} |
333 |
} |
337 |
} |
334 |
if (event.getWorkunitsDone() > 0) { |
338 |
if (event.getWorkunitsDone() > 0) { |
335 |
bar.setValue(event.getWorkunitsDone()); |
339 |
bar.setValue(event.getWorkunitsDone()); |