MenuSpec (taack-ui 0.5.7-SNAPSHOT API)
Package: taack.ui.dsl.menu

[Groovy] Class MenuSpec

    • taack.ui.dsl.menu.MenuSpec


    • @groovy.transform.CompileStatic
      final class MenuSpec
      extends java.lang.Object
      • Methods Summary

          Methods 
          Type Params Return Type Name and description
          void label(java.lang.String i18n, groovy.lang.Closure closure)
          Labeled menu entry, can contain a closure to describe sub-menus
          void menu(java.lang.String i18n, org.codehaus.groovy.runtime.MethodClosure action, java.util.Map<java.lang.String, ? extends java.lang.Object> params)
          Menu entry with explicit captation
          void menu(org.codehaus.groovy.runtime.MethodClosure action, java.util.Map<java.lang.String, ? extends java.lang.Object> params)
          Menu entry with implicit captation
          void menu(java.lang.String i18n, org.codehaus.groovy.runtime.MethodClosure action, java.lang.Long id)
          void menuIcon(taack.ui.dsl.common.ActionIcon icon, org.codehaus.groovy.runtime.MethodClosure action, java.lang.Long id)
          Menu on the right part of the screen, displaying an icon
          void menuIcon(taack.ui.dsl.common.ActionIcon icon, org.codehaus.groovy.runtime.MethodClosure action, java.util.Map<java.lang.String, ? extends java.lang.Object> params)
          Menu on the right part of the screen, displaying an icon
          void menuOptions(IEnumOptions options)
          Menu Entry using a select box.
          void menuSearch(org.codehaus.groovy.runtime.MethodClosure action, java.lang.String q)
          Display the search box
          void menuSelect(java.lang.String paramName, IEnumOptions selects, grails.web.servlet.mvc.GrailsParameterMap params)
          Menu Entry using a select box.
      • Inherited Methods Summary

          Inherited Methods 
          Methods inherited from class Name
          class java.lang.Object java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
      • Method Detail

        • void label(java.lang.String i18n, @groovy.lang.DelegatesTo(strategy: Closure.DELEGATE_ONLY, value: SubMenuSpec) groovy.lang.Closure closure)

          Labeled menu entry, can contain a closure to describe sub-menus

          Parameters:
          i18n - captation
          closure - sub-menu listing

        • void menu(java.lang.String i18n, org.codehaus.groovy.runtime.MethodClosure action, java.util.Map<java.lang.String, ? extends java.lang.Object> params)

          Menu entry with explicit captation

          Parameters:
          i18n
          action
          params

        • void menu(org.codehaus.groovy.runtime.MethodClosure action, java.util.Map<java.lang.String, ? extends java.lang.Object> params)

          Menu entry with implicit captation

          Parameters:
          action
          params

        • void menu(java.lang.String i18n, org.codehaus.groovy.runtime.MethodClosure action, java.lang.Long id)

        • void menuIcon(taack.ui.dsl.common.ActionIcon icon, org.codehaus.groovy.runtime.MethodClosure action, java.lang.Long id)

          Menu on the right part of the screen, displaying an icon

          Parameters:
          icon
          action
          id

        • void menuIcon(taack.ui.dsl.common.ActionIcon icon, org.codehaus.groovy.runtime.MethodClosure action, java.util.Map<java.lang.String, ? extends java.lang.Object> params)

          Menu on the right part of the screen, displaying an icon

          Parameters:
          icon
          action
          params

        • void menuOptions(IEnumOptions options)

          Menu Entry using a select box.

          Parameters:
          options

        • void menuSearch(org.codehaus.groovy.runtime.MethodClosure action, java.lang.String q)

          Display the search box

          Parameters:
          action
          q

        • void menuSelect(java.lang.String paramName, IEnumOptions selects, grails.web.servlet.mvc.GrailsParameterMap params)

          Menu Entry using a select box. [paramName: value] will be transmitted current action

          Parameters:
          paramName
          selects
          params