tn5250j/src/org/tn5250j/keyboard/actions PasteAction.java,NONE,1.1 PrintAction.java,1.3,1.4 RulerAction.java,1.3,1.4 HotspotsAction.java,1.3,1.4

"Kenneth J. Pouncey" <[email protected]> Sun, 18 Jul 2004 13:30:24 +0000
Newsgroups gmane.comp.java.tn5250j.cvs
Message-ID <[email protected]>
Update of /cvsroot/tn5250j/tn5250j/src/org/tn5250j/keyboard/actions
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24442/src/org/tn5250j/keyboard/actions

Modified Files:
	PrintAction.java RulerAction.java HotspotsAction.java 
Added Files:
	PasteAction.java 
Log Message:
Updates for headless

Index: RulerAction.java
===================================================================
RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/keyboard/actions/RulerAction.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** RulerAction.java	9 Jul 2003 18:55:39 -0000	1.3
--- RulerAction.java	18 Jul 2004 13:30:21 -0000	1.4
***************
*** 48,52 ****
  
     public void actionPerformed(ActionEvent e) {
!      session.getScreen().crossHair();
     }
  }
\ No newline at end of file
--- 48,52 ----
  
     public void actionPerformed(ActionEvent e) {
!      session.crossHair();
     }
  }
\ No newline at end of file

Index: HotspotsAction.java
===================================================================
RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/keyboard/actions/HotspotsAction.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** HotspotsAction.java	9 Jul 2003 18:55:39 -0000	1.3
--- HotspotsAction.java	18 Jul 2004 13:30:21 -0000	1.4
***************
*** 49,53 ****
     public void actionPerformed(ActionEvent e) {
  
!       session.getScreen().toggleHotSpots();
     }
  }
\ No newline at end of file
--- 49,53 ----
     public void actionPerformed(ActionEvent e) {
  
!       session.toggleHotSpots();
     }
  }
\ No newline at end of file

Index: PrintAction.java
===================================================================
RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/keyboard/actions/PrintAction.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** PrintAction.java	9 Jul 2003 18:55:39 -0000	1.3
--- PrintAction.java	18 Jul 2004 13:30:21 -0000	1.4
***************
*** 48,52 ****
  
     public void actionPerformed(ActionEvent e) {
!      session.getScreen().printMe();
     }
  }
\ No newline at end of file
--- 48,52 ----
  
     public void actionPerformed(ActionEvent e) {
!      session.printMe();
     }
  }
\ No newline at end of file

--- NEW FILE: PasteAction.java ---
/**
 * Title: JumpNextAction.java
 * Copyright:   Copyright (c) 2001,2002
 * Company:
 * @author  Kenneth J. Pouncey
 * @version 0.5
 *
 * Description:
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2, or (at your option)
 * any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this software; see the file COPYING.  If not, write to
 * the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
 * Boston, MA 02111-1307 USA
 *
 */
package org.tn5250j.keyboard.actions;

import java.awt.event.KeyEvent;
import javax.swing.KeyStroke;
import java.awt.event.ActionEvent;

import org.tn5250j.TN5250jConstants;
import org.tn5250j.Session;
import org.tn5250j.keyboard.KeyMapper;

/**
 * Paste from the clipboard
 */
public class PasteAction extends EmulatorAction implements TN5250jConstants {

   public PasteAction(Session session, KeyMapper keyMap) {
      super(session,
            MNEMONIC_PASTE,
            KeyStroke.getKeyStroke(KeyEvent.VK_V,KeyEvent.ALT_MASK),
            keyMap);

   }

   public void actionPerformed(ActionEvent e) {

      session.getScreen().pasteMe(false);
   }
}


-------------------------------------------------------
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