jskat.data
Class JSkatDataModel

java.lang.Object
  extended by java.util.Observable
      extended by jskat.data.JSkatDataModel

public class JSkatDataModel
extends java.util.Observable

Holds all data of JSkat

Author:
Jan Schäfer

Field Summary
(package private) static org.apache.log4j.Logger log
           
 
Constructor Summary
JSkatDataModel(java.lang.Object mainClass, JSkatOptions jskatOptions)
          Creates a new instance of JSkatDataModel
 
Method Summary
 JSkatMaster getJSkatMaster()
          Returns a reference to the JSkatMaster
 JSkatOptions getJSkatOptions()
           
 java.lang.Object getMainClass()
          Gets the Main class
 JSkatFrame getMainWindow()
           
 java.util.ResourceBundle getResourceBundle()
          Returns the current ressource bundle
 void setJSkatMaster(JSkatMaster jskatMaster)
          Sets the JSkatMaster
 void setJSkatOptions(JSkatOptions jskatOptions)
           
 java.util.ResourceBundle setLocale(java.util.Locale newLocale)
           
 void setMainWindow(JSkatFrame mainWindow)
          Set the main window
 
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
 

Field Detail

log

static org.apache.log4j.Logger log
Constructor Detail

JSkatDataModel

public JSkatDataModel(java.lang.Object mainClass,
                      JSkatOptions jskatOptions)
Creates a new instance of JSkatDataModel

Parameters:
mainClass - A reference to the Main class
Method Detail

getResourceBundle

public java.util.ResourceBundle getResourceBundle()
Returns the current ressource bundle

Returns:
The current RessourceBundle

setLocale

public java.util.ResourceBundle setLocale(java.util.Locale newLocale)

getMainClass

public java.lang.Object getMainClass()
Gets the Main class

Returns:
the Main class

setMainWindow

public void setMainWindow(JSkatFrame mainWindow)
Set the main window

Parameters:
mainWindow - The main window

getMainWindow

public JSkatFrame getMainWindow()

getJSkatOptions

public JSkatOptions getJSkatOptions()
Returns:
Returns the jskatOptions.

setJSkatOptions

public void setJSkatOptions(JSkatOptions jskatOptions)
Parameters:
jskatOptions - The jskatOptions to set.

setJSkatMaster

public void setJSkatMaster(JSkatMaster jskatMaster)
Sets the JSkatMaster

Parameters:
jskatMaster -

getJSkatMaster

public JSkatMaster getJSkatMaster()
Returns a reference to the JSkatMaster

Returns:
jskatMaster