wicket.request.target.component
Class PageRequestTarget

java.lang.Object
  extended by wicket.request.target.component.PageRequestTarget
All Implemented Interfaces:
IRequestTarget, IPageRequestTarget
Direct Known Subclasses:
AbstractListenerInterfaceRequestTarget

public class PageRequestTarget
extends java.lang.Object
implements IPageRequestTarget

Default implementation of IPageRequestTarget. Target that denotes a page instance.

Author:
Eelco Hillenius

Constructor Summary
PageRequestTarget(Page page)
          Construct.
 
Method Summary
 void detach(RequestCycle requestCycle)
          This method is alled on the end of a request cycle to indicate that processing is done and that cleaning up of the subject(s) of this target may be done.
 boolean equals(java.lang.Object obj)
           
 java.lang.Object getLock(RequestCycle requestCycle)
          Gets the lock to be used for synchronization.
 Page getPage()
          Gets the page instance.
 int hashCode()
           
 void respond(RequestCycle requestCycle)
          Generates a response.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PageRequestTarget

public PageRequestTarget(Page page)
Construct.

Parameters:
page - the page instance
Method Detail

respond

public void respond(RequestCycle requestCycle)
Description copied from interface: IRequestTarget
Generates a response.

Specified by:
respond in interface IRequestTarget
Parameters:
requestCycle - the current request cycle
See Also:
IRequestTarget.respond(wicket.RequestCycle)

getPage

public final Page getPage()
Description copied from interface: IPageRequestTarget
Gets the page instance.

Specified by:
getPage in interface IPageRequestTarget
Returns:
the page instance
See Also:
IPageRequestTarget.getPage()

detach

public void detach(RequestCycle requestCycle)
Description copied from interface: IRequestTarget
This method is alled on the end of a request cycle to indicate that processing is done and that cleaning up of the subject(s) of this target may be done.

Specified by:
detach in interface IRequestTarget
Parameters:
requestCycle - the current request cycle
See Also:
IRequestTarget.detach(wicket.RequestCycle)

getLock

public java.lang.Object getLock(RequestCycle requestCycle)
Description copied from interface: IRequestTarget
Gets the lock to be used for synchronization.

Specified by:
getLock in interface IRequestTarget
Parameters:
requestCycle - the current request cycle
Returns:
Any lock to be used to synchronize this target or null if no synchronization is needed.
See Also:
IRequestTarget.getLock(RequestCycle)

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


Copyright © 2004-2007 Wicket developers. All Rights Reserved.