public class NavNode
extends java.lang.Object
Constructor and Description |
---|
NavNode()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addDirectory(java.lang.String dir)
Associates a directory with this node
|
void |
addNode(NavNode child)
Adds a child node to the current node
|
void |
addPrimaryURL(java.lang.String url)
Associated a URL with this node.
|
void |
addURL(java.lang.String url)
Associated a URL with this node
|
java.lang.String |
getAcl()
Gets the current value of acl
|
java.lang.String |
getActiveImage()
Gets the current value of activeImage
|
java.util.List<java.lang.String> |
getDirs()
Get Dirs associated with this node
|
boolean |
getDominant()
Gets the current value of dominant
|
java.lang.String |
getDynamicChildren()
Gets the current value of dynamicChildren
|
java.lang.String |
getInactiveImage()
Gets the current value of inactiveImage
|
boolean |
getInvisible()
Gets the current value of invisible
|
java.lang.String |
getLabel()
Gets the current value of label
|
java.lang.String |
getName()
Gets the current value of name
|
java.util.List<NavNode> |
getNodes()
Returns an unmodifiableList containing children of the node
|
java.lang.String |
getOnClick()
Gets the current value of onClick
|
boolean |
getOverrideSidenav()
Gets the current value of overrideSidenav
|
java.lang.String |
getPermFailRedirect()
Gets the current value of permFailRedirect
|
java.lang.String |
getPrimaryURL()
get the "best" most "proper" URL for this node
|
boolean |
getShowChildrenIfActive()
Gets the current value of showChildrenIfActive
|
java.lang.String |
getTarget()
returns the target for the url
|
java.util.List<java.lang.String> |
getURLs()
Get URLs associated with this node
|
boolean |
isFirst()
Returns true if this Node is the first in a particular level of
the tree.
|
boolean |
isLast()
Returns true if this Node is the last in a particular level of
the tree.
|
void |
setAcl(java.lang.String aclIn)
Sets the value of acl to new value
|
void |
setActiveImage(java.lang.String activeImageIn)
Sets the value of activeImage to new value
|
void |
setDominant(boolean dominantIn)
Sets the value of dominant to new value
|
void |
setDynamicChildren(java.lang.String dynamicChildrenIn)
Sets the value of dynamicChildren to new value
|
void |
setFirst(boolean flag)
Marks the Node as the first in a list.
|
void |
setInactiveImage(java.lang.String inactiveImageIn)
Sets the value of inactiveImage to new value
|
void |
setInvisible(boolean invisibleIn)
Sets the value of invisible to new value
|
void |
setLabel(java.lang.String labelIn)
Sets the value of label to new value
|
void |
setLast(boolean flag)
Marks the Node as the last in a list.
|
void |
setName(java.lang.String nameIn)
Sets the value of name to the localized version of the passed in name.
|
void |
setOnClick(java.lang.String onClickIn)
Sets the value of onClick to new value
|
void |
setOverrideSidenav(boolean overrideSidenavIn)
Sets the value of overrideSidenav to new value
|
void |
setPermFailRedirect(java.lang.String permFailRedirectIn)
Sets the value of permFailRedirect to new value
|
void |
setShowChildrenIfActive(boolean showChildrenIfActiveIn)
Sets the value of showChildrenIfActive to new value
|
void |
setTarget(java.lang.String tgt)
Sets the target of the url.
|
java.lang.String |
toString()
String version of node
|
public java.util.List<NavNode> getNodes()
public void addNode(NavNode child)
child
- The child nodepublic void addURL(java.lang.String url)
url
- The URL (a string, not java.net.URL)public void addPrimaryURL(java.lang.String url)
url
- The URL (a string, not java.net.URL)public java.util.List<java.lang.String> getURLs()
public java.util.List<java.lang.String> getDirs()
public void addDirectory(java.lang.String dir)
dir
- the directorypublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getLabel()
public void setLabel(java.lang.String labelIn)
labelIn
- New value for labelpublic java.lang.String getName()
public void setName(java.lang.String nameIn)
nameIn
- Message key for namepublic java.lang.String getAcl()
public void setAcl(java.lang.String aclIn)
aclIn
- New value for aclpublic boolean getDominant()
public void setDominant(boolean dominantIn)
dominantIn
- New value for dominantpublic boolean getInvisible()
public void setInvisible(boolean invisibleIn)
invisibleIn
- New value for invisiblepublic boolean getOverrideSidenav()
public void setOverrideSidenav(boolean overrideSidenavIn)
overrideSidenavIn
- New value for overrideSidenavpublic boolean getShowChildrenIfActive()
public void setShowChildrenIfActive(boolean showChildrenIfActiveIn)
showChildrenIfActiveIn
- New value for showChildrenIfActivepublic java.lang.String getPermFailRedirect()
public void setPermFailRedirect(java.lang.String permFailRedirectIn)
permFailRedirectIn
- New value for permFailRedirectpublic java.lang.String getActiveImage()
public void setActiveImage(java.lang.String activeImageIn)
activeImageIn
- New value for activeImagepublic java.lang.String getInactiveImage()
public void setInactiveImage(java.lang.String inactiveImageIn)
inactiveImageIn
- New value for inactiveImagepublic java.lang.String getOnClick()
public void setOnClick(java.lang.String onClickIn)
onClickIn
- New value for onClickpublic java.lang.String getDynamicChildren()
public void setDynamicChildren(java.lang.String dynamicChildrenIn)
dynamicChildrenIn
- New value for dynamicChildrenpublic java.lang.String getPrimaryURL()
public void setFirst(boolean flag)
flag
- true if this Node is the first in a particular level of
the tree.public boolean isFirst()
public void setLast(boolean flag)
flag
- true if this Node is the last in a particular level of
the tree.public boolean isLast()
public void setTarget(java.lang.String tgt)
tgt
- link targetpublic java.lang.String getTarget()