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.ValidationEvent
Nested 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
Modifier and TypeFieldDescriptionprotected AccessManager
protected Actions
static final int
protected UiComponentProperties
protected InstanceContainer
protected BoxLayout
protected DataComponents
protected EntityStates
protected Boolean
static final int
protected MessageTools
protected Metadata
static final String
static final String
protected String
protected TabSheet
protected UiComponents
Fields inherited from class io.jmix.ui.screen.StandardEditor
commitActionPerformed, showEnableEditingBtn, showSaveNotification
Fields inherited from interface io.jmix.ui.screen.EditorScreen
ENABLE_EDITING, WINDOW_CLOSE, WINDOW_COMMIT, WINDOW_COMMIT_AND_CLOSE
Fields 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
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addTable
(InstanceContainer parent, MetaProperty childMeta) Creates a table for the entities in ONE_TO_MANY or MANY_TO_MANY relation with the current oneprotected void
protected void
beforeShow
(Screen.BeforeShowEvent event) protected void
createButtonsPanel
(Table table, MetaProperty metaProperty) Creates a buttons panel managing table's content.protected Action.HasTarget
createRemoveAction
(Table table, MetaProperty metaProperty) Creates either Remove or Exclude action depending on property typeprotected InstanceContainer
protected String
getPropertyCaption
(MetaClass metaClass, MetaProperty metaProperty) protected Object
getPropertyLookupOptions
(MetaProperty metaProperty) protected void
onInit
(Screen.InitEvent initEvent) void
setEntityToEdit
(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, validateUiComponents
Methods 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:EditorScreen
Sets entity instance to editor.- Specified by:
setEntityToEdit
in interfaceEditorScreen
- Overrides:
setEntityToEdit
in classStandardEditor
- Parameters:
entity
- entity
-
getEditedEntityContainer
- Overrides:
getEditedEntityContainer
in 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
-