Class QMenuItemBuiltIn
java.lang.Object
com.kingsrook.qqq.backend.core.model.metadata.menus.items.QMenuItemBase
com.kingsrook.qqq.backend.core.model.metadata.menus.items.QMenuItemBuiltIn
- All Implemented Interfaces:
QMenuItemInterface,QMetaDataObject,Serializable,Cloneable
Menu item that represents a built-in action provided by the QQQ framework.
Built-in menu items are standard actions that are implemented by the framework itself, such as CRUD operations (New, Copy, Edit, Delete), bulk operations, system functions (Developer Mode, Audit), and process lists.
These items are distinguished from custom menu items (like running processes or downloading files) in that their behavior is predefined by the framework and does not require additional configuration.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceInterface marker for built-in option types.static enumEnumeration of default built-in menu item options provided by QQQ. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.Constructor that initializes the built-in option. -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates and returns a shallow copy of this built-in menu item.Returns the item type identifier for built-in menu items.Getter for optionReturns the values map containing the built-in option.voidSetter for optionvoidvalidate(QInstanceValidator validator, QInstance qInstance, QMetaDataObject parentObject) Validates that the built-in menu item has a valid option configured.Fluent setter for option
-
Constructor Details
-
QMenuItemBuiltIn
public QMenuItemBuiltIn()Default constructor.
-
-
Method Details
-
getItemType
Returns the item type identifier for built-in menu items.- Returns:
- always returns "BUILT_IN"
-
getValues
Returns the values map containing the built-in option.The map contains a single entry with key "option" and the option value.
- Returns:
- a map containing the built-in option
-
validate
public void validate(QInstanceValidator validator, QInstance qInstance, QMetaDataObject parentObject) Validates that the built-in menu item has a valid option configured.Ensures that the option field is not null before the menu item can be used in a menu.
- Parameters:
validator- the validator instance to use for reporting errorsqInstance- the QQQ instance being validatedparentObject- the parent metadata object containing this menu item
-
getOption
-
clone
Creates and returns a shallow copy of this built-in menu item.- Specified by:
clonein interfaceQMenuItemInterface- Overrides:
clonein classQMenuItemBase- Returns:
- a clone of this menu item
-