public final class Listeners extends NativeObjectContainer
DataLabelsPlugin.ID
plugin allows to register callback(s) to be notified when an
event is detected on a specific label. This option is an object where the property is the type of the event to listen and the
value is a callback with a unique context argument.Modifier and Type | Method and Description |
---|---|
ClickEventHandler |
getClickEventHandler()
Returns the CLICK event (the mouse's primary button is pressed and released on a label) handler.
|
EnterEventHandler |
getEnterEventHandler()
Returns the ENTER event (the mouse is moved over a label) handler.
|
LeaveEventHandler |
getLeaveEventHandler()
Returns the LEAVE event (the mouse is moved out of a label) handler.
|
void |
setClickEventHandler(ClickEventHandler clickEventHandler)
Sets the CLICK event (the mouse's primary button is pressed and released on a label) handler.
|
void |
setEnterEventHandler(EnterEventHandler enterEventHandler)
Sets the ENTER event (the mouse is moved over a label) handler.
|
void |
setLeaveEventHandler(LeaveEventHandler leaveEventHandler)
Sets the LEAVE event (the mouse is moved out of a label) handler.
|
checkValue, getArrayValue, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, keys, remove, remove, removeIfExists, setArrayValue, setArrayValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
public ClickEventHandler getClickEventHandler()
null
if not set.public void setClickEventHandler(ClickEventHandler clickEventHandler)
clickEventHandler
- the click event handler to setpublic EnterEventHandler getEnterEventHandler()
null
if not set.public void setEnterEventHandler(EnterEventHandler enterEventHandler)
enterEventHandler
- the enter event handler to setpublic LeaveEventHandler getLeaveEventHandler()
null
if not set.public void setLeaveEventHandler(LeaveEventHandler leaveEventHandler)
leaveEventHandler
- the leave event handler to set