com.logabit.webtools.navigation
Class NavigationEntryContainer

java.lang.Object
  extended by com.logabit.webtools.navigation.NavigationEntryContainer
Direct Known Subclasses:
Navigation, NavigationEntry

public abstract class NavigationEntryContainer
extends java.lang.Object

Represents a container that contains navigation entries.

Author:
Stephan Niedermeier, http://www.logabit.com

Constructor Summary
NavigationEntryContainer()
           
 
Method Summary
 void addChild(NavigationEntry entry)
           
abstract  NavigationEntry createChild(java.lang.String id, java.lang.String uri, java.lang.String label, java.lang.String description, boolean isDefault, boolean isHidden, boolean isClickable)
          A factory method which creates a new navigation entry already containing the current navigation object.
 java.util.List<NavigationEntry> getChildren()
           
abstract  Navigation getNavigation()
          Return the navigation, this container belongs to.
 int getNumberOfChildren()
           
abstract  NavigationEntry getParent()
          Returns the parent entry of this entry or null if this entry is a first level entry.
 boolean hasChildren()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NavigationEntryContainer

public NavigationEntryContainer()
Method Detail

getNavigation

public abstract Navigation getNavigation()
Return the navigation, this container belongs to.

Returns:

createChild

public abstract NavigationEntry createChild(java.lang.String id,
                                            java.lang.String uri,
                                            java.lang.String label,
                                            java.lang.String description,
                                            boolean isDefault,
                                            boolean isHidden,
                                            boolean isClickable)
A factory method which creates a new navigation entry already containing the current navigation object.

Parameters:
id - - The id of the entry to create.
Returns:

getParent

public abstract NavigationEntry getParent()
Returns the parent entry of this entry or null if this entry is a first level entry.

Returns:

addChild

public void addChild(NavigationEntry entry)

getChildren

public java.util.List<NavigationEntry> getChildren()

getNumberOfChildren

public int getNumberOfChildren()

hasChildren

public boolean hasChildren()


Copyright © 2007. All Rights Reserved.