Class ViewTemplateDefinition
java.lang.Object
io.jmix.flowui.view.template.impl.ViewTemplateDefinition
Describes a view generated from an entity template annotation.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionViewTemplateDefinition(String id, ViewTemplateType type, MetaClass entityMetaClass, String descriptorPath, String routePath, Class<? extends View<?>> controllerClass, String title, String parentMenu) Creates a template view definition. -
Method Summary
-
Field Details
-
id
-
type
-
entityMetaClass
-
descriptorPath
-
routePath
-
controllerClass
-
title
-
parentMenu
-
-
Constructor Details
-
ViewTemplateDefinition
public ViewTemplateDefinition(String id, ViewTemplateType type, MetaClass entityMetaClass, String descriptorPath, String routePath, Class<? extends View<?>> controllerClass, String title, String parentMenu) Creates a template view definition.- Parameters:
id- view idtype- template view typeentityMetaClass- entity meta-classdescriptorPath- descriptor path registered in the descriptor registryroutePath- route path registered for the generated controllercontrollerClass- generated controller classtitle- resolved view titleparentMenu- parent menu item id or an empty string
-
-
Method Details
-
getId
- Returns:
- registered view id
-
getType
- Returns:
- template view type
-
getEntityMetaClass
- Returns:
- entity meta-class for which the view was generated
-
getDescriptorPath
- Returns:
- descriptor path registered for the generated view
-
getRoutePath
- Returns:
- route path registered for the generated view
-
getControllerClass
- Returns:
- generated controller class
-
getTitle
- Returns:
- resolved view title
-
getParentMenu
- Returns:
- parent menu item id or an empty string if no menu item should be created
-