org.activemath.events.types
Class PagePresentedEvent

java.lang.Object
  extended by org.activemath.events.ActivemathEvent
      extended by org.activemath.events.types.PagePresentedEvent
All Implemented Interfaces:
Serializable, Comparable, BookEventTag, InteractionEventTag, SessionEventTag, UserEventTag

public class PagePresentedEvent
extends ActivemathEvent
implements InteractionEventTag, BookEventTag

Event: a page of a book is presented to the user.

See Also:
Serialized Form

Field Summary
static String EVENT_TYPE
           
protected  int page
           
 
Fields inherited from class org.activemath.events.ActivemathEvent
bookId, groupId, id, itemId, sessionId, source, timestamp, type, userId
 
Constructor Summary
PagePresentedEvent()
           
PagePresentedEvent(String book, int page)
           
 
Method Summary
 String getBookId()
           
 int getPage()
           
 String getSessionId()
           
 String getUniquePageId()
           
 String getUserId()
           
 void setBookId(String string)
           
 void setPage(int value)
           
 void setSessionId(String string)
           
 void setUserId(String string)
           
 String toString()
           
 
Methods inherited from class org.activemath.events.ActivemathEvent
compareTo, dispatchFinished, getGroupId, getId, getItemId, getSource, getTimestamp, getType, setGroupId, setId, setItemId, setSource, setTimestamp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.activemath.events.tags.UserEventTag
getGroupId, setGroupId
 

Field Detail

EVENT_TYPE

public static final String EVENT_TYPE
See Also:
Constant Field Values

page

protected int page
Constructor Detail

PagePresentedEvent

public PagePresentedEvent()

PagePresentedEvent

public PagePresentedEvent(String book,
                          int page)
Method Detail

getPage

public int getPage()
Returns:
Returns the page number.

getUniquePageId

public String getUniquePageId()

setPage

public void setPage(int value)

toString

public String toString()
Overrides:
toString in class ActivemathEvent

getUserId

public String getUserId()
Specified by:
getUserId in interface UserEventTag

setUserId

public void setUserId(String string)
Specified by:
setUserId in interface UserEventTag

getSessionId

public String getSessionId()
Specified by:
getSessionId in interface SessionEventTag

setSessionId

public void setSessionId(String string)
Specified by:
setSessionId in interface SessionEventTag

getBookId

public String getBookId()
Specified by:
getBookId in interface BookEventTag

setBookId

public void setBookId(String string)
Specified by:
setBookId in interface BookEventTag