Class EntityInspectorEditor
java.lang.Object
io.jmix.ui.screen.Screen
io.jmix.ui.screen.StandardEditor
io.jmix.datatoolsui.screen.entityinspector.EntityInspectorEditor
- All Implemented Interfaces:
ChangeTracker,EditorScreen,FrameOwner,ReadOnlyAwareScreen
@UiController("entityInspector.edit")
@UiDescriptor("entity-inspector-edit.xml")
public class EntityInspectorEditor
extends StandardEditor
-
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 AccessManagerprotected Actionsstatic final intprotected UiComponentPropertiesprotected InstanceContainerprotected BoxLayoutprotected DataComponentsprotected EntityStatesprotected Booleanstatic final intprotected MessageToolsprotected Metadatastatic final Stringstatic final Stringprotected Stringprotected TabSheetprotected 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 voidaddTable(InstanceContainer parent, MetaProperty childMeta) Creates a table for the entities in ONE_TO_MANY or MANY_TO_MANY relation with the current oneprotected voidprotected voidbeforeShow(Screen.BeforeShowEvent event) protected voidcreateButtonsPanel(Table table, MetaProperty metaProperty) Creates a buttons panel managing table's content.protected Action.HasTargetcreateRemoveAction(Table table, MetaProperty metaProperty) Creates either Remove or Exclude action depending on property typeprotected InstanceContainerprotected StringgetPropertyCaption(MetaClass metaClass, MetaProperty metaProperty) protected ObjectgetPropertyLookupOptions(MetaProperty metaProperty) protected voidonInit(Screen.InitEvent initEvent) voidsetEntityToEdit(Object entity) Sets entity instance to editor.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, getEditedEntityLoader, getSaveNotificationCaption, getWindowActionOptional, hasUnsavedChanges, initActions, isCrossFieldValidate, isEntityModifiedInParentContext, isEntityModifiedRecursive, isLocked, isModifiedAfterOpen, isReadOnly, isReadOnlyDueToLock, isShowSaveNotification, isUiListComponentsValidationEnabled, onChangeEvent, onPostCommitEvent, preventUnsavedChanges, releaseLock, setCrossFieldValidate, 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
-
PARENT_CONTEXT_PARAM
- See Also:
-
PARENT_PROPERTY_PARAM
- See Also:
-
CAPTION_MAX_LENGTH
public static final int CAPTION_MAX_LENGTH- See Also:
-
MAX_TEXT_LENGTH
public static final int MAX_TEXT_LENGTH- See Also:
-
metadata
-
messageTools
-
uiComponents
-
dataComponents
-
accessManager
-
componentProperties
-
actions
-
entityStates
-
contentPane
-
tablesTabSheet
-
isNew
-
parentProperty
-
container
-
-
Constructor Details
-
EntityInspectorEditor
public EntityInspectorEditor()
-
-
Method Details
-
onInit
-
beforeShow
-
afterCommit
-
setEntityToEdit
Description copied from interface:EditorScreenSets entity instance to editor.- Specified by:
setEntityToEditin interfaceEditorScreen- Overrides:
setEntityToEditin classStandardEditor- Parameters:
entity- entity
-
getEditedEntityContainer
- Overrides:
getEditedEntityContainerin classStandardEditor
-
addTable
Creates a table for the entities in ONE_TO_MANY or MANY_TO_MANY relation with the current one -
getPropertyCaption
-
createButtonsPanel
Creates a buttons panel managing table's content.- Parameters:
table- tablemetaProperty- property representing table's data
-
getPropertyLookupOptions
-
createRemoveAction
Creates either Remove or Exclude action depending on property type
-