|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tapestry.util.ComponentAddress
public class ComponentAddress
The ComponentAddress class contains the path to a component, allowing it to
locate an instance of that component in a different
IRequestCycle
.
This class needs to be used mostly when working with components
accessed via the IRender
interface.
It allows those components to serialize and
pass as a service parameter information about what component they have to
talk to if control returns back to them.
This situation often occurs when the component used via IRender contains Direct or Action links.
Constructor Summary | |
---|---|
ComponentAddress(IComponent component)
Creates a new ComponentAddress object that carries the identification information of the given component (the page name and the ID path). |
|
ComponentAddress(INamespace namespace,
String pageName,
String idPath)
Creates a new ComponentAddress using the given Page Name and ID Path relative on the provided Namespace |
|
ComponentAddress(String pageName,
String idPath)
Creates a new ComponentAddress using the given Page Name and ID Path |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
IComponent |
findComponent(IRequestCycle cycle)
Finds a component with the current address using the given RequestCycle. |
String |
getIdPath()
Returns the idPath of the component. |
String |
getPageName()
Returns the Page Name of the component. |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ComponentAddress(IComponent component)
component
- the component to get the address ofpublic ComponentAddress(String pageName, String idPath)
pageName
- the name of the page that contains the componentidPath
- the ID Path of the componentpublic ComponentAddress(INamespace namespace, String pageName, String idPath)
namespace
- the namespace of the page that contains the componentpageName
- the name of the page that contains the componentidPath
- the ID Path of the componentMethod Detail |
---|
public IComponent findComponent(IRequestCycle cycle)
cycle
- the RequestCycle to use to locate the component
public String getIdPath()
public String getPageName()
public int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object obj)
equals
in class Object
Object.equals(Object)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |