com.caucho.web
Class Navigation
java.lang.Object
|
+--com.caucho.web.Navigation
- public class Navigation
- extends java.lang.Object
Constructor Summary |
Navigation()
|
Navigation(com.caucho.web.Element root,
java.lang.String base)
Create a new navigation structure. |
Navigation(com.caucho.vfs.Path path,
java.lang.String base)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Navigation
public Navigation()
Navigation
public Navigation(com.caucho.vfs.Path path,
java.lang.String base)
throws java.io.IOException
Navigation
public Navigation(com.caucho.web.Element root,
java.lang.String base)
- Create a new navigation structure.
- Parameters:
root
- the top of the navigation
init
public void init(com.caucho.web.Element root,
java.lang.String base)
createNested
public static Navigation createNested(com.caucho.vfs.Path pwd,
java.lang.String base)
throws java.io.IOException
linkParent
public Navigation linkParent(Navigation parent)
getAttribute
public java.lang.String getAttribute(java.lang.String name)
- Returns an attribute from the top-level navigation element.
- Parameters:
name
- The name of the attribute.
findURL
public NavItem findURL(java.lang.String url)
- Parameters:
url
- the url to match