Package com.openfin.desktop.test
Class Test
- java.lang.Object
-
- com.openfin.desktop.test.Test
-
- All Implemented Interfaces:
DesktopStateListener
public class Test extends Object implements DesktopStateListener
-
-
Constructor Summary
Constructors Constructor Description Test()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidmain(String[] args)voidonClose(String error)Callback when connection is closedvoidonError(String reason)Callback when client cannot start or connect to the Desktop.voidonMessage(String message)Callback when a message is sent to this clientvoidonOutgoingMessage(String message)Callback when a message is sent from this clientvoidonReady()Callback when Desktop is successfully connected and ready to accept commands.
-
-
-
Method Detail
-
onReady
public void onReady()
Description copied from interface:DesktopStateListenerCallback when Desktop is successfully connected and ready to accept commands.- Specified by:
onReadyin interfaceDesktopStateListener
-
onClose
public void onClose(String error)
Description copied from interface:DesktopStateListenerCallback when connection is closed- Specified by:
onClosein interfaceDesktopStateListener- Parameters:
error- Error message. null for normal close
-
onError
public void onError(String reason)
Description copied from interface:DesktopStateListenerCallback when client cannot start or connect to the Desktop.- Specified by:
onErrorin interfaceDesktopStateListener- Parameters:
reason- Error message
-
onMessage
public void onMessage(String message)
Description copied from interface:DesktopStateListenerCallback when a message is sent to this client- Specified by:
onMessagein interfaceDesktopStateListener- Parameters:
message- Message text
-
onOutgoingMessage
public void onOutgoingMessage(String message)
Description copied from interface:DesktopStateListenerCallback when a message is sent from this client- Specified by:
onOutgoingMessagein interfaceDesktopStateListener- Parameters:
message- Message text
-
main
public static void main(String[] args)
-
-