tn5250j/src/org/tn5250j Gui5250.java,1.69,1.70 SessionGUI.java,1.1,1.2

Patrick Bielen <[email protected]> Thu, 22 Jul 2004 11:16:49 +0000
Newsgroups gmane.comp.java.tn5250j.cvs
Message-ID <[email protected]>
Update of /cvsroot/tn5250j/tn5250j/src/org/tn5250j
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23030/src/org/tn5250j

Modified Files:
	Gui5250.java SessionGUI.java 
Log Message:
Fix for the onConnectMacro feature

Index: SessionGUI.java
===================================================================
RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/SessionGUI.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** SessionGUI.java	22 Jul 2004 04:54:56 -0000	1.1
--- SessionGUI.java	22 Jul 2004 11:16:47 -0000	1.2
***************
*** 33,37 ****
   * A host GUI session
   */
! public class SessionGUI extends Gui5250 implements TN5250jConstants {
  
     private String configurationResource;
--- 33,37 ----
   * A host GUI session
   */
! public class SessionGUI extends Gui5250 implements SessionListener,TN5250jConstants {
  
     private String configurationResource;
***************
*** 56,60 ****
  
        session.getConfiguration().addSessionConfigListener(this);
! 
     }
  
--- 56,60 ----
  
        session.getConfiguration().addSessionConfigListener(this);
!       session.addSessionListener(this);
     }
  
***************
*** 151,154 ****
--- 151,165 ----
     }
  
+    public void onSessionChanged(SessionChangeEvent changeEvent) {
+ 
+       switch (changeEvent.getState()) {
+          case STATE_CONNECTED:
+             String mac = sesConfig.getStringProperty("connectMacro");
+             if (mac.length() > 0)
+                executeMacro(mac);
+             break;
+       }
+    }
+ 
     /**
      * Add a SessionListener to the listener list.

Index: Gui5250.java
===================================================================
RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/Gui5250.java,v
retrieving revision 1.69
retrieving revision 1.70
diff -C2 -d -r1.69 -r1.70
*** Gui5250.java	22 Jul 2004 06:32:26 -0000	1.69
--- Gui5250.java	22 Jul 2004 11:16:46 -0000	1.70
***************
*** 53,57 ****
                                                        TN5250jConstants,
                                                        RubberBandCanvasIF,
!                                                       SessionListener,
                                                        SessionConfigListener {
  //                                                      DropTargetListener {
--- 53,57 ----
                                                        TN5250jConstants,
                                                        RubberBandCanvasIF,
!                                                       //SessionListener,
                                                        SessionConfigListener {
  //                                                      DropTargetListener {
***************
*** 524,529 ****
        }
  
- //      screen.propertyChange(pce);
- 
        resizeMe();
        repaint();
--- 524,527 ----
***************
*** 531,546 ****
     }
  
-    public void onSessionChanged(SessionChangeEvent changeEvent) {
- 
-       switch (changeEvent.getState()) {
-          case STATE_CONNECTED:
- 
-             String mac = sesConfig.getStringProperty("connectMacro");
-             if (mac.length() > 0)
-                executeMacro(mac);
-             break;
-       }
-    }
- 
     public tnvt getVT() {
  
--- 529,532 ----
***************
*** 853,859 ****
        }
  
!       // this was a fix for a keypad drawing problem under JDK1.2/1.3
! 	   // but caused problems under Linux/JDK1.4
! 	   //keyPad.repaint();
     }
  
--- 839,844 ----
        }
  
! //      keyPad.repaint();
! 
     }
  



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click