net.sf.tacos.services.impl
Class PageInfoImpl

java.lang.Object
  extended by net.sf.tacos.services.impl.PageInfoImpl
All Implemented Interfaces:
PageInfo

public class PageInfoImpl
extends Object
implements PageInfo

This class describes a tapestry page.

Author:
Gabriel Handford

Constructor Summary
PageInfoImpl(String name, String desc, String perm, List children, boolean isNavigable)
          Create a tapestry page descriptor.
 
Method Summary
 void addChild(PageInfo child)
          Adds the specified child node.
 List getChildrenNames()
          Get the children.
 String getDesc()
          Get the page description.
 String getName()
          Get the unique page name.
 PageInfo getParent()
          Get the parent to this page.
 String getPermission()
          Get the permission associated with page, if any.
 boolean isNavigable()
          Check whether this page should be included in any page listings.
 void setParent(PageInfo parent)
          Set the parent.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PageInfoImpl

public PageInfoImpl(String name,
                    String desc,
                    String perm,
                    List children,
                    boolean isNavigable)
Create a tapestry page descriptor.

Parameters:
name - The page name.
desc - The page description.
perm - The page permission (access code needed to access the page).
children - List of chile pages.
isNavigable - Whether or not page should be included in the navigation.
Method Detail

getDesc

public String getDesc()
Description copied from interface: PageInfo
Get the page description.

Specified by:
getDesc in interface PageInfo
Returns:
The description

getName

public String getName()
Description copied from interface: PageInfo
Get the unique page name.

Specified by:
getName in interface PageInfo
Returns:
The page name

getPermission

public String getPermission()
Description copied from interface: PageInfo
Get the permission associated with page, if any.

Specified by:
getPermission in interface PageInfo
Returns:
The permission access code

getParent

public PageInfo getParent()
Description copied from interface: PageInfo
Get the parent to this page.

Specified by:
getParent in interface PageInfo
Returns:
Returns the parent.

setParent

public void setParent(PageInfo parent)
Set the parent.

Specified by:
setParent in interface PageInfo
Parameters:
parent - The parent.

addChild

public void addChild(PageInfo child)
Adds the specified child node.

Specified by:
addChild in interface PageInfo
Parameters:
child - Child page

isNavigable

public boolean isNavigable()
Check whether this page should be included in any page listings.

Specified by:
isNavigable in interface PageInfo
Returns:
True if this page should be included in any page listings, false otherwise

getChildrenNames

public List getChildrenNames()
Get the children.

Specified by:
getChildrenNames in interface PageInfo
Returns:
children

toString

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


Copyright © 2006-2007 SourceForge.net. All Rights Reserved.