From c398c081ed4d83660ec867cabfb0ee9bc56b90ad Mon Sep 17 00:00:00 2001 From: Ida Massow Date: Mon, 30 May 2011 19:50:58 +0200 Subject: =?UTF-8?q?Test=20f=C3=BCr=20=C3=84nderung=20der=20StoneSet=20Anza?= =?UTF-8?q?hl=20fertig?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@327 72836036-5685-4462-b002-a69064685172 --- src/jrummikub/view/ISettingsPanel.java | 5 +++++ src/jrummikub/view/impl/SettingsPanel.java | 14 ++++++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) (limited to 'src/jrummikub') diff --git a/src/jrummikub/view/ISettingsPanel.java b/src/jrummikub/view/ISettingsPanel.java index 8c30c78..3caa8cb 100644 --- a/src/jrummikub/view/ISettingsPanel.java +++ b/src/jrummikub/view/ISettingsPanel.java @@ -80,6 +80,8 @@ public interface ISettingsPanel { * @return the event */ public IEvent1 getChangeInitialMeldThresholdEvent(); + + public IEvent1 getChangeStoneSetNumberEvent(); /** * the start game event is emitted when the user wants to start the game @@ -156,6 +158,8 @@ public interface ISettingsPanel { * initial meld threshold */ public void setInitialMeldThreshold(int value); + + public void setStoneSetNumber(int number); /** * Emitted when the joker number is changed @@ -164,6 +168,7 @@ public interface ISettingsPanel { */ public IEvent1 getChangeJokerNumberEvent(); + /** * Sets the joker number in the option pane * diff --git a/src/jrummikub/view/impl/SettingsPanel.java b/src/jrummikub/view/impl/SettingsPanel.java index a5792e7..1eb8e45 100644 --- a/src/jrummikub/view/impl/SettingsPanel.java +++ b/src/jrummikub/view/impl/SettingsPanel.java @@ -75,6 +75,7 @@ class SettingsPanel extends JPanel implements ISettingsPanel { private Event2 changePlayerTypeEvent = new Event2(); private Event1 changeInitialMeldThresholdEvent = new Event1(); private Event1 changeJokerNumberEvent = new Event1(); + private Event1 changeStoneSetNumberEvent = new Event1(); @Override public IEvent getStartGameEvent() { @@ -106,6 +107,11 @@ class SettingsPanel extends JPanel implements ISettingsPanel { return changeInitialMeldThresholdEvent; } + @Override + public IEvent1 getChangeStoneSetNumberEvent() { + return changeStoneSetNumberEvent; + } + @Override public void setError(SettingsError error) { switch (error) { @@ -246,8 +252,6 @@ class SettingsPanel extends JPanel implements ISettingsPanel { c.weightx = 1; c.weighty = 1; optionsPanel.add(makeFiller(), c); - - // TODO Knöpfe für Dinge } private JSpinner makeOptionSpinner(int row, int min, int max, int step, @@ -517,4 +521,10 @@ class SettingsPanel extends JPanel implements ISettingsPanel { public IEvent2 getChangePlayerTypeEvent() { return changePlayerTypeEvent; } + + @Override + public void setStoneSetNumber(int number) { + // TODO Auto-generated method stub + + } } -- cgit v1.2.3