public class AjaxNewWindowNotifyingBehavior extends AbstractDefaultAjaxBehavior
onNewWindow(AjaxRequestTarget),
Serialized FormINDICATOR| Constructor and Description |
|---|
AjaxNewWindowNotifyingBehavior() |
| Modifier and Type | Method and Description |
|---|---|
String |
getWindowName()
Returns the window's name.
|
protected String |
newWindowName()
Create a name for a nameless window, default uses a random
UUID. |
protected void |
onNewWindow(AjaxRequestTarget target)
A callback method when a new window/tab is opened for a page instance which is already opened
in another window/tab.
|
static AjaxNewWindowNotifyingBehavior |
onNewWindow(org.danekja.java.util.function.serializable.SerializableConsumer<AjaxRequestTarget> onNewWindow)
Creates an
AjaxNewWindowNotifyingBehavior based on lambda expressions |
void |
renderHead(Component component,
IHeaderResponse response)
Overridden to initiate a request once the page was rendered.
|
protected void |
respond(AjaxRequestTarget target) |
protected void |
updateAjaxAttributes(AjaxRequestAttributes attributes)
Overridden to add the current window name to the request.
|
findIndicatorId, getAttributes, getCallbackFunction, getCallbackFunctionBody, getCallbackScript, getCallbackScript, onBind, onRequest, postprocessConfiguration, renderAjaxAttributes, renderAjaxAttributesafterRender, bind, getCallbackUrl, getComponent, onComponentRendered, onComponentTag, onComponentTag, onUnbind, unbindbeforeRender, canCallListener, detach, getStatelessHint, isEnabled, isTemporary, onAttribute, onConfigure, onEvent, onException, onRemove, onTagclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrendersPagepublic String getWindowName()
protected void updateAjaxAttributes(AjaxRequestAttributes attributes)
updateAjaxAttributes in class AbstractDefaultAjaxBehaviorpublic void renderHead(Component component, IHeaderResponse response)
renderHead in interface IComponentAwareHeaderContributorrenderHead in class AbstractDefaultAjaxBehaviorcomponent - component which is contributing to the response. This parameter is here to give
the component as the context for component-awares implementing this interfaceresponse - Response objectBehavior.renderHead(Component,
org.apache.wicket.markup.head.IHeaderResponse)protected void respond(AjaxRequestTarget target)
respond in class AbstractDefaultAjaxBehaviortarget - The AJAX targetprotected String newWindowName()
UUID.protected void onNewWindow(AjaxRequestTarget target)
Default implementation redirects to a new page instance with identical page parameters.
target - the current request handlerpublic static AjaxNewWindowNotifyingBehavior onNewWindow(org.danekja.java.util.function.serializable.SerializableConsumer<AjaxRequestTarget> onNewWindow)
AjaxNewWindowNotifyingBehavior based on lambda expressionsonNewWindow - the SerializableConsumer which accepts the AjaxRequestTargetAjaxNewWindowNotifyingBehaviorCopyright © 2006–2018 Apache Software Foundation. All rights reserved.