gui
Class ApplicationState
java.lang.Object
gui.ApplicationState
public class ApplicationState
- extends java.lang.Object
Application parameter settings. (Parameters' values taken from the file "calendar.prop". )
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
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
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.