-
Notifications
You must be signed in to change notification settings - Fork 11
Menu
miguelperezcolom edited this page Sep 22, 2024
·
5 revisions
When using Mateu you create the main menu of the application by annotating fields of your UI class with @Menuoption
and @Submenu
.
E.g. the following code:
public class DemoApp {
@Submenu private FormsSubmenu forms;
@Submenu private CollectionsSubmenu collections;
@Submenu private RefsSubmenu refs;
@Submenu private CrudsSubmenu cruds;
@Submenu private ActionsSubmenu actions;
@Submenu private LayoutsSubmenu layouts;
@Submenu private UtilSubmenu util;
@Submenu private UseCasesSubmenu useCases;
@MenuOption @Private private BasicFieldsForm eyesOnly;
}
generates the following menu:
The nested menu is created using the @Submenu
annotation. E.g.:
public class CrudsSubmenu {
@MenuOption private ProgrammingLanguages programmingLanguages;
@MenuOption
private JpaCrud<City> cities =
new JpaCrud<City>() {
//...
};
@Submenu("NFL")
private NFLSubmenu nfl;
@Submenu("Star Wars")
private SWSubmenu sw;
@MenuOption private BrokenCrud brokenCrud;
}
You can nest any number of menu levels.
- Home
- Disclaimer
- See it in action
- User manual (v3)
- UX and IA
- Internals
- Roadmap
- Javadoc
- SonarQube
- Other MDD frameworks
- Thanks