com.openfin.desktop
Class DesktopUtils

java.lang.Object
  extended by com.openfin.desktop.DesktopUtils

public class DesktopUtils
extends Object

Helper methods

Since:
12/8/14
Author:
wche

Constructor Summary
DesktopUtils()
           
 
Method Summary
static void addEventListener(Window window, String evenType, EventListener eventListener)
          Add event listener.
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 callback, Ack ack)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DesktopUtils

public DesktopUtils()
Method Detail

errorAckOnException

public static void errorAckOnException(AckListener ackListener,
                                       Object source,
                                       Exception ex)
Call onError of an AckListen for an exception

Parameters:
ackListener -
source - Source of the Ack
ex - Exception for the Ack
See Also:
Ack, AckListener

successAck

public static void successAck(AckListener callback,
                              Ack ack)

errorAck

public static void errorAck(AckListener callback,
                            Ack ack)

addEventListener

public static void addEventListener(Window window,
                                    String evenType,
                                    EventListener eventListener)
                             throws Exception
Add event listener. Since this blocks for response, it should NOT called on websocket read thread.

Parameters:
window -
evenType -
eventListener -
Throws:
Exception


Copyright © 2016. All rights reserved.