E - type of entitypublic static class MasterDetailScreen.InitEntityEvent<E extends Entity>
extends java.util.EventObject
Use this event listener to initialize default values in the new entity instance, for example:
@Subscribe
protected void onInitEntity(InitEntityEvent<Foo> event) {
event.getEntity().setStatus(Status.ACTIVE);
}
| Constructor and Description |
|---|
InitEntityEvent(Screen source,
E entity) |
| Modifier and Type | Method and Description |
|---|---|
E |
getEntity() |
Screen |
getSource() |