public class EntityLogBrowser extends AbstractWindow
Modifier and Type | Class and Description |
---|---|
protected class |
EntityLogBrowser.CancelAction |
static interface |
EntityLogBrowser.Companion |
protected class |
EntityLogBrowser.SaveAction |
Screen.AfterCloseEvent, Screen.AfterDetachEvent, Screen.AfterInitEvent, Screen.AfterShowEvent, Screen.BeforeCloseEvent, Screen.BeforeShowEvent, Screen.InitEvent
Window.BeforeCloseEvent, Window.BeforeCloseWithCloseButtonEvent, Window.BeforeCloseWithShortcutEvent, Window.CloseListener, Window.CloseOrigin, Window.CloseWithCommitListener, Window.Committable, Window.ContentSwitchMode, Window.Editor<T extends Entity>, Window.HasFoldersPane, Window.HasUserIndicator, Window.HasWorkArea, Window.Lookup<T extends Entity>, Window.TopLevelWindow, Window.Wrapper
Frame.MessageMode, Frame.MessageType, Frame.NotificationType
ExpandingLayout.ExpandDirection
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.OptionsStyleProvider
frame, messages, UNKNOWN_CLOSE_ACTION_ID
BROWSE_WINDOW_SUFFIX, CLOSE_ACTION_ID, COMMIT_ACTION_ID, CREATE_WINDOW_SUFFIX, EDITOR_WINDOW_SUFFIX, LOOKUP_WINDOW_SUFFIX, NAME, SELECT_ACTION_ID
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE, UNITS_PERCENTAGE, UNITS_PIXELS
NO_OPTIONS, WINDOW_CLOSE_ACTION, WINDOW_COMMIT_AND_CLOSE_ACTION, WINDOW_DISCARD_AND_CLOSE_ACTION
Constructor and Description |
---|
EntityLogBrowser() |
Modifier and Type | Method and Description |
---|---|
protected void |
addAttribute(java.util.Set<LoggedAttribute> enabledAttributes,
java.lang.String name,
boolean editable) |
protected boolean |
allowLogProperty(MetaProperty metaProperty,
CategoryAttribute categoryAttribute) |
protected void |
checkAllCheckboxes() |
void |
clearAttributes() |
void |
clearEntityLogTable() |
void |
create() |
protected void |
disableControls() |
protected void |
enableAllCheckBoxes(boolean b) |
protected void |
enableControls() |
protected void |
fillAttributes(java.lang.String metaClassName,
LoggedEntity item,
boolean editable) |
java.util.TreeMap<java.lang.String,java.lang.String> |
getEntityMetaClasses() |
LoggedAttribute |
getLoggedAttribute(java.lang.String name,
java.util.Set<LoggedAttribute> enabledAttr) |
void |
init(java.util.Map<java.lang.String,java.lang.Object> params)
Called by the framework after creation of all components and before showing the screen.
|
boolean |
isEntityHaveAttribute(java.lang.String propertyName,
java.util.Set<LoggedAttribute> enabledAttr) |
void |
modify() |
void |
reloadConfiguration() |
void |
search() |
void |
setDateFieldTime() |
void |
setSelectAllCheckBox(boolean value) |
add, add, addAction, addAction, addBeforeWindowCloseListener, addFacet, addStyleName, addTimer, afterShow, applySettings, beforeClose, closeWithDiscard, deleteSettings, expand, expand, formatMessage, getAction, getActions, getActionsPermissions, getAlignment, getCaption, getCompanion, getComponent, getComponent, getComponent, getComponents, getComposition, getContentSwitchMode, getContext, getDescription, getDialogOptions, getDsContext, getExpandDirection, getExpandRatio, getFacet, getFacets, getFocusComponent, getFrame, getFrameOwner, getHeight, getHeightSizeUnit, getIcon, getMargin, getMaxHeight, getMaxWidth, getMessage, getMessagesPack, getMinHeight, getMinWidth, getOwnComponent, getOwnComponents, getOwnComponentsStream, getParent, getScreenHashCode, getSettings, getSpacing, getStyleName, getTimer, getWidth, getWidthSizeUnit, getWindowManager, getWrappedFrame, getWrappedWindow, getXmlDescriptor, handleValidationErrors, hasUnsavedChanges, indexOf, init, isAttributeAccessControlEnabled, isCloseable, isEnabled, isEnabledRecursive, isExpanded, isResponsive, isSameScreen, isValid, isVisible, isVisibleRecursive, postValidate, preClose, ready, remove, removeAction, removeAction, removeAll, removeAllActions, removeBeforeWindowCloseListener, removeFacet, removeStyleName, resetExpanded, saveSettings, setAlignment, setCaption, setCloseable, setCompanion, setContentSwitchMode, setDescription, setDsContext, setEnabled, setExpandRatio, setFocusComponent, setFrame, setHeight, setIcon, setIconFromSet, setId, setMargin, setMaxHeight, setMaxWidth, setMessagesPack, setMinHeight, setMinWidth, setParent, setResponsive, setSpacing, setStyleName, setVisible, setWidth, setWindow, setXmlDescriptor, showValidationErrors, unwrap, unwrapComposition, validate, validate, validateAdditionalRules, validateAll
addAfterCloseListener, addAfterDetachListener, addAfterInitListener, addAfterShowListener, addBeforeCloseListener, addBeforeShowListener, addInitListener, addUrlParamsChangeListener, applyDataLoadingSettings, close, closeWithDefaultAction, fireEvent, getBeanLocator, getEventHub, getExtensions, getId, getScreenData, getUiEventListeners, getWindow, isMultipleOpen, isSaveScreenHistoryOnClose, isSaveSettingsOnClose, setBeanLocator, setExtensions, setScreenData, setUiEventListeners, show
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addBeforeCloseWithCloseButtonListener, addBeforeCloseWithShortcutListener, addCloseListener, addCloseWithCommitListener, addListener, close, close, closeAndRun, removeBeforeCloseWithCloseButtonListener, removeBeforeCloseWithShortcutListener, removeCloseListener, removeCloseWithCommitListener, removeListener
getFacetNN
getComponentNN
add, focusFirstComponent, getComponentNN, remove
getHeightUnits, getId, getWidthUnits, isEnabledItself, isVisibleItself, requestFocus, setHeightAuto, setHeightFull, setSizeAuto, setSizeFull, setWidthAuto, setWidthFull
getActionNN, getSubPart
openEditor, openEditor, openEditor, openEditor, openEditor, openEditor, openEditor, openFrame, openFrame, openLookup, openLookup, openLookup, openLookup, openWindow, openWindow, showMessageDialog, showNotification, showNotification, showNotification, showOptionDialog, showOptionDialog, showWebPage
protected static final java.lang.String SELECT_ALL_CHECK_BOX
@Inject protected Metadata metadata
@Inject protected EntityLogService logService
@Inject protected ReferenceToEntitySupport referenceToEntitySupport
@Inject protected DynamicAttributes dynamicAttributes
@Inject protected CollectionDatasource<EntityLogItem,java.util.UUID> entityLogDs
@Inject protected CollectionDatasource<LoggedEntity,java.util.UUID> loggedEntityDs
@Inject protected CollectionDatasource<LoggedAttribute,java.util.UUID> loggedAttrDs
@Inject protected CollectionDatasource<User,java.util.UUID> usersDs
@Inject protected ComponentsFactory factory
@Inject protected LookupField<java.lang.String> entityNameField
@Inject protected LookupField<java.lang.String> filterEntityNameField
@Inject protected LookupField changeTypeField
@Inject protected CheckBox autoCheckBox
@Inject protected CheckBox manualCheckBox
@Named(value="selectAllCheckBox") protected CheckBox selectAllCheckBox
@Inject protected Table<LoggedEntity> loggedEntityTable
@Inject protected Table<EntityLogItem> entityLogTable
@Inject protected Table<EntityLogAttr> entityLogAttrTable
@Inject protected ScrollBoxLayout attributesBoxScroll
@Inject protected BoxLayout actionsPaneLayout
@Inject protected DateField fromDateField
@Inject protected DateField tillDateField
@Inject protected PickerField<Entity> instancePicker
@Inject protected LookupField userField
@Inject protected WindowConfig config
@Inject protected ThemeConstants themeConstants
protected java.util.TreeMap<java.lang.String,java.lang.String> entityMetaClassesMap
protected java.util.List<java.lang.String> systemAttrsList
protected boolean canSelectAllCheckboxGenerateEvents
@Inject protected Button cancelBtn
public void init(java.util.Map<java.lang.String,java.lang.Object> params)
AbstractWindow
init
in class AbstractWindow
params
- parameters passed from caller's code, usually from
HasWindowManager.openWindow(String, WindowManager.OpenType)
and similar methods, or set in
screens.xml
for this registered screenpublic java.util.TreeMap<java.lang.String,java.lang.String> getEntityMetaClasses()
protected void enableControls()
protected void disableControls()
protected void fillAttributes(java.lang.String metaClassName, LoggedEntity item, boolean editable)
protected void addAttribute(java.util.Set<LoggedAttribute> enabledAttributes, java.lang.String name, boolean editable)
protected void enableAllCheckBoxes(boolean b)
protected void checkAllCheckboxes()
public void setSelectAllCheckBox(boolean value)
public void setDateFieldTime()
public void clearEntityLogTable()
public void search()
public void clearAttributes()
public boolean isEntityHaveAttribute(java.lang.String propertyName, java.util.Set<LoggedAttribute> enabledAttr)
public LoggedAttribute getLoggedAttribute(java.lang.String name, java.util.Set<LoggedAttribute> enabledAttr)
public void create()
public void reloadConfiguration()
public void modify()
protected boolean allowLogProperty(MetaProperty metaProperty, CategoryAttribute categoryAttribute)