@UiController(value="imap_EventHandlersFragment")
@UiDescriptor(value="imap-event-handlers-fragment.xml")
public class ImapEventHandlersFragment
extends io.jmix.ui.screen.ScreenFragment
Modifier and Type | Field and Description |
---|---|
protected io.jmix.ui.component.Button |
addHandlerBtn |
protected AvailableBeansProvider |
availableBeansProvider |
protected java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
availableHandlers |
protected io.jmix.ui.UiComponents |
componentsFactory |
protected io.jmix.ui.model.DataContext |
dataContext |
protected io.jmix.ui.component.Button |
downHandlerBtn |
protected io.jmix.ui.model.InstanceContainer<ImapFolderEvent> |
eventsDc |
protected java.util.Map<ImapEventHandler,io.jmix.ui.component.ComboBox> |
handlerMethodComboBoxFields |
protected io.jmix.ui.model.CollectionContainer<ImapEventHandler> |
handlersDc |
protected io.jmix.ui.component.GroupBoxLayout |
handlersGroupBox |
protected io.jmix.ui.component.Table<ImapEventHandler> |
handlersTable |
protected long |
maxHandlersCount |
protected io.jmix.core.Messages |
messages |
protected io.jmix.ui.Notifications |
notifications |
protected io.jmix.ui.action.list.RemoveAction<ImapEventHandler> |
removeAction |
protected io.jmix.ui.component.Button |
upHandlerBtn |
Constructor and Description |
---|
ImapEventHandlersFragment() |
Modifier and Type | Method and Description |
---|---|
void |
addHandler(io.jmix.ui.action.Action.ActionPerformedEvent event) |
protected void |
enableAddButton() |
protected int |
getMaxHandlingOrder() |
protected io.jmix.ui.component.ComboBox<java.lang.String> |
handlersTableBeanNameColumnGenerator(ImapEventHandler eventHandler) |
protected io.jmix.ui.component.ComboBox<java.lang.String> |
handlersTableMethodNameColumnGenerator(ImapEventHandler eventHandler) |
protected io.jmix.ui.component.ComboBox |
makeBeanMethodLookup(java.util.Map<java.lang.String,java.util.List<java.lang.String>> availableBeans,
ImapEventHandler eventHandler) |
protected java.util.List<java.lang.String> |
methodNames(java.util.Map<java.lang.String,java.util.List<java.lang.String>> availableBeans,
java.lang.String beanName) |
void |
moveDownHandler(io.jmix.ui.action.Action.ActionPerformedEvent event) |
void |
moveUpHandler(io.jmix.ui.action.Action.ActionPerformedEvent event) |
protected void |
onHandlersDcCollectionChange(io.jmix.ui.model.CollectionContainer.CollectionChangeEvent<ImapEventHandler> e) |
protected void |
onHandlersDcItemChange(io.jmix.ui.model.InstanceContainer.ItemChangeEvent<ImapEventHandler> e) |
protected void |
onHandlersDcItemPropertyChange(io.jmix.ui.model.InstanceContainer.ItemPropertyChangeEvent<ImapEventHandler> event) |
void |
refresh() |
protected void |
removeMissedHandlers(java.util.Map<java.lang.String,java.util.List<java.lang.String>> availableBeans) |
protected void |
updateButtons(ImapEventHandler handler) |
protected void |
updateHandlingOrders() |
addAfterInitListener, addAttachEventListener, addDetachEventListener, addInitListener, fireEvent, getApplicationContext, getEventHub, getExtensions, getFragment, getHostController, getHostScreen, getId, getScreenData, getUiEventListeners, init, setApplicationContext, setExtensions, setFragment, setHostController, setId, setScreenData, setUiEventListeners
@Autowired protected io.jmix.ui.model.InstanceContainer<ImapFolderEvent> eventsDc
@Autowired protected io.jmix.ui.model.CollectionContainer<ImapEventHandler> handlersDc
@Autowired protected io.jmix.ui.component.Table<ImapEventHandler> handlersTable
@Autowired protected io.jmix.ui.component.Button addHandlerBtn
@Autowired protected io.jmix.ui.component.Button upHandlerBtn
@Autowired protected io.jmix.ui.component.Button downHandlerBtn
@Autowired @Qualifier(value="handlersTable.remove") protected io.jmix.ui.action.list.RemoveAction<ImapEventHandler> removeAction
@Autowired protected AvailableBeansProvider availableBeansProvider
@Autowired protected io.jmix.ui.UiComponents componentsFactory
@Autowired protected io.jmix.ui.model.DataContext dataContext
@Autowired protected io.jmix.ui.Notifications notifications
@Autowired protected io.jmix.core.Messages messages
protected java.util.Map<ImapEventHandler,io.jmix.ui.component.ComboBox> handlerMethodComboBoxFields
protected java.util.Map<java.lang.String,java.util.List<java.lang.String>> availableHandlers
protected long maxHandlersCount
@Autowired protected io.jmix.ui.component.GroupBoxLayout handlersGroupBox
public void refresh()
@Install(to="handlersTable.beanName", subject="columnGenerator") protected io.jmix.ui.component.ComboBox<java.lang.String> handlersTableBeanNameColumnGenerator(ImapEventHandler eventHandler)
@Install(to="handlersTable.methodName", subject="columnGenerator") protected io.jmix.ui.component.ComboBox<java.lang.String> handlersTableMethodNameColumnGenerator(ImapEventHandler eventHandler)
@Subscribe(id="handlersDc", target=DATA_CONTAINER) protected void onHandlersDcItemPropertyChange(io.jmix.ui.model.InstanceContainer.ItemPropertyChangeEvent<ImapEventHandler> event)
@Subscribe(id="handlersDc", target=DATA_CONTAINER) protected void onHandlersDcCollectionChange(io.jmix.ui.model.CollectionContainer.CollectionChangeEvent<ImapEventHandler> e)
@Subscribe(id="handlersDc", target=DATA_CONTAINER) protected void onHandlersDcItemChange(io.jmix.ui.model.InstanceContainer.ItemChangeEvent<ImapEventHandler> e)
protected void removeMissedHandlers(java.util.Map<java.lang.String,java.util.List<java.lang.String>> availableBeans)
protected io.jmix.ui.component.ComboBox makeBeanMethodLookup(java.util.Map<java.lang.String,java.util.List<java.lang.String>> availableBeans, ImapEventHandler eventHandler)
protected java.util.List<java.lang.String> methodNames(java.util.Map<java.lang.String,java.util.List<java.lang.String>> availableBeans, java.lang.String beanName)
@Subscribe(value="handlersTable.add") public void addHandler(io.jmix.ui.action.Action.ActionPerformedEvent event)
@Subscribe(value="handlersTable.up") public void moveUpHandler(io.jmix.ui.action.Action.ActionPerformedEvent event)
@Subscribe(value="handlersTable.down") public void moveDownHandler(io.jmix.ui.action.Action.ActionPerformedEvent event)
protected void enableAddButton()
protected void updateHandlingOrders()
protected int getMaxHandlingOrder()
protected void updateButtons(ImapEventHandler handler)