tn5250j/src/org/tn5250j Screen5250.java,1.52,1.53
"Kenneth J. Pouncey" <[email protected]> Sat, 26 Jun 2004 05:36:34 +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-serv12171
Modified Files:
Screen5250.java
Log Message:
Add call back scanning functionality Luc - LDC
Index: Screen5250.java
===================================================================
RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/Screen5250.java,v
retrieving revision 1.52
retrieving revision 1.53
diff -C2 -d -r1.52 -r1.53
*** Screen5250.java 23 Jun 2004 14:49:21 -0000 1.52
--- Screen5250.java 26 Jun 2004 05:36:32 -0000 1.53
***************
*** 168,172 ****
private Logger log = Logger.getLogger(this.getClass());
!
public Screen5250(Gui5250 gui, SessionConfig config) {
--- 168,172 ----
private Logger log = Logger.getLogger(this.getClass());
!
public Screen5250(Gui5250 gui, SessionConfig config) {
***************
*** 744,748 ****
if (pn.equals("cursorBlink")) {
!
log.debug(getStringProperty("cursorBlink"));
if (pce.getNewValue().equals("Yes")) {
--- 744,748 ----
if (pn.equals("cursorBlink")) {
!
log.debug(getStringProperty("cursorBlink"));
if (pce.getNewValue().equals("Yes")) {
***************
*** 1223,1227 ****
eb.append(screen[pos].getChar());
}
! org.tn5250j.tools.system.OperatingSystem.displayURL(eb.toString());
// take out the log statement when we are sure it is working
log.info("Send to external Browser: " + eb.toString());
--- 1223,1227 ----
eb.append(screen[pos].getChar());
}
! org.tn5250j.tools.system.OperatingSystem.displayURL(eb.toString());
// take out the log statement when we are sure it is working
log.info("Send to external Browser: " + eb.toString());
***************
*** 1555,1560 ****
* @see #sendAid
*
*/
! public void sendKeys(String text) {
// if (text == null) {
--- 1555,1561 ----
* @see #sendAid
*
+ * Added synchronized to fix a StringOutOfBounds error - Luc Gorren LDC
*/
! public synchronized void sendKeys(String text) {
// if (text == null) {
***************
*** 3012,3015 ****
--- 3013,3048 ----
/**
+ * Return the whole screen represented as a character array
+ *
+ * @return character array containing the text
+ *
+ * Added by Luc - LDC
+ *
+ * Note to KJP - Have to ask what the difference is between this method
+ * and the other
+ */
+ public char[] getScreenAsAllChars()
+ {
+ char[] sac = new char[lenScreen];
+ char c;
+
+ for (int x = 0; x < lenScreen; x++)
+ {
+ c = screen[x].getChar();
+ // only draw printable characters (in this case >= ' ')
+ if ( (c >= ' ') && (!screen[x].isAttributePlace()) )
+ {
+ sac[x] = c;
+ if (screen[x].underLine && c <= ' ')
+ sac[x] = '_';
+ }
+ else
+ sac[x] = ' ';
+ }
+
+ return sac;
+ }
+
+ /**
*
* Return the screen represented as a character array
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com