Groovy Documentation

org.grails.plugin.platform.navigation
[Groovy] Class NavigationItem

java.lang.Object
  org.grails.plugin.platform.navigation.NavigationScope
      org.grails.plugin.platform.navigation.NavigationItem

class NavigationItem
extends NavigationScope

Immutable encapsulation of an item in the navigation structure Instances of this are shared globally and available to requests so this must be immutable and threadsafe


Field Summary
private java.util.List actionAliases

private java.util.Map data

private boolean enabled

private groovy.lang.Closure enabledClosure

private java.util.Map linkArgs

private java.lang.Integer order

private java.lang.String titleDefault

private java.lang.String titleMessageCode

private boolean visible

private groovy.lang.Closure visibleClosure

 
Fields inherited from class NavigationScope
children, name
 
Constructor Summary
NavigationItem(java.util.Map args)

 
Method Summary
java.util.List getActionAliases()

java.util.Map getData()

Get any application-supplied data that was declared for this item Used for info like icon-names, alt text and so on - custom rendering usage

groovy.lang.Closure getEnabledClosure()

boolean getLeafNode()

java.lang.Integer getOrder()

java.lang.String getTitleDefault()

java.lang.String getTitleMessageCode()

groovy.lang.Closure getVisibleClosure()

boolean inScope(java.lang.String scopeName)

boolean inScope(NavigationScope scope)

protected java.lang.Object invokeCallback(groovy.lang.Closure c, java.lang.Object context)

boolean isEnabled(java.lang.Object context)

boolean isVisible(java.lang.Object context)

void setOrder(java.lang.Integer v)

 
Methods inherited from class NavigationScope
add, finalizeItems, getChildren, getId, getName, getRootScope, lockChildren, remove
 

Field Detail

actionAliases

private java.util.List actionAliases


data

private java.util.Map data


enabled

private boolean enabled


enabledClosure

private groovy.lang.Closure enabledClosure


linkArgs

private java.util.Map linkArgs


order

private java.lang.Integer order


titleDefault

private java.lang.String titleDefault


titleMessageCode

private java.lang.String titleMessageCode


visible

private boolean visible


visibleClosure

private groovy.lang.Closure visibleClosure


 
Constructor Detail

NavigationItem

NavigationItem(java.util.Map args)


 
Method Detail

getActionAliases

java.util.List getActionAliases()


getData

java.util.Map getData()
Get any application-supplied data that was declared for this item Used for info like icon-names, alt text and so on - custom rendering usage


getEnabledClosure

groovy.lang.Closure getEnabledClosure()


getLeafNode

boolean getLeafNode()


getOrder

java.lang.Integer getOrder()


getTitleDefault

java.lang.String getTitleDefault()


getTitleMessageCode

java.lang.String getTitleMessageCode()


getVisibleClosure

groovy.lang.Closure getVisibleClosure()


inScope

boolean inScope(java.lang.String scopeName)


inScope

boolean inScope(NavigationScope scope)


invokeCallback

protected java.lang.Object invokeCallback(groovy.lang.Closure c, java.lang.Object context)


isEnabled

boolean isEnabled(java.lang.Object context)


isVisible

boolean isVisible(java.lang.Object context)


setOrder

void setOrder(java.lang.Integer v)


 

Groovy Documentation