jskat.control
Class JSkatMaster

java.lang.Object
  extended by java.util.Observable
      extended by jskat.control.JSkatMaster

public class JSkatMaster
extends java.util.Observable

The JSkatMaster controls the whole application and all events

Author:
Jan Schäfer, Markus Luzius

Constructor Summary
JSkatMaster(JSkatDataModel dataModel)
          Creates a new instance of JSkatMaster
 
Method Summary
 void createNewSkatTable()
          Creates a new skat table
 void exitJSkat()
          Exits JSkat
 SkatTable getCurrentSkatTable()
          Returns the current skat table
 JSkatOptions getJSkatOptions()
          Gets the JSkatOptions
 void setJSkatOptions(JSkatOptionsDialog optionsDialog)
          Sets the options for the current skat table
 
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

JSkatMaster

public JSkatMaster(JSkatDataModel dataModel)
Creates a new instance of JSkatMaster

Parameters:
dataModel - reference to the data model
Method Detail

getJSkatOptions

public JSkatOptions getJSkatOptions()
Gets the JSkatOptions


setJSkatOptions

public void setJSkatOptions(JSkatOptionsDialog optionsDialog)
Sets the options for the current skat table

Parameters:
optionsDialog -

exitJSkat

public void exitJSkat()
Exits JSkat


createNewSkatTable

public void createNewSkatTable()
Creates a new skat table


getCurrentSkatTable

public SkatTable getCurrentSkatTable()
Returns the current skat table

Returns:
The current skat table, null if there is none