#1399: MenuItem.kt

projectforge-business/src/main/kotlin/org/projectforge/menu/MenuItem.kt Data Class/Service, projectforge-business/src/main/kotlin/org/projectforge/menu/MenuItem.kt 146 lines · 98 code · 35 comments · 13 blank
Serializable menu item representing a node in the menu tree. Holds id, title, i18nKey, tooltip, url, unique key (for React), badge, and target type. Supports hierarchical structure via subMenu list. postProcess() method translates titles, auto-translates tooltips, accumulates badge counters from children to parents, and removes empty parent nodes. Also provides descendant traversal for flat listing.

Git History

868d6abb7 2025 -> 2026
261354a30 Visibility of menu items is now configurable (by groups).
63081666f Source file headers: 2024-> 2025.
3121b7ad6 Migration stuff in progress...
b6092df09 Copyright 2023 -> 2024
ab45d51fa Copyright 2001-2022 -> 2001-2023.
5f7ef41b8 Copyright 2021 -> 2022
65555777a DataTransferPlugin: menu DataTransfer is automatically added
eb63e8a1 Source code header: (C) 2001-2021.
6c67f4f91 MenuItemDefId supports now url.
6477edb8d Tooltips in Menu fixed.
7c79f1922 Copyright of source header -> 2020.
1a000b3af MenuCreator badge for orders, and badges for fav menus.
05244ff19 CopyRight of all Kotlin file-header updated or created.
00aa334ae MenuItem.targetType