|
Servoy 5.x Public API | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.servoy.j2db.scripting.JSEvent
public class JSEvent
JSEvent, used as first argument to user-event callbacks.
| Nested Class Summary | |
|---|---|
static class |
JSEvent.EventType
|
| Field Summary | |
|---|---|
static String |
ACTION
Constant returned by JSEvent.getType() in a method that is attached to an onAction event. |
static String |
DATACHANGE
Constant returned by JSEvent.getType() in a method that is attached to an onDataChange event. |
static String |
DOUBLECLICK
Constant returned by JSEvent.getType() in a method that is attached to an onDoubleClick event. |
static String |
FOCUSGAINED
Constant returned by JSEvent.getType() in a method that is attached to an onFocusGained or the forms onElementFocusGained event. |
static String |
FOCUSLOST
Constant returned by JSEvent.getType() in a method that is attached to an onFocusLost or the forms onElementFocusLost event. |
static String |
FORM
Constant returned by JSEvent.getType() in a method that is attached to a form event (like onShow) or command (like onDeleteRecord) |
static int |
MODIFIER_ALT
Constant for the ALT modifier that can be returned by JSEvent.getModifiers(); |
static int |
MODIFIER_CTRL
Constant for the CTRL modifier that can be returned by JSEvent.getModifiers(); |
static int |
MODIFIER_META
Constant for the META modifier that can be returned by JSEvent.getModifiers(); |
static int |
MODIFIER_SHIFT
Constant for the SHIFT modifier that can be returned by JSEvent.getModifiers(); |
static String |
NONE
Constant returned by JSEvent.getType() if the event is not used in a known event or command. |
static String |
ONDRAG
Constant returned by JSEvent.getType() in a method that is attached to an onDrag event. |
static String |
ONDRAGOVER
Constant returned by JSEvent.getType() in a method that is attached to an onDragOver event. |
static String |
ONDROP
Constant returned by JSEvent.getType() in a method that is attached to an onDrop event. |
static String |
RIGHTCLICK
Constant returned by JSEvent.getType() in a method that is attached to an onRightClick event. |
| Constructor Summary | |
|---|---|
JSEvent()
|
|
| Method Summary | |
|---|---|
Object |
getData()
|
String |
getPrefix()
|
Object |
js_getData()
A data object that specific events can set, a user can set data back to the system for events that supports this. |
String |
js_getElementName()
returns the name of the element, can be null if the form was the source of the event. |
String |
js_getFormName()
returns the name of the form the element was placed on. |
int |
js_getModifiers()
Returns the modifiers of the event, see JSEvent.MODIFIER_XXXX for the modifiers that can be returned. |
Object |
js_getSource()
returns the source component/element of the event. |
Date |
js_getTimestamp()
Returns the time the event occurred. |
String |
js_getType()
returns the event type see the JSEvents constants what it can return. |
int |
js_getX()
Returns the x position of the event if applicable. |
int |
js_getY()
Returns the x position of the event if applicable. |
void |
js_setData(Object object)
|
void |
setData(Object object)
|
void |
setElementName(String elementName)
|
void |
setFormName(String formName)
|
void |
setLocation(Point point)
|
void |
setModifiers(int modifiers)
|
void |
setSource(Object source)
|
void |
setTimestamp(Date timestamp)
|
void |
setType(JSEvent.EventType type)
|
void |
setType(String type)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String ACTION
public static final String DATACHANGE
public static final String DOUBLECLICK
public static final String FOCUSGAINED
public static final String FOCUSLOST
public static final String FORM
public static final int MODIFIER_ALT
js_getModifiers(),
Constant Field Valuespublic static final int MODIFIER_CTRL
js_getModifiers(),
Constant Field Valuespublic static final int MODIFIER_META
js_getModifiers(),
Constant Field Valuespublic static final int MODIFIER_SHIFT
js_getModifiers(),
Constant Field Valuespublic static final String NONE
public static final String ONDRAG
public static final String ONDRAGOVER
public static final String ONDROP
public static final String RIGHTCLICK
| Constructor Detail |
|---|
public JSEvent()
| Method Detail |
|---|
public Object getData()
public String getPrefix()
getPrefix in interface IPrefixedConstantsObjectIPrefixedConstantsObject.getPrefix()public Object js_getData()
public String js_getElementName()
public String js_getFormName()
public int js_getModifiers()
public Object js_getSource()
public Date js_getTimestamp()
public String js_getType()
public int js_getX()
public int js_getY()
public void js_setData(Object object)
public void setData(Object object)
public void setElementName(String elementName)
public void setFormName(String formName)
public void setLocation(Point point)
public void setModifiers(int modifiers)
public void setSource(Object source)
public void setTimestamp(Date timestamp)
public void setType(JSEvent.EventType type)
public void setType(String type)
public String toString()
toString in class Object
|
Copyright © 2010 Servoy B.V. | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||