final String onClickName,
final String onClickRepeatName,
final String onReleaseName,
final String onClickMouseMoveName,
final Object... controller) {
OnClickType onClick = getOnClickType(onClickName);
if (onClick != null) {
handler.setOnClickMethod(onClick.getMethod(nifty, controller));
handler.setOnClickRepeatEnabled(false);
element.setVisibleToMouseEvents(true);
}
OnClickType onClickRepeat = getOnClickType(onClickRepeatName);
if (onClickRepeat != null) {
handler.setOnClickMethod(onClickRepeat.getMethod(nifty, controller));
handler.setOnClickRepeatEnabled(true);
element.setVisibleToMouseEvents(true);
}
OnClickType onClickMouseMove = getOnClickType(onClickMouseMoveName);
if (onClickMouseMove != null) {
handler.setOnClickMouseMoveMethod(onClickMouseMove.getMethod(nifty, controller));
element.setVisibleToMouseEvents(true);
}
OnClickType onRelease = getOnClickType(onReleaseName);
if (onRelease != null) {
handler.setOnReleaseMethod(onRelease.getMethod(nifty, controller));
element.setVisibleToMouseEvents(true);
}
}