de.hs_rm.cs.lecturenotes.client.configuration
Class AppClientModel

java.lang.Object
  extended by de.hs_rm.cs.lecturenotes.client.configuration.AppClientModel

public final class AppClientModel
extends java.lang.Object

Stores the basic configuration and runtime properties of the client. Includes the former LocalState for UI representation.

Version:
$LastChangedRevision: 236 $
Author:
Enrico Homann

Field Summary
static AnnotationAttributeEnum ANNOTATIONPANEL_SORT_ATTRIBUTE
          Sort Attribute for the right annotation panel.
static SQLSortDirectionEnum ANNOTATIONPANEL_SORT_DIRECTION
          Sort Direction for the right annotation panel.
static java.lang.String BASE_URL
          GWT Module Base URL.
static java.lang.String FILECARD_PRINTDIMENSION_HEIGHT
          Avery 5388 3" x 5".
static java.lang.String FILECARD_PRINTDIMENSION_WIDTH
          Avery 5388 3" x 5".
static java.lang.String GUEST_LOGINNAME
          Login Name for User Guest.
static java.lang.String GUEST_PASSWORD
          Login Password for User Guest.
static java.lang.String HOSTPAGEBASE_URL
          URL where the host page resides.
static java.lang.String PDF_RELATIVEBASE_URL
          URL as prefix for the PDF Print Window.
static int SYSTEMLOGINCHECK_PERIOD_MILLS
          System Login Check in milliseconds.
 
Method Summary
 Lecture getCurrentLecture()
          Will return the current Lecture.
 Paragraph getCurrentParagraph()
          Will return the current Paragraph.
 User getCurrentUser()
          Will return the current User object.
 java.lang.String getDisplayState()
          Will return the status UI String representation.
static AppClientModel getInstance()
          Will return the Singleton object instance of this class.
static void reset()
          Resets the properties.
 void setCurrentLecture(Lecture oCurrentLecture)
          Sets the current Lecture.
 void setCurrentParagraph(Paragraph oCurrentParagraph)
          Sets the current Paragraph.
 void setCurrentUser(User oCurrentUser)
          Sets the current User object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BASE_URL

public static final java.lang.String BASE_URL
GWT Module Base URL. URL ends with a slash. (ie. localhost:8080/LectureNotes/lecturenotes/).


HOSTPAGEBASE_URL

public static final java.lang.String HOSTPAGEBASE_URL
URL where the host page resides. URL ends with a slash. (ie. localhost:8080/LectureNotes/)


SYSTEMLOGINCHECK_PERIOD_MILLS

public static final int SYSTEMLOGINCHECK_PERIOD_MILLS
System Login Check in milliseconds. Default 0.5 Minutes (30 Seconds).

See Also:
Constant Field Values

GUEST_LOGINNAME

public static final java.lang.String GUEST_LOGINNAME
Login Name for User Guest.

See Also:
Constant Field Values

GUEST_PASSWORD

public static final java.lang.String GUEST_PASSWORD
Login Password for User Guest.

See Also:
Constant Field Values

PDF_RELATIVEBASE_URL

public static final java.lang.String PDF_RELATIVEBASE_URL
URL as prefix for the PDF Print Window.


FILECARD_PRINTDIMENSION_WIDTH

public static final java.lang.String FILECARD_PRINTDIMENSION_WIDTH
Avery 5388 3" x 5". In CSS units. Here the width. Avery Width: "5in". For browser compatibility set to "100%". Firefox 16 has issues if set to "5in", the vertical scroll bar just disappears.

See Also:
Constant Field Values

FILECARD_PRINTDIMENSION_HEIGHT

public static final java.lang.String FILECARD_PRINTDIMENSION_HEIGHT
Avery 5388 3" x 5". In CSS units. Here the height. Avery Height: "3in"

See Also:
Constant Field Values

ANNOTATIONPANEL_SORT_ATTRIBUTE

public static final AnnotationAttributeEnum ANNOTATIONPANEL_SORT_ATTRIBUTE
Sort Attribute for the right annotation panel.


ANNOTATIONPANEL_SORT_DIRECTION

public static final SQLSortDirectionEnum ANNOTATIONPANEL_SORT_DIRECTION
Sort Direction for the right annotation panel.

Method Detail

getInstance

public static AppClientModel getInstance()
Will return the Singleton object instance of this class.

Returns:
AppClientConfigModel

reset

public static void reset()
Resets the properties.


getCurrentUser

public User getCurrentUser()
Will return the current User object.

Returns:
User

setCurrentUser

public void setCurrentUser(User oCurrentUser)
Sets the current User object.

Parameters:
oCurrentUser - User

getCurrentParagraph

public Paragraph getCurrentParagraph()
Will return the current Paragraph.

Returns:
Paragraph

setCurrentParagraph

public void setCurrentParagraph(Paragraph oCurrentParagraph)
Sets the current Paragraph.

Parameters:
oCurrentParagraph - Paragraph

getCurrentLecture

public Lecture getCurrentLecture()
Will return the current Lecture.

Returns:
Lecture

setCurrentLecture

public void setCurrentLecture(Lecture oCurrentLecture)
Sets the current Lecture.

Parameters:
oCurrentLecture - Lecture

getDisplayState

public java.lang.String getDisplayState()
Will return the status UI String representation.

Returns:
String