com.groovemanager.gui.custom
Class InfoGroupContainer.ProgBarUpdater

java.lang.Object
  extended by com.groovemanager.gui.custom.InfoGroupContainer.ProgBarUpdater
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
InfoGroupContainer

private static class InfoGroupContainer.ProgBarUpdater
extends java.lang.Object
implements java.lang.Runnable

A Runnable implementation used for Thread-safe updating of ProgressBars

Author:
Manu Robledo

Field Summary
private  int max
          The new maximum value or -1 if the maximum value should not be updated
private  int min
          The new minimum value or -1 if the minimum value should not be updated
private  org.eclipse.swt.widgets.ProgressBar p
          The ProgressBar to update
private  int selection
          The new selection or -1 if the selection should not be updated
 
Constructor Summary
private InfoGroupContainer.ProgBarUpdater()
           
 
Method Summary
 void run()
          Update the ProgressBar
(package private)  void setAll(int min, int max, int selection)
          Set new values for minimum, maximum and the new selection
(package private)  void setProgBar(org.eclipse.swt.widgets.ProgressBar p)
          Set the ProgressBar to update
(package private)  void setSelection(int sel)
          Set the new selection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

max

private int max
The new maximum value or -1 if the maximum value should not be updated


min

private int min
The new minimum value or -1 if the minimum value should not be updated


p

private org.eclipse.swt.widgets.ProgressBar p
The ProgressBar to update


selection

private int selection
The new selection or -1 if the selection should not be updated

Constructor Detail

InfoGroupContainer.ProgBarUpdater

private InfoGroupContainer.ProgBarUpdater()
Method Detail

run

public void run()
Update the ProgressBar

Specified by:
run in interface java.lang.Runnable
See Also:
Runnable.run()

setAll

void setAll(int min,
            int max,
            int selection)
Set new values for minimum, maximum and the new selection

Parameters:
min - The new minimum value
max - The new maximum value
selection - The new selection

setProgBar

void setProgBar(org.eclipse.swt.widgets.ProgressBar p)
Set the ProgressBar to update

Parameters:
p - The ProgressBar to update

setSelection

void setSelection(int sel)
Set the new selection

Parameters:
sel - The new selection value