|
ElegantJ Data Entry Masks Java API Specification v1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.elegantj.util.timer.Timer
This class provides the timer. The timer fires the event timerTick whenever the tick occurs. The interval of tick can be set by setInterval. Timer can be started by method start() and stopped by stop()
| Field Summary | |
com.elegantj.editors.C1 |
c1
|
| Constructor Summary | |
Timer()
Default constructor for Timer |
|
| Method Summary | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
Method which adds the property change listener l The property change listener |
void |
addTimerListener(TimerListener l)
Add a timerTick event listener |
void |
fireTimerEvent()
This method fires the Timer Event to all its listeners. |
void |
fireTimerEvent(int nEvent)
This method fires the Timer Event to all its listeners. |
long |
getInterval()
Get current timer-tick interval. |
java.lang.String |
getLicenseKey()
Returns the license key of the bean |
void |
invertStarted()
Inverts timer started state. |
boolean |
isStarted()
Get current started state. |
void |
readExternal(java.io.ObjectInput in)
Implementation of the Externalizable |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
Method which removes the property change listener l The property change listener |
void |
removeTimerListener(TimerListener l)
Remove a timerTick event listener |
void |
run()
Overriden run method from Runnable |
void |
setInterval(long interval)
Sets the interval for the timer |
void |
setLicenseKey(java.lang.String licenseKey)
Methods which sets the license key |
void |
setStarted(boolean bStart)
Sets timer started state |
void |
start()
Start the timer. |
void |
stop()
Stop the timer. |
void |
writeExternal(java.io.ObjectOutput out)
Implementation of the Externalizable |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public transient com.elegantj.editors.C1 c1
| Constructor Detail |
public Timer()
| Method Detail |
public void setInterval(long interval)
interval - interval for the timer-tickpublic long getInterval()
public void setLicenseKey(java.lang.String licenseKey)
public java.lang.String getLicenseKey()
public void setStarted(boolean bStart)
bStart - the state to start/stop.public boolean isStarted()
public void invertStarted()
public void start()
public void stop()
public void run()
run in interface java.lang.Runnablepublic final void fireTimerEvent()
public final void fireTimerEvent(int nEvent)
public void addTimerListener(TimerListener l)
l - The Timer Listenerpublic void removeTimerListener(TimerListener l)
l - The Timer Listenerpublic void addPropertyChangeListener(java.beans.PropertyChangeListener l)
public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOException
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOException
java.lang.ClassNotFoundException
|
ElegantJ Data Entry Masks Java API Specification v1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||