![JAR search and dependency download from the Maven repository](/logo.png)
de.tsl2.nano.h5.websocket.WSEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tsl2.nano.h5 Show documentation
Show all versions of tsl2.nano.h5 Show documentation
TSL2 Framework Html5 Extensions (WebServer, Html5Presentation, RuleCover, BeanConfigurator, LogicTable-Sheet, Expression-Descriptors for Actions, Rules, URLs, Queries)
/*
* File: $HeadURL$
* Id : $Id$
*
* created by: Tom, Thomas Schneider
* created on: 08.05.2015
*
* Copyright: (c) Thomas Schneider 2015, all rights reserved
*/
package de.tsl2.nano.h5.websocket;
import de.tsl2.nano.core.messaging.ChangeEvent;
/**
* Websocket event holding a mouse click position
*
* @author Tom, Thomas Schneider
* @version $Revision$
*/
public class WSEvent extends ChangeEvent {
/** serialVersionUID */
private static final long serialVersionUID = 6151520283676866400L;
long timeStamp;
int clickX, clickY;
public WSEvent(Object source, Object oldValue, Object newValue, int clickX, int clickY) {
super(source, true, false, oldValue, newValue);
this.clickX = clickX;
this.clickY = clickY;
timeStamp = System.currentTimeMillis();
}
/**
* @return Returns the clickX.
*/
public int getClickX() {
return clickX;
}
/**
* @return Returns the clickY.
*/
public int getClickY() {
return clickY;
}
/**
* getTimeStamp
* @return
*/
public long getTimeStamp() {
return timeStamp;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy