Interface QMenuItemInterface

  • Method Summary

    Modifier and Type
    Method
    Description
     
    Optional icon to display with this menu item.
    Specify the "type" of menu item - e.g., what sub-class it is, but more accurately, instructions to the frontend on how to handle the item.
    returns user-facing text to display as the label for this menu item.
    get the values associated with this specific menu item.
    default void
    validate(QInstanceValidator validator, QInstance qInstance, QMetaDataObject parentObject)
    As part of QInstanceValidation, verify that the meta-data in this object is all fully valid.
  • Method Details

    • getLabel

      String getLabel()
      returns user-facing text to display as the label for this menu item. e.g., "New", "Copy", or "Process Orders".
    • getIcon

      QIcon getIcon()
      Optional icon to display with this menu item. Frontends may choose to use a default if no icon is given.
    • getItemType

      String getItemType()
      Specify the "type" of menu item - e.g., what sub-class it is, but more accurately, instructions to the frontend on how to handle the item.
    • getValues

      default Map<String,Serializable> getValues()
      get the values associated with this specific menu item.

      For example, for a run-process item, the name of the process.

    • validate

      default void validate(QInstanceValidator validator, QInstance qInstance, QMetaDataObject parentObject)
      As part of QInstanceValidation, verify that the meta-data in this object is all fully valid.

      Subclasses should generally include a call to super.validate

    • clone