@groovy.transform.CompileStatic final class UiMenuSpecifier extends java.lang.Object
Allow to specify top menu. Those menus are limited to 2 levels and labels are automatically computed.
new UiMenuSpecifier().ui { menu CrewController.&index as MC menu CrewController.&listRoles as MC menuIcon ActionIcon.CONFIG_USER, this.&editUser as MC menuIcon ActionIcon.EXPORT_CSV, this.&downloadBinPdf as MC label "Admin", { subMenu this.&confSites as MC subMenu this.&menuEntries as MC subMenu this.&testDiagram as MC } menuSearch this.&search as MethodClosure, q menuOptions(SupportedLanguage.fromContext()) }
Type | Name and description |
---|---|
groovy.lang.Closure |
closure |
Constructor and description |
---|
UiMenuSpecifier
() |
Type Params | Return Type | Name and description |
---|---|---|
|
UiMenuSpecifier |
ui(groovy.lang.Closure closure) |
|
void |
visitMenu(IUiMenuVisitor menuVisitor) |
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() |
Groovy Documentation