Class MenuItem.MenuItemProperty

java.lang.Object
io.jmix.flowui.menu.MenuItem.MenuItemProperty
Enclosing class:
MenuItem

public static class MenuItem.MenuItemProperty extends Object
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 Details

    • name

      protected String name
    • value

      protected Object value
    • entityClass

      protected MetaClass entityClass
    • entityId

      protected Object entityId
    • fetchPlanName

      protected String fetchPlanName
  • Constructor Details

    • MenuItemProperty

      public MenuItemProperty(String name)
  • Method Details

    • getName

      public String getName()
      Returns the name associated with this property.
      Returns:
      the name of the property
    • getValue

      @Nullable public Object getValue()
      Returns the value associated with this property.
      Returns:
      the value of the property, or null if no value is specified.
    • setValue

      public void setValue(@Nullable Object value)
      Sets the value associated with this property.
      Parameters:
      value - the value to associate with this property, or null to unset the value
    • getEntityClass

      public MetaClass getEntityClass()
      Returns the MetaClass associated with this property.
      Returns:
      the MetaClass of the entity, or null if no entity class is specified
    • setEntityClass

      public void setEntityClass(MetaClass entityClass)
      Sets the MetaClass associated with this property.
      Parameters:
      entityClass - the MetaClass to be associated with this property, or null to remove the association with any entity class
    • getEntityId

      public Object getEntityId()
      Returns the entity ID associated with this property.
      Returns:
      the entity ID associated with this property
    • setEntityId

      public void setEntityId(Object entityId)
      Sets the entity ID associated with this property.
      Parameters:
      entityId - the entity ID to associate with this property
    • getFetchPlanName

      public String getFetchPlanName()
      Returns the fetch plan name associated with this property.
      Returns:
      the fetch plan name
    • setFetchPlanName

      public void setFetchPlanName(String fetchPlanName)
      Sets the fetch plan name associated with this property.
      Parameters:
      fetchPlanName - the fetch plan name to be associated with this property