dd.util
Class TimedAction
java.lang.Object
dd.util.TimedAction
- All Implemented Interfaces:
- TimedActionListener
- public abstract class TimedAction
- extends java.lang.Object
- implements TimedActionListener
A simple class template. The idea is that you can copy this file and
modify stuff where necessary. It provides examples of javadoc comments
and basic formatting conventions. Hopefully this is useful for cutting
and pasting.
If you want to start a new paragraph in Javadoc, you need a blank line
and paragraph tags, as shown here. Note the closing tag for a paragraph
is optional.
- Author:
- Eric Scharff
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name
protected java.lang.String name
description
protected java.lang.String description
duration
protected int duration
timer
protected CountdownTimer timer
TimedAction
public TimedAction()
TimedAction
public TimedAction(java.lang.String name)
TimedAction
public TimedAction(java.lang.String name,
int duration)
TimedAction
public TimedAction(java.lang.String name,
int duration,
java.lang.String description)
getName
public java.lang.String getName()
setName
public void setName(java.lang.String name)
getDescription
public java.lang.String getDescription()
setDescription
public void setDescription(java.lang.String description)
getDuration
public int getDuration()
setDuration
public void setDuration(int duration)
getTimer
public CountdownTimer getTimer()
start
public void start()
pause
public void pause()
resume
public void resume()
reset
public void reset()
interrupt
public void interrupt()
timerStarted
public void timerStarted(CountdownTimer timer)
- Specified by:
timerStarted
in interface TimedActionListener
timerTick
public void timerTick(CountdownTimer timer)
- Specified by:
timerTick
in interface TimedActionListener
timerElapsed
public void timerElapsed(CountdownTimer timer)
- Specified by:
timerElapsed
in interface TimedActionListener
doDefaultAction
public abstract void doDefaultAction()