diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-05-04 17:03:17 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-05-04 17:03:17 +0200 |
commit | 8199274c9d4158a4bbf5361f3506f144e75344c1 (patch) | |
tree | 37ff372c52ed24460e99e45063bc6e03ece6c10a | |
parent | a96f92148a72b3faaeab8c4c165f57ae97e9968d (diff) | |
download | JRummikub-8199274c9d4158a4bbf5361f3506f144e75344c1.tar JRummikub-8199274c9d4158a4bbf5361f3506f144e75344c1.zip |
Added JavaDoc to WinPanel
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@109 72836036-5685-4462-b002-a69064685172
-rw-r--r-- | src/jrummikub/view/impl/WinPanel.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/jrummikub/view/impl/WinPanel.java b/src/jrummikub/view/impl/WinPanel.java index cd63540..45cc878 100644 --- a/src/jrummikub/view/impl/WinPanel.java +++ b/src/jrummikub/view/impl/WinPanel.java @@ -14,6 +14,10 @@ import javax.swing.border.EmptyBorder; import jrummikub.util.Event; import jrummikub.util.IEvent; +/** + * A panel that is displayed when a player has won + */ +@SuppressWarnings("serial") public class WinPanel extends JPanel { private final static int PANEL_INSET = 15; private final static int PANEL_SEPARATOR = 10; @@ -28,6 +32,9 @@ public class WinPanel extends JPanel { private Event quitEvent = new Event(); private Event newGameEvent = new Event(); + /** + * Creates a new WinPanel + */ WinPanel() { setLayout(null); setBorder(new EmptyBorder(PANEL_INSET, PANEL_INSET, PANEL_INSET, @@ -66,10 +73,20 @@ public class WinPanel extends JPanel { }); } + /** + * The new game event is emitted when the player wants to start a new game + * + * @return the event + */ IEvent getNewGameEvent() { return newGameEvent; } + /** + * The quit event is emitted when the player wants to quit the program + * + * @return the event + */ IEvent getQuitEvent() { return quitEvent; } |