org.ujorm.wicket
Class UjoEvent<U>

java.lang.Object
  extended by org.ujorm.wicket.UjoEvent<U>

public class UjoEvent<U>
extends Object

UjoEvent

Author:
Pavel Ponec

Constructor Summary
UjoEvent(String action, org.apache.wicket.ajax.AjaxRequestTarget target)
          Constructor
UjoEvent(String action, boolean dialogRequest, U ujo, org.apache.wicket.ajax.AjaxRequestTarget target)
          Constructor for an Event
UjoEvent(String action, U ujo, org.apache.wicket.ajax.AjaxRequestTarget target)
          Constructor
 
Method Summary
 void addTarget(org.apache.wicket.Component... components)
          Add required component to the target
static
<T> UjoEvent<T>
get(org.apache.wicket.event.IEvent<?> argEvent)
          Get Payload type UjoEvent from the argument
 String getAction()
          Get action
 U getDomain()
          Get the ujo domain object
 org.apache.wicket.ajax.AjaxRequestTarget getTarget()
          Get target
 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(String action)
          Is it the required action?
 boolean showDialog()
          A request to open a dialog
 String toString()
          To string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UjoEvent

public UjoEvent(String action,
                org.apache.wicket.ajax.AjaxRequestTarget target)
Constructor

Parameters:
action - Required action code
target - target

UjoEvent

public UjoEvent(String action,
                U ujo,
                org.apache.wicket.ajax.AjaxRequestTarget target)
Constructor

Parameters:
action - Required action code
ujo - Optional data context
target - target

UjoEvent

public UjoEvent(String action,
                boolean dialogRequest,
                U ujo,
                org.apache.wicket.ajax.AjaxRequestTarget target)
Constructor for an Event

Parameters:
action - Required action code
dialogRequest - A request to open a dialog
ujo - Optional data context type of Ujo
target - Target
Method Detail

getDomain

public U getDomain()
Get the ujo domain object


getUjoModel

public org.apache.wicket.model.IModel<U> getUjoModel()
Get Ujo domain model


getTarget

public org.apache.wicket.ajax.AjaxRequestTarget getTarget()
Get target


addTarget

public void addTarget(org.apache.wicket.Component... components)
Add required component to the target


getAction

public String getAction()
Get action


isAction

public final boolean isAction(String action)
Is it the required action?

Parameters:
action - Nullable argument
Returns:
The true value for the match.

isAction

public final boolean isAction(String... actions)
Check the the required actions from argument to match.

Parameters:
action - Nullable argument
Returns:
The true value for the match.

showDialog

public boolean showDialog()
A request to open a dialog


toString

public String toString()
To string

Overrides:
toString in class Object

get

public static <T> UjoEvent<T> get(org.apache.wicket.event.IEvent<?> argEvent)
Get Payload type UjoEvent from the argument



Copyright © 2014. All Rights Reserved.