diff options
author | Christopher Baines <cbaines8@gmail.com> | 2011-08-24 22:39:49 +0100 |
---|---|---|
committer | Christopher Baines <cbaines8@gmail.com> | 2011-08-24 22:39:49 +0100 |
commit | 4667303e15c534d390abee467eeaaee850e2d6f5 (patch) | |
tree | ae4f8e2df6b455bd235dc9b7547a62da17a59008 /PunchingBag/src/PunchingBag.java | |
parent | d01fc7da9367c0d5032741a9189258b467ce5eef (diff) | |
download | punchingbag-4667303e15c534d390abee467eeaaee850e2d6f5.tar punchingbag-4667303e15c534d390abee467eeaaee850e2d6f5.tar.gz |
New API for bag.
Diffstat (limited to 'PunchingBag/src/PunchingBag.java')
-rw-r--r-- | PunchingBag/src/PunchingBag.java | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/PunchingBag/src/PunchingBag.java b/PunchingBag/src/PunchingBag.java new file mode 100644 index 0000000..278a8fc --- /dev/null +++ b/PunchingBag/src/PunchingBag.java @@ -0,0 +1,24 @@ +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; + +import javax.swing.JButton; +import javax.swing.event.EventListenerList; + + +public class PunchingBag { + protected EventListenerList listenerList = new EventListenerList(); + + /** + * Adds an <code>ActionListener</code> to the button. + * @param l the <code>ActionListener</code> to be added + */ + public void addButtonListener(ButtonListener l) { + listenerList.add(ButtonListener.class, l); + } + + public void setLED(byte x, byte y, byte intensity) { + + + } + +} |