public class DesktopUtils extends Object
Constructor and Description |
---|
DesktopUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
addEventListener(Window window,
String evenType,
EventListener eventListener)
Add event listener to a window.
|
static void |
errorAck(AckListener callback,
Ack ack) |
static void |
errorAckOnException(AckListener ackListener,
Object source,
Exception ex)
Call onError of an AckListen for an exception
|
static void |
successAck(AckListener ackListener,
Ack ack)
Call onSuccess of an AckListen
|
public static void errorAckOnException(AckListener ackListener, Object source, Exception ex)
ackListener
- AckListener to be calledsource
- Source of the Ackex
- Exception for the AckAck
,
AckListener
public static void successAck(AckListener ackListener, Ack ack)
ackListener
- AckListener to be calledack
- an instance of Ack to be passed to ackListenerAck
,
AckListener
public static void errorAck(AckListener callback, Ack ack)
public static void addEventListener(Window window, String evenType, EventListener eventListener) throws Exception
window
- an instance of WindowevenType
- type of eventeventListener
- EventListner to be addedException
- if this method fails to add event listenerCopyright © 2017. All rights reserved.