dd.util
Class TimedAction

java.lang.Object
  extended bydd.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

Field Summary
protected  java.lang.String description
           
protected  int duration
           
protected  java.lang.String name
           
protected  CountdownTimer timer
           
 
Constructor Summary
TimedAction()
           
TimedAction(java.lang.String name)
           
TimedAction(java.lang.String name, int duration)
           
TimedAction(java.lang.String name, int duration, java.lang.String description)
           
 
Method Summary
abstract  void doDefaultAction()
           
 java.lang.String getDescription()
           
 int getDuration()
           
 java.lang.String getName()
           
 CountdownTimer getTimer()
           
 void interrupt()
           
 void pause()
           
 void reset()
           
 void resume()
           
 void setDescription(java.lang.String description)
           
 void setDuration(int duration)
           
 void setName(java.lang.String name)
           
 void start()
           
 void timerElapsed(CountdownTimer timer)
           
 void timerStarted(CountdownTimer timer)
           
 void timerTick(CountdownTimer timer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected java.lang.String name

description

protected java.lang.String description

duration

protected int duration

timer

protected CountdownTimer timer
Constructor Detail

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)
Method Detail

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()