Package io.jmix.flowui.menu
Class MenuItem.MenuItemProperty
java.lang.Object
io.jmix.flowui.menu.MenuItem.MenuItemProperty
- Enclosing class:
- MenuItem
Represents a property of a
MenuItem within a menu configuration.
A property can contain a name and associated value, along with metadata
such as entity class, entity ID, and fetch plan name.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns theMetaClassassociated with this property.Returns the entity ID associated with this property.Returns the fetch plan name associated with this property.getName()Returns the name associated with this property.getValue()Returns the value associated with this property.voidsetEntityClass(MetaClass entityClass) Sets theMetaClassassociated with this property.voidsetEntityId(Object entityId) Sets the entity ID associated with this property.voidsetFetchPlanName(String fetchPlanName) Sets the fetch plan name associated with this property.voidSets the value associated with this property.
-
Field Details
-
name
-
value
-
entityClass
-
entityId
-
fetchPlanName
-
-
Constructor Details
-
MenuItemProperty
-
-
Method Details
-
getName
Returns the name associated with this property.- Returns:
- the name of the property
-
getValue
Returns the value associated with this property.- Returns:
- the value of the property, or
nullif no value is specified.
-
setValue
Sets the value associated with this property.- Parameters:
value- the value to associate with this property, ornullto unset the value
-
getEntityClass
Returns theMetaClassassociated with this property.- Returns:
- the
MetaClassof the entity, ornullif no entity class is specified
-
setEntityClass
Sets theMetaClassassociated with this property.- Parameters:
entityClass- theMetaClassto be associated with this property, ornullto remove the association with any entity class
-
getEntityId
Returns the entity ID associated with this property.- Returns:
- the entity ID associated with this property
-
setEntityId
Sets the entity ID associated with this property.- Parameters:
entityId- the entity ID to associate with this property
-
getFetchPlanName
Returns the fetch plan name associated with this property.- Returns:
- the fetch plan name
-
setFetchPlanName
Sets the fetch plan name associated with this property.- Parameters:
fetchPlanName- the fetch plan name to be associated with this property
-