org.activemath.events.types
Class FocusChangedEvent
java.lang.Object
org.activemath.events.ActivemathEvent
org.activemath.events.types.FocusChangedEvent
- All Implemented Interfaces:
- Serializable, Comparable, InteractionEventTag, SessionEventTag, UserEventTag
public class FocusChangedEvent
- extends ActivemathEvent
- implements InteractionEventTag
Event: window focus has changed on client
Note: Currently, the client cannot determine reliably if the window focus is lost.
- See Also:
- Serialized Form
| Methods inherited from class org.activemath.events.ActivemathEvent |
compareTo, dispatchFinished, getGroupId, getId, getItemId, getSource, getTimestamp, getType, setGroupId, setId, setItemId, setSource, setTimestamp |
EVENT_TYPE
public static final String EVENT_TYPE
- See Also:
- Constant Field Values
FocusChangedEvent
public FocusChangedEvent()
FocusChangedEvent
public FocusChangedEvent(String windowName,
boolean gotFocus)
getWindowName
public String getWindowName()
- Returns:
- name of the client window
setWindowName
public void setWindowName(String windowName)
gotFocus
public boolean gotFocus()
- Returns:
true if window got focus, false if window is unfocussed.
lostFocus
public boolean lostFocus()
isGotFocus
public boolean isGotFocus()
setGotFocus
public void setGotFocus(boolean gotFocus)
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