public class UjoEvent<U> extends Object
| Modifier and Type | Field and Description |
|---|---|
static UjoEvent |
EMPTY_EVENT
Undefined event with
null action |
| Constructor and Description |
|---|
UjoEvent(@NotNull String action,
@NotNull org.apache.wicket.ajax.AjaxRequestTarget target)
Constructor
|
UjoEvent(@NotNull String action,
boolean dialogRequest,
U ujo,
@NotNull org.apache.wicket.ajax.AjaxRequestTarget target)
Constructor for an Event
|
UjoEvent(@NotNull String action,
U ujo,
@NotNull org.apache.wicket.ajax.AjaxRequestTarget target)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTarget(org.apache.wicket.Component... components)
Add required component to the target
|
static <T> @NotNull UjoEvent<T> |
get(@NotNull org.apache.wicket.event.IEvent<?> argEvent)
Get Payload type UjoEvent from the argument or return the
EMPTY_EVENT |
String |
getAction()
Get action
|
U |
getDomain()
Get the ujo domain object
|
@NotNull org.apache.wicket.ajax.AjaxRequestTarget |
getTarget()
Get target
|
@NotNull org.apache.wicket.model.IModel<U> |
getUjoModel()
Get Ujo domain model
|
boolean |
isAction(String... actions)
Check the the required actions from argument to match.
|
boolean |
isAction(@NotNull String action)
Is it the required action?
|
boolean |
showDialog()
A request to open a dialog
|
String |
toString()
To string
|
public static final UjoEvent EMPTY_EVENT
null actionpublic UjoEvent(@NotNull
@NotNull String action,
@NotNull
@NotNull org.apache.wicket.ajax.AjaxRequestTarget target)
action - Required action codetarget - targetpublic UjoEvent(@NotNull
@NotNull String action,
@Nullable
U ujo,
@NotNull
@NotNull org.apache.wicket.ajax.AjaxRequestTarget target)
action - Required action codeujo - Optional data contexttarget - targetpublic UjoEvent(@NotNull
@NotNull String action,
boolean dialogRequest,
@Nullable
U ujo,
@NotNull
@NotNull org.apache.wicket.ajax.AjaxRequestTarget target)
action - Required action codedialogRequest - A request to open a dialogujo - Optional data context type of Ujotarget - Target@Nullable public U getDomain()
@NotNull public @NotNull org.apache.wicket.model.IModel<U> getUjoModel()
@NotNull public @NotNull org.apache.wicket.ajax.AjaxRequestTarget getTarget()
public void addTarget(@NotNull
org.apache.wicket.Component... components)
public String getAction()
public final boolean isAction(@NotNull
@NotNull String action)
action - Nullable argumentpublic final boolean isAction(@NotNull
String... actions)
actions - An nonnull argumentpublic boolean showDialog()
@NotNull public static <T> @NotNull UjoEvent<T> get(@NotNull @NotNull org.apache.wicket.event.IEvent<?> argEvent)
EMPTY_EVENTCopyright © 2024. All rights reserved.