
com.github.brunothg.swing.mvp.event.PayloadEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of swing-mvp Show documentation
Show all versions of swing-mvp Show documentation
MVP for Spring desktop applications
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