Search in sources :

Example 1 with IComplexOption

use of org.odlabs.wiquery.core.options.IComplexOption in project wiquery by WiQuery.

the class WiQueryAbstractAjaxBehavior method respond.

@Override
protected void respond(AjaxRequestTarget target) {
    IRequestParameters req = RequestCycle.get().getRequest().getRequestParameters();
    String eventName = req.getParameterValue("eventName").toString();
    IComplexOption callback = options.getComplexOption(eventName);
    if (callback instanceof AbstractAjaxEventCallback) {
        ((AbstractAjaxEventCallback) callback).call(target, getComponent());
    }
}
Also used : IComplexOption(org.odlabs.wiquery.core.options.IComplexOption) IRequestParameters(org.apache.wicket.request.IRequestParameters)

Aggregations

IRequestParameters (org.apache.wicket.request.IRequestParameters)1 IComplexOption (org.odlabs.wiquery.core.options.IComplexOption)1