gui
Class ApplicationState

java.lang.Object
  extended by gui.ApplicationState

public class ApplicationState
extends java.lang.Object

Application parameter settings. (Parameters' values taken from the file "calendar.prop". )


Field Summary
private  CalendarConfiguration calendarConfig
           
private  Language lang
           
private  int langIndex
           
static java.util.logging.Logger logger
           
private  java.lang.String loggingDirectory
           
 
Constructor Summary
ApplicationState(ApplicationState appState)
           
ApplicationState(CalendarConfiguration p_calendarConfig)
           
ApplicationState(CalendarConfiguration p_calendarConfig, int langIndex)
           
 
Method Summary
 boolean equals(ApplicationState s)
           
 int getlangIndex()
           
 Language getLanguage()
           
 java.lang.String getLoggingDirectory()
           
private  void init(CalendarConfiguration p_calendarConfig, int langIndex)
           
 void setLanguageIndex(int langIdx)
           
 void setLoggingDirectory(java.lang.String logDirectory)
           
private  void setNewLoggingDirectory()
          Sets logDir attribute to a new value
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

logger

public static final java.util.logging.Logger logger

calendarConfig

private CalendarConfiguration calendarConfig

langIndex

private int langIndex

lang

private Language lang

loggingDirectory

private java.lang.String loggingDirectory
Constructor Detail

ApplicationState

public ApplicationState(CalendarConfiguration p_calendarConfig)

ApplicationState

public ApplicationState(ApplicationState appState)
                 throws java.lang.Exception
Throws:
java.lang.Exception

ApplicationState

public ApplicationState(CalendarConfiguration p_calendarConfig,
                        int langIndex)
                 throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

init

private void init(CalendarConfiguration p_calendarConfig,
                  int langIndex)
           throws java.lang.Exception
Throws:
java.lang.Exception

setNewLoggingDirectory

private void setNewLoggingDirectory()
Sets logDir attribute to a new value

Parameters:
ApplicationState -
String - newLogDir provides the value of the new logging directory

setLanguageIndex

public void setLanguageIndex(int langIdx)
                      throws java.lang.IndexOutOfBoundsException
Throws:
java.lang.IndexOutOfBoundsException

equals

public boolean equals(ApplicationState s)

getlangIndex

public int getlangIndex()
Returns:

getLanguage

public Language getLanguage()
Returns:

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getLoggingDirectory

public java.lang.String getLoggingDirectory()
Returns:
Returns the loggingDirectory.

setLoggingDirectory

public void setLoggingDirectory(java.lang.String logDirectory)
Parameters:
loggingDirectory - The loggingDirectory to set.