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

com.github.brunothg.swing.mvp.event.PayloadEvent Maven / Gradle / Ivy

The newest version!
package com.github.brunothg.swing.mvp.event;

import com.github.brunothg.swing.mvp.event.Event.AbstractEvent;

/**
 * An generic event for delivering a payload.
 * 
 * @author Marvin Bruns
 * @param 

Type of the payload * * */ public class PayloadEvent

extends AbstractEvent { private P payload; public PayloadEvent(Object source, P payload) { super(source); this.setPayload(payload); } public P getPayload() { return payload; } public void setPayload(P payload) { this.payload = payload; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy