de.heineken.studienarbeit
Class Timer
java.lang.Object
de.heineken.studienarbeit.Timer
- Runnable
(package private) class Timer
extends java.lang.Object
implements Runnable
Class Timer contains a counting unit with second rhythm
int | getSeconds() - returns the amount of seconds, the timer has counted since starting
|
void | run() - Run
declares the running algorithm
|
void | setAnzeigeText(JTextField jtf) - sets the reference of the text field that is being updated on every tick of the
Timer to display the current amount of time.
|
void | setMayRun(boolean newValue) - decides if the actual counter is allowed to count on
|
anzeigeText
private JTextField anzeigeText
fmt
(package private) DecimalFormat fmt
mayrun
private boolean mayrun
getSeconds
public int getSeconds()
returns the amount of seconds, the timer has counted since starting
run
public void run()
Run
declares the running algorithm
setAnzeigeText
public void setAnzeigeText(JTextField jtf)
sets the reference of the text field that is being updated on every tick of the
Timer to display the current amount of time.
setMayRun
public void setMayRun(boolean newValue)
decides if the actual counter is allowed to count on