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 Ack |
getNack(Object source,
Exception ex) |
static boolean |
isMac() |
static boolean |
isUnix() |
static boolean |
isWindows() |
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 listenerpublic static boolean isWindows()
public static boolean isMac()
public static boolean isUnix()
Copyright © 2022. All rights reserved.