Class ImapEventHandlersFragment
java.lang.Object
io.jmix.ui.screen.ScreenFragment
io.jmix.imapui.screen.folder.event.ImapEventHandlersFragment
- All Implemented Interfaces:
FrameOwner
@UiController("imap_EventHandlersFragment")
@UiDescriptor("imap-event-handlers-fragment.xml")
public class ImapEventHandlersFragment
extends ScreenFragment
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.ui.screen.ScreenFragment
ScreenFragment.AfterInitEvent, ScreenFragment.AttachEvent, ScreenFragment.DetachEvent, ScreenFragment.InitEvent
-
Field Summary
Modifier and TypeFieldDescriptionprotected Button
protected AvailableBeansProvider
protected UiComponents
protected DataContext
protected Button
protected InstanceContainer<ImapFolderEvent>
protected Map<ImapEventHandler,
ComboBox> protected CollectionContainer<ImapEventHandler>
protected GroupBoxLayout
protected Table<ImapEventHandler>
protected long
protected MessageBundle
protected Notifications
protected RemoveAction<ImapEventHandler>
protected Button
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 TypeMethodDescriptionvoid
protected void
protected int
handlersTableBeanNameColumnGenerator
(ImapEventHandler eventHandler) handlersTableMethodNameColumnGenerator
(ImapEventHandler eventHandler) protected ComboBox
makeBeanMethodLookup
(Map<String, List<String>> availableBeans, ImapEventHandler eventHandler) void
void
protected void
protected void
protected void
void
refresh()
protected void
removeMissedHandlers
(Map<String, List<String>> availableBeans) protected void
updateButtons
(ImapEventHandler handler) protected void
Methods inherited from class io.jmix.ui.screen.ScreenFragment
addAfterInitListener, addAttachEventListener, addDetachEventListener, addInitListener, fireEvent, getApplicationContext, getEventHub, getExtensions, getFragment, getHostController, getHostScreen, getId, getScreenData, getUiEventListeners, init, setApplicationContext, setExtensions, setFragment, setHostController, setId, setScreenData, setUiEventListeners
-
Field Details
-
eventsDc
-
handlersDc
-
handlersTable
-
addHandlerBtn
-
upHandlerBtn
-
downHandlerBtn
-
removeAction
-
availableBeansProvider
-
componentsFactory
-
dataContext
-
notifications
-
messageBundle
-
handlerMethodComboBoxFields
-
availableHandlers
-
maxHandlersCount
protected long maxHandlersCount -
handlersGroupBox
-
-
Constructor Details
-
ImapEventHandlersFragment
public ImapEventHandlersFragment()
-
-
Method Details
-
refresh
public void refresh() -
handlersTableBeanNameColumnGenerator
-
handlersTableMethodNameColumnGenerator
-
onHandlersDcItemPropertyChange
@Subscribe(id="handlersDc", target=DATA_CONTAINER) protected void onHandlersDcItemPropertyChange(InstanceContainer.ItemPropertyChangeEvent<ImapEventHandler> event) -
onHandlersDcCollectionChange
@Subscribe(id="handlersDc", target=DATA_CONTAINER) protected void onHandlersDcCollectionChange(CollectionContainer.CollectionChangeEvent<ImapEventHandler> e) -
onHandlersDcItemChange
@Subscribe(id="handlersDc", target=DATA_CONTAINER) protected void onHandlersDcItemChange(InstanceContainer.ItemChangeEvent<ImapEventHandler> e) -
removeMissedHandlers
-
makeBeanMethodLookup
-
methodNames
-
addHandler
-
moveUpHandler
-
moveDownHandler
-
enableAddButton
protected void enableAddButton() -
updateHandlingOrders
protected void updateHandlingOrders() -
getMaxHandlingOrder
protected int getMaxHandlingOrder() -
updateButtons
-