Package org.zkoss.zk.ui
Class Path
java.lang.Object
org.zkoss.zk.ui.Path
A representation of a component path.
There are three formats:
//page-id/comp-id/comp-id
/comp-id/comp-id
comp-id/comp-id
Alternatively, you could use Component.query(java.lang.String)
or Component.queryAll(java.lang.String) instead.
- Author:
- tomyeh
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the component with this path, or null if no such component.static final ComponentgetComponent(String path) Returns the component of the specified path, or null if no such component.static final ComponentgetComponent(IdSpace is, String path) Returns the component of the specified path which is related to the specified ID space, or null if no such component.getPath()Returns the path (after normalized).static final StringReturns the path of the specified component.inthashCode()toString()
-
Constructor Details
-
Path
public Path() -
Path
-
Path
-
Path
-
Path
Returns the path of the specified component.
-
-
Method Details
-
getPath
Returns the path (after normalized). -
getPath
Returns the path of the specified component. -
getComponent
Returns the component with this path, or null if no such component. -
getComponent
Returns the component of the specified path, or null if no such component. -
getComponent
Returns the component of the specified path which is related to the specified ID space, or null if no such component.- Parameters:
is- the current ID space. It is required only if path is related (in other words, not starting with / or //).
-
equals
-
hashCode
public int hashCode() -
toString
-