blob: 8cf5480b8bac8717de3fb0171be147ae63ff02cb [file] [log] [blame]
Ajax behaviors classes come with lambda-based factory methods which make their creation easier and less verbose. For example AjaxEventBehavior can be instantiated like this:
[source,java]
----
AjaxEventBehavior.onEvent("click", ajaxtarget -> //some lambda stuff)
----
In the following table are listed these factory methods along with their behavior classes:
.Factory methods
|===
|Class Name |Method Name
|AbstractAjaxTimerBehavior
|onTimer
|AjaxEventBehavior
|onEvent
|AjaxNewWindowNotifyingBehavior
|onNewWindow
|AjaxSelfUpdatingTimerBehavior
|onSelfUpdate
|AjaxFormChoiceComponentUpdatingBehavior
|onUpdateChoice
|AjaxFormComponentUpdatingBehavior
|onUpdate
|AjaxFormSubmitBehavior
|onSubmit
|OnChangeAjaxBehavior
|onChange
|===