org.perfectjpattern.core.behavioral.observer
Class DigitalClock

java.lang.Object
  extended by org.perfectjpattern.core.behavioral.observer.DigitalClock
All Implemented Interfaces:
IObserver<Date>, IClock, IWidget

public class DigitalClock
extends Object
implements IClock

Concrete implementation of IClock of type Digital

Version:
$Revision: 1.0 $Date: May 25, 2008 3:40:41 PM $
Author:
Giovanni Azua
 

Constructor Summary
DigitalClock()
           
 
Method Summary
 void draw()
          
protected static void setLogger(org.slf4j.Logger aLogger)
           
 void update(Date aDate)
          Notification from ISubject instance that a change has ocurred.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DigitalClock

public DigitalClock()
Method Detail

draw

public void draw()

Specified by:
draw in interface IWidget

update

public void update(Date aDate)
Notification from ISubject instance that a change has ocurred.

Specified by:
update in interface IObserver<Date>
Parameters:
aDate - Event data pushed to IObserver instances.

setLogger

protected static void setLogger(org.slf4j.Logger aLogger)


Copyright © 2007-2009. All Rights Reserved.