From 6161c4b1d4d9b5a47775d32dfa198003ddb5afb5 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 3 May 2011 17:33:48 +0200 Subject: Rename event and listener methods git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@81 72836036-5685-4462-b002-a69064685172 --- src/jrummikub/view/impl/AbstractStonePanel.java | 4 ++-- src/jrummikub/view/impl/PlayerPanel.java | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/jrummikub/view/impl') diff --git a/src/jrummikub/view/impl/AbstractStonePanel.java b/src/jrummikub/view/impl/AbstractStonePanel.java index 19e5891..a19ea1f 100644 --- a/src/jrummikub/view/impl/AbstractStonePanel.java +++ b/src/jrummikub/view/impl/AbstractStonePanel.java @@ -65,7 +65,7 @@ abstract class AbstractStonePanel extends JPanel implements IStonePanel, Stone stone = getStoneAt(pos); if (stone == null) { - clickEvent.fire(pos); + clickEvent.emit(pos); return; } @@ -76,7 +76,7 @@ abstract class AbstractStonePanel extends JPanel implements IStonePanel, else if (e.getClickCount() >= 2) event = setClickEvent; - event.fire(stone, e.isControlDown()); + event.emit(stone, e.isControlDown()); } }); } diff --git a/src/jrummikub/view/impl/PlayerPanel.java b/src/jrummikub/view/impl/PlayerPanel.java index 0a7e64a..385356b 100644 --- a/src/jrummikub/view/impl/PlayerPanel.java +++ b/src/jrummikub/view/impl/PlayerPanel.java @@ -96,7 +96,7 @@ class PlayerPanel extends JPanel implements IPlayerPanel { sortByNumberButton.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent arg0) { - sortByNumberEvent.fire(); + sortByNumberEvent.emit(); } }); leftPanel.add(sortByNumberButton); @@ -107,7 +107,7 @@ class PlayerPanel extends JPanel implements IPlayerPanel { sortByColorButton.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent arg0) { - sortByColorEvent.fire(); + sortByColorEvent.emit(); } }); leftPanel.add(sortByColorButton); @@ -131,7 +131,7 @@ class PlayerPanel extends JPanel implements IPlayerPanel { endTurnButton.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent arg0) { - endTurnEvent.fire(); + endTurnEvent.emit(); } }); -- cgit v1.2.3