Class EntityAttributeEdit
java.lang.Object
io.jmix.ui.screen.Screen
io.jmix.ui.screen.StandardEditor<EntityAttributeModel>
io.jmix.bpmui.screen.modeler.properties.entitydatatask.entityattribute.EntityAttributeEdit
- All Implemented Interfaces:
ChangeTracker,EditorScreen<EntityAttributeModel>,FrameOwner,ReadOnlyAwareScreen
@UiController("EntityAttributeEdit")
@UiDescriptor("entity-attribute-edit.xml")
public class EntityAttributeEdit
extends StandardEditor<EntityAttributeModel>
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.ui.screen.StandardEditor
StandardEditor.AfterCommitChangesEvent, StandardEditor.BeforeCommitChangesEvent, StandardEditor.InitEntityEvent<E>, StandardEditor.ValidationEventNested classes/interfaces inherited from class io.jmix.ui.screen.Screen
Screen.AfterCloseEvent, Screen.AfterDetachEvent, Screen.AfterInitEvent, Screen.AfterShowEvent, Screen.BeforeCloseEvent, Screen.BeforeShowEvent, Screen.InitEvent -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BeanMethodModelHelperprotected BpmPropertiesprotected MessageBundleprotected Messagesprotected Metadataprotected UiComponentsFields inherited from class io.jmix.ui.screen.StandardEditor
commitActionPerformed, showEnableEditingBtn, showSaveNotificationFields inherited from interface io.jmix.ui.screen.EditorScreen
ENABLE_EDITING, WINDOW_CLOSE, WINDOW_COMMIT, WINDOW_COMMIT_AND_CLOSEFields inherited from interface io.jmix.ui.screen.FrameOwner
NO_OPTIONS, WINDOW_CLOSE_ACTION, WINDOW_COMMIT_AND_CLOSE_ACTION, WINDOW_DISCARD_AND_CLOSE_ACTION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidclearAttributeValueFields(String attributeTypeValue) protected voidcreateDatatypeAttributeValueField(MetaProperty metaProperty) protected FieldcreateDateField(org.springframework.core.ParameterizedTypeReference typeReference, DateField.Resolution resolution) protected voidprotected voidcreateEnumAttributeValueField(MetaProperty metaProperty) protected FieldcreateTimeField(org.springframework.core.ParameterizedTypeReference typeReference) protected voidcreateValueField(String attributeName) protected Consumer<HasValue.ValueChangeEvent>getValueChangeEventConsumer(String springBeanName, String methodName, List<BeanMethodParamModel> beanMethodParamModels) protected voidprotected voidinitAttributeValueTypeLookupField(boolean includeDirectValue) protected voidprotected voidprotected voidprotected voidvoidsetEntityAttributes(Map<String, MetaProperty> entityAttributes) protected voidupdateSpringFields(String springBeanName, String methodName, List<BeanMethodParamModel> beanMethodParamModels) Methods inherited from class io.jmix.ui.screen.StandardEditor
addAfterCommitChangesListener, addBeforeCommitChangesListener, addDefaultCloseAction, addDefaultCommitAction, addDefaultCommitAndCloseAction, addDefaultEnableEditingAction, addInitEntityListener, addValidationEventListener, cancel, closeWithCommit, closeWithDiscard, commit, commitAndClose, commitChanges, disableCommitActions, doNotReloadEditedEntity, enableEditing, getEditedEntity, getEditedEntityContainer, getEditedEntityLoader, getSaveNotificationCaption, getWindowActionOptional, hasUnsavedChanges, initActions, isCrossFieldValidate, isEntityModifiedInParentContext, isEntityModifiedRecursive, isLocked, isModifiedAfterOpen, isReadOnly, isReadOnlyDueToLock, isShowSaveNotification, isUiListComponentsValidationEnabled, onChangeEvent, onPostCommitEvent, preventUnsavedChanges, releaseLock, setCrossFieldValidate, setEntityToEdit, setModifiedAfterOpen, setReadOnly, setShowSaveNotification, setupEntityToEdit, setupLock, setupModifiedTracking, showSaveNotification, validateAdditionalRules, validateScreen, validateUiComponentsMethods inherited from class io.jmix.ui.screen.Screen
addAfterCloseListener, addAfterDetachListener, addAfterInitListener, addAfterShowListener, addBeforeCloseListener, addBeforeShowListener, addInitListener, addUrlParamsChangeListener, close, close, closeWithDefaultAction, fireEvent, getApplicationContext, getEventHub, getExtensions, getId, getScreenData, getUiEventListeners, getWindow, isMultipleOpen, isSameScreen, setApplicationContext, setExtensions, setId, setScreenData, setUiEventListeners, setWindow, show
-
Field Details
-
messageBundle
-
messages
-
uiComponents
-
metadata
-
beanMethodModelHelper
-
bpmProperties
-
-
Constructor Details
-
EntityAttributeEdit
public EntityAttributeEdit()
-
-
Method Details
-
setEntityAttributes
-
onBeforeShow
-
initAttributeValueTypeLookupField
protected void initAttributeValueTypeLookupField(boolean includeDirectValue) -
addAttributeValueTypeLookupFieldChangeListener
protected void addAttributeValueTypeLookupFieldChangeListener() -
initAttributeNameLookupField
protected void initAttributeNameLookupField() -
clearAttributeValueFields
-
initSpringBeanFields
protected void initSpringBeanFields() -
onBeanNameFieldValueChange
@Subscribe("beanNameField") protected void onBeanNameFieldValueChange(HasValue.ValueChangeEvent<String> event) -
onMethodNameFieldValueChange
@Subscribe("methodNameField") protected void onMethodNameFieldValueChange(HasValue.ValueChangeEvent<MethodInfo> event) -
getValueChangeEventConsumer
protected Consumer<HasValue.ValueChangeEvent> getValueChangeEventConsumer(String springBeanName, String methodName, List<BeanMethodParamModel> beanMethodParamModels) -
updateSpringFields
protected void updateSpringFields(String springBeanName, String methodName, List<BeanMethodParamModel> beanMethodParamModels) -
createValueField
-
createEnumAttributeValueField
-
createDatatypeAttributeValueField
-
createDateField
protected Field createDateField(org.springframework.core.ParameterizedTypeReference typeReference, DateField.Resolution resolution) -
createTimeField
-
createDefaultStringValueField
protected void createDefaultStringValueField()
-