- All Superinterfaces:
ILoggableRequestHandler
,IPageClassRequestHandler
,IPageRequestHandler
,IPartialPageRequestHandler
,IRequestHandler
- All Known Implementing Classes:
AjaxRequestHandler
- Since:
- 6.0
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
AnAjaxRequestTarget
listener that can be used to respond to various target-related eventsstatic interface
Components can implement this interface to get a notification when AjaxRequestTarget begins to respond. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(AjaxRequestTarget.IListener listener) Adds a listener to this targetReturns the HTML id of the last focused element.getPage()
Returns the page.void
Register the given respond listener.Methods inherited from interface org.apache.wicket.request.ILoggableRequestHandler
getLogData
Methods inherited from interface org.apache.wicket.core.request.handler.IPageClassRequestHandler
getPageClass, getPageParameters
Methods inherited from interface org.apache.wicket.core.request.handler.IPageRequestHandler
getPageId, getRenderCount, isPageInstanceCreated
Methods inherited from interface org.apache.wicket.core.request.handler.IPartialPageRequestHandler
add, add, addChildren, appendJavaScript, focusComponent, getComponents, getHeaderResponse, prependJavaScript
Methods inherited from interface org.apache.wicket.request.IRequestHandler
detach, respond
-
Method Details
-
addListener
Adds a listener to this target- Parameters:
listener
-- Throws:
IllegalStateException
- ifAjaxRequestTarget.IListener
's events are currently being fired or have both been fired already
-
registerRespondListener
Register the given respond listener. The listener'sAjaxRequestTarget.ITargetRespondListener.onTargetRespond(org.apache.wicket.ajax.AjaxRequestTarget)
method will be invoked when theAjaxRequestTarget
starts to respond.- Parameters:
listener
-
-
getLastFocusedElementId
Returns the HTML id of the last focused element.- Returns:
- markup id of last focused element,
null
if none
-
getPage
Returns the page. Be aware that the page can be instantiated if this wasn't the case already.- Specified by:
getPage
in interfaceIPageRequestHandler
- Returns:
- page instance
-