org.apache.wicket.request.target.component
Class ComponentRequestTarget

java.lang.Object
  extended by org.apache.wicket.request.target.component.ComponentRequestTarget
All Implemented Interfaces:
IRequestTarget, IComponentRequestTarget

public class ComponentRequestTarget
extends Object
implements IComponentRequestTarget

Default implementation of IComponentRequestTarget. Target that denotes a single component instance.

Author:
Eelco Hillenius

Constructor Summary
ComponentRequestTarget(Component component)
          Construct.
 
Method Summary
 void detach(RequestCycle requestCycle)
          This method is called at 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(Object obj)
           
 Component getComponent()
          Gets the component instance.
 int hashCode()
           
 void respond(RequestCycle requestCycle)
          Generates a response.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ComponentRequestTarget

public ComponentRequestTarget(Component component)
Construct.

Parameters:
component - the component 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(org.apache.wicket.RequestCycle)

getComponent

public final Component getComponent()
Description copied from interface: IComponentRequestTarget
Gets the component instance.

Specified by:
getComponent in interface IComponentRequestTarget
Returns:
the component instance
See Also:
IComponentRequestTarget.getComponent()

detach

public void detach(RequestCycle requestCycle)
Description copied from interface: IRequestTarget
This method is called at 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(org.apache.wicket.RequestCycle)

equals

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

hashCode

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

toString

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


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.