public class EntityInspectorBrowse extends AbstractLookup
Modifier and Type | Class and Description |
---|---|
static interface |
EntityInspectorBrowse.Companion |
protected class |
EntityInspectorBrowse.CreateAction |
protected class |
EntityInspectorBrowse.EditAction |
protected class |
EntityInspectorBrowse.ExportAction |
Screen.AfterCloseEvent, Screen.AfterDetachEvent, Screen.AfterInitEvent, Screen.AfterShowEvent, Screen.BeforeCloseEvent, Screen.BeforeShowEvent, Screen.InitEvent
Window.Lookup.Handler, Window.Lookup.Validator
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.MainWindow, 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
LookupScreen.ValidationContext<T extends Entity>
frame, messages, UNKNOWN_CLOSE_ACTION_ID
LOOKUP_ENTER_PRESSED_ACTION_ID, LOOKUP_ITEM_CLICK_ACTION_ID, NAME
BROWSE_WINDOW_SUFFIX, CLOSE_ACTION_ID, COMMIT_ACTION_ID, CREATE_WINDOW_SUFFIX, EDITOR_WINDOW_SUFFIX, LOOKUP_WINDOW_SUFFIX, SELECT_ACTION_ID
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE, UNITS_PERCENTAGE, UNITS_PIXELS
LOOKUP_CANCEL_ACTION_ID, LOOKUP_SELECT_ACTION_ID, LOOKUP_SELECT_CLOSE_ACTION
NO_OPTIONS, WINDOW_CLOSE_ACTION, WINDOW_COMMIT_AND_CLOSE_ACTION, WINDOW_DISCARD_AND_CLOSE_ACTION
Constructor and Description |
---|
EntityInspectorBrowse() |
Modifier and Type | Method and Description |
---|---|
protected void |
changeTableTextSelectionEnabled() |
protected void |
createButtonsPanel(Table table) |
protected void |
createEntitiesTable(com.haulmont.chile.core.model.MetaClass meta) |
protected EntityImportView |
createEntityImportView(com.haulmont.chile.core.model.MetaClass metaClass) |
protected void |
createFilter() |
protected View |
createView(com.haulmont.chile.core.model.MetaClass meta) |
protected boolean |
entityOpPermitted(com.haulmont.chile.core.model.MetaClass metaClass,
EntityOp entityOp) |
protected java.util.Map<java.lang.String,com.haulmont.chile.core.model.MetaClass> |
getEntitiesLookupFieldOptions() |
protected java.lang.String |
getPropertyCaption(com.haulmont.chile.core.model.MetaClass metaClass,
com.haulmont.chile.core.model.MetaProperty metaProperty) |
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.
|
protected boolean |
isEmbedded(com.haulmont.chile.core.model.MetaProperty metaProperty) |
protected boolean |
readPermitted(com.haulmont.chile.core.model.MetaClass metaClass) |
void |
setSelectHandler(java.util.function.Consumer lookupHandler)
Sets selection handler for screen.
|
afterInit, getLookupComponent, getSelectHandler, getSelectValidator, initLookupActions, initLookupLayout, selectItemsOnClick, setLookupComponent, setSelectValidator, setupCommitShortcut, setupLookupComponent
add, add, addAction, addAction, addBeforeWindowCloseListener, 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, 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, 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, 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
getLookupHandler, getLookupValidator, setLookupHandler, setLookupValidator
addBeforeCloseWithCloseButtonListener, addBeforeCloseWithShortcutListener, addBeforeWindowCloseListener, addCloseListener, addCloseWithCommitListener, addListener, addTimer, applySettings, close, close, closeAndRun, deleteSettings, getContext, getDialogOptions, getFocusComponent, getFrameOwner, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getSettings, getTimer, getWindowManager, isCloseable, removeBeforeCloseWithCloseButtonListener, removeBeforeCloseWithShortcutListener, removeBeforeWindowCloseListener, removeCloseListener, removeCloseWithCommitListener, removeListener, saveSettings, setCloseable, setFocusComponent, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, validate, validateAll
expand, expand, getExpandDirection, isExpanded, resetExpanded
add, getComponent, getComponentNN, indexOf
add, add, focusFirstComponent, getComponent, getComponentNN, getComponents, getOwnComponent, getOwnComponents, getOwnComponentsStream, remove, remove, removeAll
addStyleName, getAlignment, getHeight, getHeightSizeUnit, getHeightUnits, getId, getParent, getStyleName, getWidth, getWidthSizeUnit, getWidthUnits, isEnabled, isEnabledItself, isEnabledRecursive, isResponsive, isVisible, isVisibleItself, isVisibleRecursive, removeStyleName, requestFocus, setAlignment, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition
getFrame, setFrame
getSpacing, setSpacing
getMargin, setMargin, setMargin, setMargin
addAction, addAction, getAction, getActionNN, getActions, getSubPart, removeAction, removeAction, removeAllActions
getIcon, setIcon, setIconFromSet
getCaption, setCaption
getDescription, setDescription
openEditor, openEditor, openEditor, openEditor, openEditor, openEditor, openEditor, openFrame, openFrame, openLookup, openLookup, openLookup, openLookup, openWindow, openWindow, showMessageDialog, showNotification, showNotification, showNotification, showOptionDialog, showOptionDialog, showWebPage
getExpandRatio, setExpandRatio
getCompanion, getContext, getDsContext, getMessagesPack, getXmlDescriptor, isValid, setDsContext, setMessagesPack, setXmlDescriptor, validate, validate, validateAll
getComponent, getComposition
getWrappedFrame
public static final java.lang.String SCREEN_NAME
public static final WindowManager.OpenType WINDOW_OPEN_TYPE
public static final int MAX_TEXT_LENGTH
protected static final org.slf4j.Logger log
@Inject protected Metadata metadata
@Inject protected MessageTools messageTools
@Inject protected BoxLayout lookupBox
@Inject protected BoxLayout tableBox
@Inject protected ComponentsFactory componentsFactory
@Inject protected Configuration configuration
@Inject protected LookupField<com.haulmont.chile.core.model.MetaClass> entitiesLookup
@Inject protected CheckBox removedRecords
@Inject protected CheckBox textSelection
@Inject protected BoxLayout filterBox
@Inject protected ExportDisplay exportDisplay
@Inject protected EntityImportExportService entityImportExportService
@Inject protected FileUploadingAPI fileUploadingAPI
@Inject protected Icons icons
protected Filter filter
protected Table entitiesTable
@Inject protected EntityInspectorBrowse.Companion companion
protected Button createButton
protected Button editButton
protected Button removeButton
protected Button excelButton
protected Button refreshButton
protected FileUploadField importUpload
protected PopupButton exportPopupButton
protected CollectionDatasource entitiesDs
protected com.haulmont.chile.core.model.MetaClass selectedMeta
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 void setSelectHandler(java.util.function.Consumer lookupHandler)
LookupScreen
setSelectHandler
in interface LookupScreen
setSelectHandler
in class AbstractLookup
lookupHandler
- selection handlerprotected java.util.Map<java.lang.String,com.haulmont.chile.core.model.MetaClass> getEntitiesLookupFieldOptions()
protected void changeTableTextSelectionEnabled()
protected void createEntitiesTable(com.haulmont.chile.core.model.MetaClass meta)
protected void createFilter()
protected boolean isEmbedded(com.haulmont.chile.core.model.MetaProperty metaProperty)
protected void createButtonsPanel(Table table)
protected View createView(com.haulmont.chile.core.model.MetaClass meta)
protected EntityImportView createEntityImportView(com.haulmont.chile.core.model.MetaClass metaClass)
protected java.lang.String getPropertyCaption(com.haulmont.chile.core.model.MetaClass metaClass, com.haulmont.chile.core.model.MetaProperty metaProperty)
protected boolean readPermitted(com.haulmont.chile.core.model.MetaClass metaClass)
protected boolean entityOpPermitted(com.haulmont.chile.core.model.MetaClass metaClass, EntityOp entityOp)