Class HELLOWORLDSWING

java.lang.Object
  |
  +--HELLOWORLDSWING

public class HELLOWORLDSWING
extends java.lang.Object

UD5 Example Class.

This class is provided for example purposes only.

Version:
$Revision: 1.6 $
Author:
Copyright (c) 2001 by March Hare Pty Ltd, Inc. All Rights Reserved.

Constructor Summary
HELLOWORLDSWING()
           
 
Method Summary
static void ACCEPT()
          Placeholder.
static void EXEC()
          Main entry point for calling from Uniface.
static void main(java.lang.String[] args)
          Test the class.
static int QUIT()
          Notify calling Uniface application and if the user confirms, quit.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HELLOWORLDSWING

public HELLOWORLDSWING()
Method Detail

main

public static void main(java.lang.String[] args)
Test the class. Typically called from the command line to test the installation
    java HELLOWORLDSWING
    
 
Returns:
if successful, the window will display. To terminate close the window, and press Ctrl-C.
Throws:
Any -  

QUIT

public static int QUIT()
Notify calling Uniface application and if the user confirms, quit. Calls the Uniface operation CLOSING_SWING int he component instance TEST_JAVA, with a string parameter "See ya". This class "closes" the swing window only if the user confirms this is what they want to do by selecting the "Yes" option when prompted.
Returns:
if successful, returns 0, otherwise -1.

ACCEPT

public static void ACCEPT()
Placeholder.
Returns:
void.

EXEC

public static void EXEC()
Main entry point for calling from Uniface. Loads the UD5 Uniface call-in library, and opens a swing "window". This method also registers a listener for the windowClosnig event so that the QUIT method can be called.
Returns:
if successful, returns 0.
See Also:
QUIT()