|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.flexiblewebsolutions.xdriveunit.DelayTimer
public class DelayTimer
Sets a delay for any action to be performed.
Constructor Summary | |
---|---|
DelayTimer()
|
Method Summary | |
---|---|
void |
clickDelay()
Suspends operation of thread for a specified amount of time. |
long |
getDelay()
The number of milliseconds set as the delay |
boolean |
getRandomDelay()
Returns whether the delay is random |
int |
getRandomMax()
Returns max possible value for random generation |
int |
getRandomMin()
Returns min possible value for random generation |
void |
setDelaySeconds(int pSeconds)
Set number of seconds to delay for non-random mode |
void |
setRandomDelay(boolean pVal)
Sets the delay time to use a random value |
void |
setRandomDelay(boolean pVal,
int pMin,
int pMax)
Sets the delay time to use a random value within a range |
void |
setRandomMax(int randomMax)
Sets the max possible value for random generation |
void |
setRandomMin(int randomMin)
Sets the minimum possible value for random generation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DelayTimer()
Method Detail |
---|
public void setRandomDelay(boolean pVal)
pVal
- True value set random delay modepublic void setRandomDelay(boolean pVal, int pMin, int pMax)
pVal
- True value set random delay modepMin
- Minimum value for delaypMax
- Maximum value for delaypublic boolean getRandomDelay()
public void clickDelay()
public long getDelay()
public void setDelaySeconds(int pSeconds)
Current
- seconds settingpublic int getRandomMax()
public void setRandomMax(int randomMax)
Maximum
- possible seconds.public int getRandomMin()
public void setRandomMin(int randomMin)
Minimum
- possible seconds
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |