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.InitEventNested classes/interfaces inherited from interface io.jmix.ui.screen.LookupScreen
LookupScreen.ValidationContext<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected VBoxLayoutprotected ScrollBoxLayoutprotected CheckBoxprotected Buttonprotected booleanprotected ComboBoxprotected DataContextprotected Dialogsprotected EntityLogprotected Table<EntityLogAttr>protected CollectionLoader<EntityLogItem>protected Table<EntityLogItem>protected ExtendedEntitiesprotected DateFieldprotected EntityPicker<Object>protected CollectionContainer<LoggedAttribute>protected CollectionLoader<LoggedAttribute>protected CollectionContainer<LoggedEntity>protected CollectionLoader<LoggedEntity>protected GroupTable<LoggedEntity>protected CheckBoxprotected Messagesprotected MessageToolsprotected Metadataprotected MetadataToolsprotected Notificationsprotected PolicyStoreprotected ReferenceToEntitySupportprotected ScreenBuildersprotected static final Stringprotected CheckBoxprotected DateFieldprotected TimeSourceprotected UiComponentsprotected SuggestionField<String>protected UserRepositoryFields inherited from class io.jmix.ui.screen.StandardLookup
selectHandler, selectValidatorFields inherited from interface io.jmix.ui.screen.FrameOwner
NO_OPTIONS, WINDOW_CLOSE_ACTION, WINDOW_COMMIT_AND_CLOSE_ACTION, WINDOW_DISCARD_AND_CLOSE_ACTIONFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddAttribute(Set<LoggedAttribute> enabledAttributes, String name, MetaClass metaclass, boolean editable) protected booleanallowLogProperty(MetaProperty metaProperty) protected voidvoidprotected voidprotected voidenableAllCheckBoxes(boolean b) protected voidprotected StringentityLogAttrTableDisplayNameValueProvider(EntityLogAttr entityLogAttr) protected StringentityLogAttrTableDisplayOldValueValueProvider(EntityLogAttr entityLogAttr) protected StringentityLogAttrTableDisplayValueValueProvider(EntityLogAttr entityLogAttr) protected ComponententityLogTableDisplayedEntityNameColumnGenerator(EntityLogItem entityLogItem) protected ComponententityLogTableEntityIdColumnGenerator(EntityLogItem entityLogItem) protected StringevaluateEntityLogItemAttrDisplayValue(EntityLogAttr entityLogAttr, String value) protected StringevaluateEntityLogItemDisplayedEntityName(EntityLogItem entityLogItem) protected voidfillAttributes(String metaClassName, LoggedEntity item, boolean editable) protected MetaClassgetClassFromEntityName(String entityName) protected EnumgetEnumById(List<Enum> enums, String id) getLoggedAttribute(String name, Set<LoggedAttribute> enabledAttr) booleanisEntityHaveAttribute(String propertyName, MetaClass metaClass, Set<LoggedAttribute> enabledAttr) protected voidvoidprotected voidonInit(Screen.InitEvent event) voidvoidvoidvoidprotected voidprotected voidonSaveBtnClick(Button.ClickEvent event) voidvoidvoidsetSelectAllCheckBox(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, setupLookupComponentMethods 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
-
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
-