Package de.xima.fc.gui.common.menu
Interface IMenuEntry
-
- All Known Subinterfaces:
IGroupMenuEntry,IViewMenuEntry
public interface IMenuEntryCommon interface for menu entries.IMPORTANT: This interface is intended to be used by the formcycle core. Plugin developers should not implement this interface. This interface may be subject to change pretty soon.
- Since:
- 8.5.0
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotBlank StringgetIconStyleClass()Returns the style class for the icon of this menu entry.@NotBlank StringgetLabel(Locale locale)Returns the label of this menu entry in the given locale.booleanisAvailable(@NotNull IUser user, Mandant client)Returns if this menu entry is available in the given user and client.booleanisEnabled(@NotNull IUser user, Mandant client)Returns if this menu entry is enabled in the given user and client.
-
-
-
Method Detail
-
getIconStyleClass
@NotBlank @NotBlank String getIconStyleClass()
Returns the style class for the icon of this menu entry.- Returns:
- the style class for the icon of this menu entry
-
getLabel
@NotBlank @NotBlank String getLabel(Locale locale)
Returns the label of this menu entry in the given locale.- Parameters:
locale- the locale for which to get the label- Returns:
- the label of this menu entry in the given locale
-
isAvailable
boolean isAvailable(@NotNull @NotNull IUser user, Mandant client)Returns if this menu entry is available in the given user and client.- Parameters:
user- the user to checkclient- the client to check. May benullif the menu context is not client-specific.- Returns:
trueif this menu entry is available in the given user and client,falseotherwise
-
isEnabled
boolean isEnabled(@NotNull @NotNull IUser user, Mandant client)Returns if this menu entry is enabled in the given user and client.- Parameters:
user- the user to checkclient- the client to check. May benullif the menu context is not client-specific.- Returns:
trueif this menu entry is enabled in the given user and client,falseotherwise
-
-