|
OBEROn SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.oberon.ooql.sdk.ProgressCounter
public class ProgressCounter
The Progress Counter is used to retrieve the percentage of file upload / download
Constructor Summary | |
---|---|
ProgressCounter(int countNum)
Constructor |
Method Summary | |
---|---|
void |
addCounterValue(float incr)
Increment the selected counter value |
void |
addCounterValue(int counter,
float incr)
Change the counter selection and add an increment to the selected counter |
void |
forceCounter(int counter)
Select one of the available counters with forced condition; after this selection the selectCounter(int) has no effect |
float |
getCounterNum()
Return the number of counters |
float |
getCounterPerc()
Get the current progress percentage for the selected counter |
float |
getCounterPerc(int counter)
Get the current progress percentage for the specified counter |
float |
getCounterValue()
Get the current value for the selected counter |
float |
getCounterValue(int counter)
Get the current value for the specified counter |
float |
getMaximumValue()
Get the maximum value for the currently selected counter |
int |
getSelected()
Get the current selected counter |
boolean |
isCompleted()
Check if the value of selected counter reached the maximum value |
boolean |
isFailed()
Check if the current counter reports the failed condition [-1] |
void |
selectCounter(int counter)
Select one of the available counters |
void |
setCompleted()
Assign the maximum value to the selected counter |
void |
setCounterValue(float value)
Assign a value to the selected counter |
void |
setCounterValue(int counter,
float value)
Change the counter selection and assign a value to the selected counter |
void |
setFailed()
Assign the failed condition [-1] to the selected counter |
void |
setMaximumValue(float max)
Set the maximum value for the currently selected counter |
void |
setUpdateListener(ProgressListener listener)
Assign a listener for the update event It runs every time the counter value is changed |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProgressCounter(int countNum)
countNum
- number of counters (generally equals to files transferred)Method Detail |
---|
public float getCounterNum()
public void selectCounter(int counter)
counter
- the counter numberpublic void forceCounter(int counter)
counter
- the counter numberpublic int getSelected()
selectCounter(int)
public void setMaximumValue(float max)
max
- the max valuepublic float getMaximumValue()
public void setCounterValue(int counter, float value)
counter
- the counter numbervalue
- the assigned valuepublic void setCounterValue(float value)
value
- the assigned valuepublic void addCounterValue(int counter, float incr)
counter
- the counter numberincr
- the increment valuepublic void addCounterValue(float incr)
incr
- the increment valuepublic float getCounterValue(int counter)
counter
- the counter numberpublic float getCounterValue()
public float getCounterPerc(int counter)
counter
- the counter numberpublic float getCounterPerc()
public void setCompleted()
public void setFailed()
public boolean isCompleted()
public boolean isFailed()
public void setUpdateListener(ProgressListener listener)
|
OBEROn SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |