Class EventHandlerCollectionModel

    • Constructor Detail

      • EventHandlerCollectionModel

        public EventHandlerCollectionModel​(Form form,
                                           FormVisualEntity object,
                                           FormItemInformationService formItemInformationService,
                                           IV8Project v8project)
        Creates a new model.
        Parameters:
        form - the form model, cannot be null
        object - the form model object, cannot be null
        formItemInformationService - the FormItemInformationService, cannot be null
        v8project - the V8 project, cannot be null
    • Method Detail

      • getChange

        public IChange getChange()
        Specified by:
        getChange in interface IModel
        Returns:
        change describing the modifications done to the model.
      • dispose

        public void dispose()
        Description copied from interface: IModel
        Disposes this model.
        Specified by:
        dispose in interface IModel
        Overrides:
        dispose in class Model
      • isMobileApplicationOnly

        public boolean isMobileApplicationOnly()
        Description copied from interface: IHandlerCollectionModel
        Checks that parent configuration is design for only mobile application.
        Specified by:
        isMobileApplicationOnly in interface IHandlerCollectionModel
        Returns:
        true if configuration is design for only mobile application, false otherwise
      • getForm

        public Form getForm()
        Returns the parent form.
        Returns:
        the parent form, never null
      • createFormEventModels

        protected List<IHandlerModel<?>> createFormEventModels​(EventHandlerContainer entity,
                                                               List<Event> events,
                                                               List<EventHandler> allHandlers,
                                                               Form form,
                                                               com.google.common.collect.Multimap<Event,​String> possibleHandlers)
        Create a list of form event models for the provided event container entity and the list of allowed events.
        Parameters:
        entity - the event container entity, cannot be null
        events - the list of allowed events, cannot be null
        allHandlers - the list of all already existing entity entity form handlers, cannot be null
        form - the parent form, cannot be null
        possibleHandlers - the multi map of found possible BSL module handlers, cannot be null
        Returns:
        a list of form event models for the provided event container entity and the list of allowed events, never null
      • createFormEventModels

        protected List<IHandlerModel<?>> createFormEventModels​(EventHandlerContainer entity,
                                                               Event event,
                                                               List<EventHandler> allHandlers,
                                                               Form form,
                                                               Collection<String> possibleHandlers)
        Create a list of form event models for the provided event container entity and the allowed event.
        Parameters:
        entity - the event container entity, cannot be null
        event - the allowed event, cannot be null
        allHandlers - the list of all already existing entity entity form handlers, cannot be null
        form - the parent form, cannot be null
        possibleHandlers - the collection of found possible BSL module handlers, cannot be null
        Returns:
        a list of form event models for the provided event container entity and the allowed event