com.logabit.webtools.navigation
Class NavigationEntry

java.lang.Object
  extended by com.logabit.webtools.navigation.NavigationEntryContainer
      extended by com.logabit.webtools.navigation.NavigationEntry

public class NavigationEntry
extends NavigationEntryContainer

This class represents an entry within a navigation.

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

Method Summary
 NavigationEntry createChild(java.lang.String id, java.lang.String uri, java.lang.String label, java.lang.String hint, boolean isDefault, boolean isHidden, boolean isClickable)
          A factory method which creates a new navigation entry already containing the current navigation object.
 java.lang.String getHint()
           
 java.lang.String getId()
           
 java.lang.String getLabel()
           
 Navigation getNavigation()
          Return the navigation, this container belongs to.
 NavigationEntry getParent()
          Returns the parent entry of this entry or null if this entry is a first level entry.
 java.lang.String getUri()
           
 boolean isClickable()
           
 boolean isDefault()
           
 boolean isHidden()
           
 boolean isSelected()
           
protected  void setDefault(boolean isDefault)
           
 java.lang.String toString()
           
 
Methods inherited from class com.logabit.webtools.navigation.NavigationEntryContainer
addChild, getChildren, getNumberOfChildren, hasChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

isSelected

public boolean isSelected()

isClickable

public boolean isClickable()

isDefault

public boolean isDefault()

setDefault

protected void setDefault(boolean isDefault)

isHidden

public boolean isHidden()

getId

public java.lang.String getId()

getUri

public java.lang.String getUri()

getLabel

public java.lang.String getLabel()

getHint

public java.lang.String getHint()

createChild

public NavigationEntry createChild(java.lang.String id,
                                   java.lang.String uri,
                                   java.lang.String label,
                                   java.lang.String hint,
                                   boolean isDefault,
                                   boolean isHidden,
                                   boolean isClickable)
Description copied from class: NavigationEntryContainer
A factory method which creates a new navigation entry already containing the current navigation object.

Specified by:
createChild in class NavigationEntryContainer
Parameters:
id - - The id of the entry to create.
Returns:

getNavigation

public Navigation getNavigation()
Description copied from class: NavigationEntryContainer
Return the navigation, this container belongs to.

Specified by:
getNavigation in class NavigationEntryContainer
Returns:

getParent

public NavigationEntry getParent()
Description copied from class: NavigationEntryContainer
Returns the parent entry of this entry or null if this entry is a first level entry.

Specified by:
getParent in class NavigationEntryContainer
Returns:

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2007. All Rights Reserved.