public class ElementInteraction extends Object
Constructor and Description |
---|
ElementInteraction(Nifty niftyParam,
Element element) |
Modifier and Type | Method and Description |
---|---|
void |
activate(Nifty nifty) |
ElementInteractionClickHandler |
getPrimary() |
ElementInteractionClickHandler |
getSecondary() |
ElementInteractionClickHandler |
getTertiary() |
boolean |
onMouseOver(Element element,
NiftyMouseInputEvent inputEvent) |
boolean |
onMouseWheel(Element element,
NiftyMouseInputEvent inputEvent) |
boolean |
process(NiftyMouseInputEvent mouseEvent,
long eventTime,
boolean mouseInside,
boolean canHandleInteraction,
boolean hasMouseAccess) |
void |
resetMouseDown() |
void |
setAlternateKey(String newAlternateKey) |
void |
setOnMouseOver(NiftyMethodInvoker method) |
void |
setOnMouseWheelMethod(NiftyMethodInvoker method) |
public void resetMouseDown()
public ElementInteractionClickHandler getPrimary()
public ElementInteractionClickHandler getSecondary()
public ElementInteractionClickHandler getTertiary()
public void setOnMouseOver(NiftyMethodInvoker method)
public void setOnMouseWheelMethod(NiftyMethodInvoker method)
public boolean onMouseOver(Element element, NiftyMouseInputEvent inputEvent)
public boolean onMouseWheel(Element element, NiftyMouseInputEvent inputEvent)
public void setAlternateKey(String newAlternateKey)
public boolean process(NiftyMouseInputEvent mouseEvent, long eventTime, boolean mouseInside, boolean canHandleInteraction, boolean hasMouseAccess)
public void activate(Nifty nifty)
Copyright © 2013. All Rights Reserved.