|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.behavior.Behavior
org.apache.wicket.behavior.AbstractAjaxBehavior
org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
org.apache.wicket.ajax.AjaxNewWindowNotifyingBehavior
public abstract class AjaxNewWindowNotifyingBehavior
An Ajax behavior that notifies when a new browser window/tab is opened with url to a page instance which is already opened in another window/tab in the same user session. Note: this behavior may be assigned only to an instance of a WebPage class.
| Field Summary |
|---|
| Fields inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior |
|---|
INDICATOR |
| Fields inherited from interface org.apache.wicket.behavior.IBehaviorListener |
|---|
INTERFACE |
| Constructor Summary | |
|---|---|
AjaxNewWindowNotifyingBehavior()
Constructor. |
|
AjaxNewWindowNotifyingBehavior(String windowName)
Constructor. |
|
| Method Summary | |
|---|---|
CharSequence |
getCallbackUrl()
Gets the url that references this handler. |
protected void |
onBind()
Subclasses should call super.onBind() |
protected abstract 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. |
void |
renderHead(Component component,
IHeaderResponse response)
Render to the web response whatever the component wants to contribute to the head section. |
protected void |
respond(AjaxRequestTarget target)
|
| Methods inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior |
|---|
findIndicatorId, generateCallbackScript, getAjaxCallDecorator, getCallbackScript, getChannel, getChannelName, getFailureScript, getPreconditionScript, getSuccessScript, onRequest, throttleScript |
| Methods inherited from class org.apache.wicket.behavior.AbstractAjaxBehavior |
|---|
afterRender, bind, getComponent, getStatelessHint, onComponentRendered, onComponentTag, onComponentTag, onUnbind, unbind |
| Methods inherited from class org.apache.wicket.behavior.Behavior |
|---|
beforeRender, canCallListenerInterface, canCallListenerInterface, detach, isEnabled, isTemporary, onConfigure, onEvent, onException |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AjaxNewWindowNotifyingBehavior()
public AjaxNewWindowNotifyingBehavior(String windowName)
windowName - the custom name to use for the page's window| Method Detail |
|---|
protected final void onBind()
AbstractDefaultAjaxBehavior
onBind in class AbstractDefaultAjaxBehaviorAbstractAjaxBehavior.onBind()public CharSequence getCallbackUrl()
AbstractAjaxBehavior
getCallbackUrl in class AbstractAjaxBehavior
public void renderHead(Component component,
IHeaderResponse response)
Behavior
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.html.IHeaderResponse)protected void respond(AjaxRequestTarget target)
respond in class AbstractDefaultAjaxBehaviortarget - The AJAX targetprotected abstract void onNewWindow(AjaxRequestTarget target)
target - the current ajax request handler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||