|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
jagafa.view.newui.RoundController2
public class RoundController2
RoundController2 collects UI actions from the view and sends it to the round object. He also gets UI-update notification of the round and sends it to the view This version of RoundController does not show anything on the screen. It just creates the views. A top-level controller can fetch those views (JPanel) by calling the get...() methods.
| Constructor Summary | |
|---|---|
RoundController2()
Constructor does nothing. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Called by the top-level UI's cardPressed() method |
JassRound |
getRound()
Get the round instance of the controller |
JassRoundPanel |
getRoundPanel()
Get the rounds UI panel |
RuleChoicePanel |
getRuleChoicePanel()
Get the RuleChoice panel |
RoundStatsPanel |
getStatsPanel()
Get the stats panel |
SimpleSTPanel |
getSTPanel()
|
void |
runAutomated()
|
void |
startRound(ScoreTable scoreTable)
Starts the game with the ruleSet given |
void |
toggleNoify()
|
void |
update(java.util.Observable o,
java.lang.Object arg)
Update the UI when an observable calls this observer |
void |
updateStats()
|
| Methods inherited from class java.util.Observable |
|---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RoundController2()
| Method Detail |
|---|
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenerpublic void startRound(ScoreTable scoreTable)
public void updateStats()
public void update(java.util.Observable o,
java.lang.Object arg)
update in interface java.util.Observerpublic JassRound getRound()
public JassRoundPanel getRoundPanel()
public RoundStatsPanel getStatsPanel()
public RuleChoicePanel getRuleChoicePanel()
public void runAutomated()
public SimpleSTPanel getSTPanel()
public void toggleNoify()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||