All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pl.fhframework.events.IEventSource Maven / Gradle / Ivy

package pl.fhframework.events;

import pl.fhframework.binding.ActionBinding;
import pl.fhframework.model.dto.InMessageEventData;
import pl.fhframework.model.forms.Form;

import java.lang.reflect.Field;
import java.util.Optional;

/**
 * Interface need to be implemented by components(like InputText) for executing methods, that are
 * provided by Forms.
 */
public interface IEventSource {

    Optional getEventHandler(InMessageEventData eventData);

    /**
     * Checks if event of given type is modification of component. If true this event will not be valid for availablity other than EDIT.
     * @param eventType event type
     * @return if event of given type is modification of component
     */
    default boolean isModificationEvent(String eventType) {
        return true;
    }

    ViewEvent prepareEventDataArgument(InMessageEventData eventData);

     Form getForm();

     Form getEventProcessingForm();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy