Package io.jmix.auditui.screen.entitylog
Class EntityLogBrowser
- All Implemented Interfaces:
FrameOwner
,LookupScreen<EntityLogItem>
,MultiSelectLookupScreen
@UiController("entityLog.browse")
@UiDescriptor("entity-log-browser.xml")
public class EntityLogBrowser
extends StandardLookup<EntityLogItem>
-
Nested Class Summary
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
Nested classes/interfaces inherited from interface io.jmix.ui.screen.LookupScreen
LookupScreen.ValidationContext<T>
-
Field Summary
Modifier and TypeFieldDescriptionprotected VBoxLayout
protected ScrollBoxLayout
protected CheckBox
protected Button
protected boolean
protected ComboBox
protected DataContext
protected Dialogs
protected EntityLog
protected Table<EntityLogAttr>
protected CollectionLoader<EntityLogItem>
protected Table<EntityLogItem>
protected ExtendedEntities
protected DateField
protected EntityPicker<Object>
protected CollectionContainer<LoggedAttribute>
protected CollectionLoader<LoggedAttribute>
protected CollectionContainer<LoggedEntity>
protected CollectionLoader<LoggedEntity>
protected GroupTable<LoggedEntity>
protected CheckBox
protected Messages
protected MessageTools
protected Metadata
protected MetadataTools
protected Notifications
protected PolicyStore
protected ReferenceToEntitySupport
protected ScreenBuilders
protected static final String
protected CheckBox
protected DateField
protected TimeSource
protected UiComponents
protected SuggestionField<String>
protected UserRepository
Fields inherited from class io.jmix.ui.screen.StandardLookup
selectHandler, selectValidator
Fields inherited from interface io.jmix.ui.screen.FrameOwner
NO_OPTIONS, WINDOW_CLOSE_ACTION, WINDOW_COMMIT_AND_CLOSE_ACTION, WINDOW_DISCARD_AND_CLOSE_ACTION
Fields inherited from interface io.jmix.ui.screen.LookupScreen
LOOKUP_CANCEL_ACTION_ID, LOOKUP_ENTER_PRESSED_ACTION_ID, LOOKUP_ITEM_CLICK_ACTION_ID, LOOKUP_SELECT_ACTION_ID, LOOKUP_SELECT_CLOSE_ACTION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addAttribute
(Set<LoggedAttribute> enabledAttributes, String name, MetaClass metaclass, boolean editable) protected boolean
allowLogProperty
(MetaProperty metaProperty) protected void
void
protected void
protected void
enableAllCheckBoxes
(boolean b) protected void
protected String
entityLogAttrTableDisplayNameValueProvider
(EntityLogAttr entityLogAttr) protected String
entityLogAttrTableDisplayOldValueValueProvider
(EntityLogAttr entityLogAttr) protected String
entityLogAttrTableDisplayValueValueProvider
(EntityLogAttr entityLogAttr) protected Component
entityLogTableDisplayedEntityNameColumnGenerator
(EntityLogItem entityLogItem) protected Component
entityLogTableEntityIdColumnGenerator
(EntityLogItem entityLogItem) protected String
evaluateEntityLogItemAttrDisplayValue
(EntityLogAttr entityLogAttr, String value) protected String
evaluateEntityLogItemDisplayedEntityName
(EntityLogItem entityLogItem) protected void
fillAttributes
(String metaClassName, LoggedEntity item, boolean editable) protected MetaClass
getClassFromEntityName
(String entityName) protected Enum
getEnumById
(List<Enum> enums, String id) getLoggedAttribute
(String name, Set<LoggedAttribute> enabledAttr) boolean
isEntityHaveAttribute
(String propertyName, MetaClass metaClass, Set<LoggedAttribute> enabledAttr) protected void
void
protected void
onInit
(Screen.InitEvent event) void
void
void
void
protected void
protected void
onSaveBtnClick
(Button.ClickEvent event) void
void
void
setSelectAllCheckBox
(boolean value) Methods inherited from class io.jmix.ui.screen.StandardLookup
addDefaultCancelAction, addDefaultSelectAction, cancel, getLookupActionsLayout, getLookupComponent, getSelectHandler, getSelectValidator, getWindowActionOptional, initActions, select, select, setLookupComponentMultiSelect, setSelectHandler, setSelectValidator, setupCommitShortcut, setupLookupComponent
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, isScreenAction, setApplicationContext, setExtensions, setId, setScreenData, setUiEventListeners, setWindow, show
-
Field Details
-
SELECT_ALL_CHECK_BOX
- See Also:
-
messages
-
metadata
-
timeSource
-
referenceToEntitySupport
-
extendedEntities
-
entityLog
-
uiComponents
-
metadataTools
-
dialogs
-
notifications
-
screenBuilders
-
policyStore
-
loggedEntityDc
-
loggedEntityDl
-
entityLogDl
-
loggedAttrDc
-
loggedAttrDl
-
changeTypeField
-
entityNameField
-
userField
-
filterEntityNameField
-
dataContext
-
instancePicker
-
entityLogTable
-
loggedEntityTable
-
entityLogAttrTable
-
manualCheckBox
-
autoCheckBox
-
actionsPaneLayout
-
attributesBoxScroll
-
tillDateField
-
fromDateField
-
cancelBtn
-
selectAllCheckBox
-
userRepository
-
messageTools
-
entityMetaClassesMap
-
canSelectAllCheckboxGenerateEvents
protected boolean canSelectAllCheckboxGenerateEvents
-
-
Constructor Details
-
EntityLogBrowser
public EntityLogBrowser()
-
-
Method Details
-
onInit
-
entityLogTableEntityIdColumnGenerator
@Install(to="entityLogTable.entityId", subject="columnGenerator") protected Component entityLogTableEntityIdColumnGenerator(EntityLogItem entityLogItem) -
entityLogTableDisplayedEntityNameColumnGenerator
@Install(to="entityLogTable.displayedEntityName", subject="columnGenerator") protected Component entityLogTableDisplayedEntityNameColumnGenerator(EntityLogItem entityLogItem) -
evaluateEntityLogItemDisplayedEntityName
-
entityLogAttrTableDisplayNameValueProvider
@Install(to="entityLogAttrTable.name", subject="valueProvider") protected String entityLogAttrTableDisplayNameValueProvider(EntityLogAttr entityLogAttr) -
entityLogAttrTableDisplayValueValueProvider
@Install(to="entityLogAttrTable.value", subject="valueProvider") protected String entityLogAttrTableDisplayValueValueProvider(EntityLogAttr entityLogAttr) -
entityLogAttrTableDisplayOldValueValueProvider
@Install(to="entityLogAttrTable.oldValue", subject="valueProvider") protected String entityLogAttrTableDisplayOldValueValueProvider(EntityLogAttr entityLogAttr) -
evaluateEntityLogItemAttrDisplayValue
-
getClassFromEntityName
-
getEnumById
-
onInstancePickerLookup
@Subscribe("instancePicker.lookup") public void onInstancePickerLookup(Action.ActionPerformedEvent event) -
getEntityMetaClasses
-
enableControls
protected void enableControls() -
disableControls
protected void disableControls() -
fillAttributes
-
addAttribute
protected void addAttribute(Set<LoggedAttribute> enabledAttributes, String name, MetaClass metaclass, boolean editable) -
enableAllCheckBoxes
protected void enableAllCheckBoxes(boolean b) -
checkAllCheckboxes
protected void checkAllCheckboxes() -
setSelectAllCheckBox
public void setSelectAllCheckBox(boolean value) -
setDateFieldTime
public void setDateFieldTime() -
clearAttributes
public void clearAttributes() -
isEntityHaveAttribute
public boolean isEntityHaveAttribute(String propertyName, MetaClass metaClass, Set<LoggedAttribute> enabledAttr) -
getLoggedAttribute
-
onLoggedEntityTableCreate
@Subscribe("loggedEntityTable.create") public void onLoggedEntityTableCreate(Action.ActionPerformedEvent event) -
onLoggedEntityTableEdit
@Subscribe("loggedEntityTable.edit") public void onLoggedEntityTableEdit(Action.ActionPerformedEvent event) -
onSearchBtnClick
-
onClearEntityLogTableBtnClick
@Subscribe("clearEntityLogTableBtn") public void onClearEntityLogTableBtnClick(Button.ClickEvent event) -
onReloadBtnClick
-
allowLogProperty
-
onSaveBtnClick
-
onRemoveBtnClick
-
onCancelBtnClick
-