rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
planes.setScreenCharAndAttr(lastPos, (char) upper, colorAttr, false); if (gui) { planes.setUseGUI(lastPos,UPPER); } setDirty(lastPos); advancePos();
planes .setScreenCharAndAttr(lastPos, (char) upper, colorAttr, false); if (gui) { planes.setUseGUI(lastPos, UPPER); } setDirty(lastPos); advancePos();
protected void createWindow(int depth, int width, int type, boolean gui, int monoAttr, int colorAttr, int ul, int upper, int ur, int left, int right, int ll, int bottom, int lr) { int c = getCol(lastPos); int w = 0; width++; w = width; // set leading attribute byte// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos, initChar, initAttr, true); setDirty(lastPos); advancePos(); // set upper left// screen[lastPos].setCharAndAttr((char) ul, colorAttr, false); planes.setScreenCharAndAttr(lastPos, (char) ul, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(UPPER_LEFT); planes.setUseGUI(lastPos, UPPER_LEFT); } setDirty(lastPos); advancePos(); // draw top row while (w-- >= 0) {// screen[lastPos].setCharAndAttr((char) upper, colorAttr, false); planes.setScreenCharAndAttr(lastPos, (char) upper, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(UPPER); planes.setUseGUI(lastPos,UPPER); } setDirty(lastPos); advancePos(); } // set upper right// screen[lastPos].setCharAndAttr((char) ur, colorAttr, false); planes.setScreenCharAndAttr(lastPos,(char) ur, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(UPPER_RIGHT); planes.setUseGUI(lastPos, UPPER_RIGHT); } setDirty(lastPos); advancePos(); // set ending attribute byte planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); lastPos = ((getRow(lastPos) + 1) * numCols) + c; // now handle body of window while (depth-- > 0) { // set leading attribute byte planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); advancePos(); // set left planes.setScreenCharAndAttr(lastPos, (char) left, colorAttr, false); if (gui) { planes.setUseGUI(lastPos,GUI_LEFT); } setDirty(lastPos); advancePos(); w = width; // fill it in while (w-- >= 0) {// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true);// screen[lastPos].setUseGUI(NO_GUI); planes.setUseGUI(lastPos,NO_GUI); setDirty(lastPos); advancePos(); } // set right// screen[lastPos].setCharAndAttr((char) right, colorAttr, false); planes.setScreenCharAndAttr(lastPos,(char) right, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(RIGHT); planes.setUseGUI(lastPos,GUI_RIGHT); } setDirty(lastPos); advancePos(); // set ending attribute byte// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); lastPos = ((getRow(lastPos) + 1) * numCols) + c; } // set leading attribute byte// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); advancePos(); // set lower left// screen[lastPos].setCharAndAttr((char) ll, colorAttr, false); planes.setScreenCharAndAttr(lastPos,(char) ll, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(LOWER_LEFT); planes.setUseGUI(lastPos,LOWER_LEFT); } setDirty(lastPos); advancePos(); w = width; // draw bottom row while (w-- >= 0) { planes.setScreenCharAndAttr(lastPos,(char) bottom, colorAttr, false); if (gui) { planes.setUseGUI(lastPos,BOTTOM); } setDirty(lastPos); advancePos(); } // set lower right planes.setScreenCharAndAttr(lastPos, (char) lr, colorAttr, false); if (gui) { planes.setUseGUI(lastPos,LOWER_RIGHT); } setDirty(lastPos); advancePos(); // set ending attribute byte planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
planes.setScreenCharAndAttr(lastPos,(char) ur, colorAttr, false); if (gui) {
planes.setScreenCharAndAttr(lastPos, (char) ur, colorAttr, false); if (gui) {
protected void createWindow(int depth, int width, int type, boolean gui, int monoAttr, int colorAttr, int ul, int upper, int ur, int left, int right, int ll, int bottom, int lr) { int c = getCol(lastPos); int w = 0; width++; w = width; // set leading attribute byte// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos, initChar, initAttr, true); setDirty(lastPos); advancePos(); // set upper left// screen[lastPos].setCharAndAttr((char) ul, colorAttr, false); planes.setScreenCharAndAttr(lastPos, (char) ul, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(UPPER_LEFT); planes.setUseGUI(lastPos, UPPER_LEFT); } setDirty(lastPos); advancePos(); // draw top row while (w-- >= 0) {// screen[lastPos].setCharAndAttr((char) upper, colorAttr, false); planes.setScreenCharAndAttr(lastPos, (char) upper, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(UPPER); planes.setUseGUI(lastPos,UPPER); } setDirty(lastPos); advancePos(); } // set upper right// screen[lastPos].setCharAndAttr((char) ur, colorAttr, false); planes.setScreenCharAndAttr(lastPos,(char) ur, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(UPPER_RIGHT); planes.setUseGUI(lastPos, UPPER_RIGHT); } setDirty(lastPos); advancePos(); // set ending attribute byte planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); lastPos = ((getRow(lastPos) + 1) * numCols) + c; // now handle body of window while (depth-- > 0) { // set leading attribute byte planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); advancePos(); // set left planes.setScreenCharAndAttr(lastPos, (char) left, colorAttr, false); if (gui) { planes.setUseGUI(lastPos,GUI_LEFT); } setDirty(lastPos); advancePos(); w = width; // fill it in while (w-- >= 0) {// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true);// screen[lastPos].setUseGUI(NO_GUI); planes.setUseGUI(lastPos,NO_GUI); setDirty(lastPos); advancePos(); } // set right// screen[lastPos].setCharAndAttr((char) right, colorAttr, false); planes.setScreenCharAndAttr(lastPos,(char) right, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(RIGHT); planes.setUseGUI(lastPos,GUI_RIGHT); } setDirty(lastPos); advancePos(); // set ending attribute byte// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); lastPos = ((getRow(lastPos) + 1) * numCols) + c; } // set leading attribute byte// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); advancePos(); // set lower left// screen[lastPos].setCharAndAttr((char) ll, colorAttr, false); planes.setScreenCharAndAttr(lastPos,(char) ll, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(LOWER_LEFT); planes.setUseGUI(lastPos,LOWER_LEFT); } setDirty(lastPos); advancePos(); w = width; // draw bottom row while (w-- >= 0) { planes.setScreenCharAndAttr(lastPos,(char) bottom, colorAttr, false); if (gui) { planes.setUseGUI(lastPos,BOTTOM); } setDirty(lastPos); advancePos(); } // set lower right planes.setScreenCharAndAttr(lastPos, (char) lr, colorAttr, false); if (gui) { planes.setUseGUI(lastPos,LOWER_RIGHT); } setDirty(lastPos); advancePos(); // set ending attribute byte planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
} setDirty(lastPos);
} setDirty(lastPos);
protected void createWindow(int depth, int width, int type, boolean gui, int monoAttr, int colorAttr, int ul, int upper, int ur, int left, int right, int ll, int bottom, int lr) { int c = getCol(lastPos); int w = 0; width++; w = width; // set leading attribute byte// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos, initChar, initAttr, true); setDirty(lastPos); advancePos(); // set upper left// screen[lastPos].setCharAndAttr((char) ul, colorAttr, false); planes.setScreenCharAndAttr(lastPos, (char) ul, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(UPPER_LEFT); planes.setUseGUI(lastPos, UPPER_LEFT); } setDirty(lastPos); advancePos(); // draw top row while (w-- >= 0) {// screen[lastPos].setCharAndAttr((char) upper, colorAttr, false); planes.setScreenCharAndAttr(lastPos, (char) upper, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(UPPER); planes.setUseGUI(lastPos,UPPER); } setDirty(lastPos); advancePos(); } // set upper right// screen[lastPos].setCharAndAttr((char) ur, colorAttr, false); planes.setScreenCharAndAttr(lastPos,(char) ur, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(UPPER_RIGHT); planes.setUseGUI(lastPos, UPPER_RIGHT); } setDirty(lastPos); advancePos(); // set ending attribute byte planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); lastPos = ((getRow(lastPos) + 1) * numCols) + c; // now handle body of window while (depth-- > 0) { // set leading attribute byte planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); advancePos(); // set left planes.setScreenCharAndAttr(lastPos, (char) left, colorAttr, false); if (gui) { planes.setUseGUI(lastPos,GUI_LEFT); } setDirty(lastPos); advancePos(); w = width; // fill it in while (w-- >= 0) {// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true);// screen[lastPos].setUseGUI(NO_GUI); planes.setUseGUI(lastPos,NO_GUI); setDirty(lastPos); advancePos(); } // set right// screen[lastPos].setCharAndAttr((char) right, colorAttr, false); planes.setScreenCharAndAttr(lastPos,(char) right, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(RIGHT); planes.setUseGUI(lastPos,GUI_RIGHT); } setDirty(lastPos); advancePos(); // set ending attribute byte// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); lastPos = ((getRow(lastPos) + 1) * numCols) + c; } // set leading attribute byte// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); advancePos(); // set lower left// screen[lastPos].setCharAndAttr((char) ll, colorAttr, false); planes.setScreenCharAndAttr(lastPos,(char) ll, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(LOWER_LEFT); planes.setUseGUI(lastPos,LOWER_LEFT); } setDirty(lastPos); advancePos(); w = width; // draw bottom row while (w-- >= 0) { planes.setScreenCharAndAttr(lastPos,(char) bottom, colorAttr, false); if (gui) { planes.setUseGUI(lastPos,BOTTOM); } setDirty(lastPos); advancePos(); } // set lower right planes.setScreenCharAndAttr(lastPos, (char) lr, colorAttr, false); if (gui) { planes.setUseGUI(lastPos,LOWER_RIGHT); } setDirty(lastPos); advancePos(); // set ending attribute byte planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true);
planes.setScreenCharAndAttr(lastPos, initChar, initAttr, true);
protected void createWindow(int depth, int width, int type, boolean gui, int monoAttr, int colorAttr, int ul, int upper, int ur, int left, int right, int ll, int bottom, int lr) { int c = getCol(lastPos); int w = 0; width++; w = width; // set leading attribute byte// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos, initChar, initAttr, true); setDirty(lastPos); advancePos(); // set upper left// screen[lastPos].setCharAndAttr((char) ul, colorAttr, false); planes.setScreenCharAndAttr(lastPos, (char) ul, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(UPPER_LEFT); planes.setUseGUI(lastPos, UPPER_LEFT); } setDirty(lastPos); advancePos(); // draw top row while (w-- >= 0) {// screen[lastPos].setCharAndAttr((char) upper, colorAttr, false); planes.setScreenCharAndAttr(lastPos, (char) upper, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(UPPER); planes.setUseGUI(lastPos,UPPER); } setDirty(lastPos); advancePos(); } // set upper right// screen[lastPos].setCharAndAttr((char) ur, colorAttr, false); planes.setScreenCharAndAttr(lastPos,(char) ur, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(UPPER_RIGHT); planes.setUseGUI(lastPos, UPPER_RIGHT); } setDirty(lastPos); advancePos(); // set ending attribute byte planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); lastPos = ((getRow(lastPos) + 1) * numCols) + c; // now handle body of window while (depth-- > 0) { // set leading attribute byte planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); advancePos(); // set left planes.setScreenCharAndAttr(lastPos, (char) left, colorAttr, false); if (gui) { planes.setUseGUI(lastPos,GUI_LEFT); } setDirty(lastPos); advancePos(); w = width; // fill it in while (w-- >= 0) {// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true);// screen[lastPos].setUseGUI(NO_GUI); planes.setUseGUI(lastPos,NO_GUI); setDirty(lastPos); advancePos(); } // set right// screen[lastPos].setCharAndAttr((char) right, colorAttr, false); planes.setScreenCharAndAttr(lastPos,(char) right, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(RIGHT); planes.setUseGUI(lastPos,GUI_RIGHT); } setDirty(lastPos); advancePos(); // set ending attribute byte// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); lastPos = ((getRow(lastPos) + 1) * numCols) + c; } // set leading attribute byte// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); advancePos(); // set lower left// screen[lastPos].setCharAndAttr((char) ll, colorAttr, false); planes.setScreenCharAndAttr(lastPos,(char) ll, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(LOWER_LEFT); planes.setUseGUI(lastPos,LOWER_LEFT); } setDirty(lastPos); advancePos(); w = width; // draw bottom row while (w-- >= 0) { planes.setScreenCharAndAttr(lastPos,(char) bottom, colorAttr, false); if (gui) { planes.setUseGUI(lastPos,BOTTOM); } setDirty(lastPos); advancePos(); } // set lower right planes.setScreenCharAndAttr(lastPos, (char) lr, colorAttr, false); if (gui) { planes.setUseGUI(lastPos,LOWER_RIGHT); } setDirty(lastPos); advancePos(); // set ending attribute byte planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos);
planes.setScreenCharAndAttr(lastPos, initChar, initAttr, true); setDirty(lastPos);
protected void createWindow(int depth, int width, int type, boolean gui, int monoAttr, int colorAttr, int ul, int upper, int ur, int left, int right, int ll, int bottom, int lr) { int c = getCol(lastPos); int w = 0; width++; w = width; // set leading attribute byte// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos, initChar, initAttr, true); setDirty(lastPos); advancePos(); // set upper left// screen[lastPos].setCharAndAttr((char) ul, colorAttr, false); planes.setScreenCharAndAttr(lastPos, (char) ul, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(UPPER_LEFT); planes.setUseGUI(lastPos, UPPER_LEFT); } setDirty(lastPos); advancePos(); // draw top row while (w-- >= 0) {// screen[lastPos].setCharAndAttr((char) upper, colorAttr, false); planes.setScreenCharAndAttr(lastPos, (char) upper, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(UPPER); planes.setUseGUI(lastPos,UPPER); } setDirty(lastPos); advancePos(); } // set upper right// screen[lastPos].setCharAndAttr((char) ur, colorAttr, false); planes.setScreenCharAndAttr(lastPos,(char) ur, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(UPPER_RIGHT); planes.setUseGUI(lastPos, UPPER_RIGHT); } setDirty(lastPos); advancePos(); // set ending attribute byte planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); lastPos = ((getRow(lastPos) + 1) * numCols) + c; // now handle body of window while (depth-- > 0) { // set leading attribute byte planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); advancePos(); // set left planes.setScreenCharAndAttr(lastPos, (char) left, colorAttr, false); if (gui) { planes.setUseGUI(lastPos,GUI_LEFT); } setDirty(lastPos); advancePos(); w = width; // fill it in while (w-- >= 0) {// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true);// screen[lastPos].setUseGUI(NO_GUI); planes.setUseGUI(lastPos,NO_GUI); setDirty(lastPos); advancePos(); } // set right// screen[lastPos].setCharAndAttr((char) right, colorAttr, false); planes.setScreenCharAndAttr(lastPos,(char) right, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(RIGHT); planes.setUseGUI(lastPos,GUI_RIGHT); } setDirty(lastPos); advancePos(); // set ending attribute byte// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); lastPos = ((getRow(lastPos) + 1) * numCols) + c; } // set leading attribute byte// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); advancePos(); // set lower left// screen[lastPos].setCharAndAttr((char) ll, colorAttr, false); planes.setScreenCharAndAttr(lastPos,(char) ll, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(LOWER_LEFT); planes.setUseGUI(lastPos,LOWER_LEFT); } setDirty(lastPos); advancePos(); w = width; // draw bottom row while (w-- >= 0) { planes.setScreenCharAndAttr(lastPos,(char) bottom, colorAttr, false); if (gui) { planes.setUseGUI(lastPos,BOTTOM); } setDirty(lastPos); advancePos(); } // set lower right planes.setScreenCharAndAttr(lastPos, (char) lr, colorAttr, false); if (gui) { planes.setUseGUI(lastPos,LOWER_RIGHT); } setDirty(lastPos); advancePos(); // set ending attribute byte planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
planes.setUseGUI(lastPos,GUI_LEFT); } setDirty(lastPos);
planes.setUseGUI(lastPos, GUI_LEFT); } setDirty(lastPos);
protected void createWindow(int depth, int width, int type, boolean gui, int monoAttr, int colorAttr, int ul, int upper, int ur, int left, int right, int ll, int bottom, int lr) { int c = getCol(lastPos); int w = 0; width++; w = width; // set leading attribute byte// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos, initChar, initAttr, true); setDirty(lastPos); advancePos(); // set upper left// screen[lastPos].setCharAndAttr((char) ul, colorAttr, false); planes.setScreenCharAndAttr(lastPos, (char) ul, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(UPPER_LEFT); planes.setUseGUI(lastPos, UPPER_LEFT); } setDirty(lastPos); advancePos(); // draw top row while (w-- >= 0) {// screen[lastPos].setCharAndAttr((char) upper, colorAttr, false); planes.setScreenCharAndAttr(lastPos, (char) upper, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(UPPER); planes.setUseGUI(lastPos,UPPER); } setDirty(lastPos); advancePos(); } // set upper right// screen[lastPos].setCharAndAttr((char) ur, colorAttr, false); planes.setScreenCharAndAttr(lastPos,(char) ur, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(UPPER_RIGHT); planes.setUseGUI(lastPos, UPPER_RIGHT); } setDirty(lastPos); advancePos(); // set ending attribute byte planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); lastPos = ((getRow(lastPos) + 1) * numCols) + c; // now handle body of window while (depth-- > 0) { // set leading attribute byte planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); advancePos(); // set left planes.setScreenCharAndAttr(lastPos, (char) left, colorAttr, false); if (gui) { planes.setUseGUI(lastPos,GUI_LEFT); } setDirty(lastPos); advancePos(); w = width; // fill it in while (w-- >= 0) {// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true);// screen[lastPos].setUseGUI(NO_GUI); planes.setUseGUI(lastPos,NO_GUI); setDirty(lastPos); advancePos(); } // set right// screen[lastPos].setCharAndAttr((char) right, colorAttr, false); planes.setScreenCharAndAttr(lastPos,(char) right, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(RIGHT); planes.setUseGUI(lastPos,GUI_RIGHT); } setDirty(lastPos); advancePos(); // set ending attribute byte// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); lastPos = ((getRow(lastPos) + 1) * numCols) + c; } // set leading attribute byte// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); advancePos(); // set lower left// screen[lastPos].setCharAndAttr((char) ll, colorAttr, false); planes.setScreenCharAndAttr(lastPos,(char) ll, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(LOWER_LEFT); planes.setUseGUI(lastPos,LOWER_LEFT); } setDirty(lastPos); advancePos(); w = width; // draw bottom row while (w-- >= 0) { planes.setScreenCharAndAttr(lastPos,(char) bottom, colorAttr, false); if (gui) { planes.setUseGUI(lastPos,BOTTOM); } setDirty(lastPos); advancePos(); } // set lower right planes.setScreenCharAndAttr(lastPos, (char) lr, colorAttr, false); if (gui) { planes.setUseGUI(lastPos,LOWER_RIGHT); } setDirty(lastPos); advancePos(); // set ending attribute byte planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); planes.setUseGUI(lastPos,NO_GUI);
planes.setScreenCharAndAttr(lastPos, initChar, initAttr, true); planes.setUseGUI(lastPos, NO_GUI);
protected void createWindow(int depth, int width, int type, boolean gui, int monoAttr, int colorAttr, int ul, int upper, int ur, int left, int right, int ll, int bottom, int lr) { int c = getCol(lastPos); int w = 0; width++; w = width; // set leading attribute byte// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos, initChar, initAttr, true); setDirty(lastPos); advancePos(); // set upper left// screen[lastPos].setCharAndAttr((char) ul, colorAttr, false); planes.setScreenCharAndAttr(lastPos, (char) ul, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(UPPER_LEFT); planes.setUseGUI(lastPos, UPPER_LEFT); } setDirty(lastPos); advancePos(); // draw top row while (w-- >= 0) {// screen[lastPos].setCharAndAttr((char) upper, colorAttr, false); planes.setScreenCharAndAttr(lastPos, (char) upper, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(UPPER); planes.setUseGUI(lastPos,UPPER); } setDirty(lastPos); advancePos(); } // set upper right// screen[lastPos].setCharAndAttr((char) ur, colorAttr, false); planes.setScreenCharAndAttr(lastPos,(char) ur, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(UPPER_RIGHT); planes.setUseGUI(lastPos, UPPER_RIGHT); } setDirty(lastPos); advancePos(); // set ending attribute byte planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); lastPos = ((getRow(lastPos) + 1) * numCols) + c; // now handle body of window while (depth-- > 0) { // set leading attribute byte planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); advancePos(); // set left planes.setScreenCharAndAttr(lastPos, (char) left, colorAttr, false); if (gui) { planes.setUseGUI(lastPos,GUI_LEFT); } setDirty(lastPos); advancePos(); w = width; // fill it in while (w-- >= 0) {// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true);// screen[lastPos].setUseGUI(NO_GUI); planes.setUseGUI(lastPos,NO_GUI); setDirty(lastPos); advancePos(); } // set right// screen[lastPos].setCharAndAttr((char) right, colorAttr, false); planes.setScreenCharAndAttr(lastPos,(char) right, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(RIGHT); planes.setUseGUI(lastPos,GUI_RIGHT); } setDirty(lastPos); advancePos(); // set ending attribute byte// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); lastPos = ((getRow(lastPos) + 1) * numCols) + c; } // set leading attribute byte// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); advancePos(); // set lower left// screen[lastPos].setCharAndAttr((char) ll, colorAttr, false); planes.setScreenCharAndAttr(lastPos,(char) ll, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(LOWER_LEFT); planes.setUseGUI(lastPos,LOWER_LEFT); } setDirty(lastPos); advancePos(); w = width; // draw bottom row while (w-- >= 0) { planes.setScreenCharAndAttr(lastPos,(char) bottom, colorAttr, false); if (gui) { planes.setUseGUI(lastPos,BOTTOM); } setDirty(lastPos); advancePos(); } // set lower right planes.setScreenCharAndAttr(lastPos, (char) lr, colorAttr, false); if (gui) { planes.setUseGUI(lastPos,LOWER_RIGHT); } setDirty(lastPos); advancePos(); // set ending attribute byte planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
planes.setScreenCharAndAttr(lastPos,(char) right, colorAttr, false); if (gui) { planes.setUseGUI(lastPos,GUI_RIGHT); } setDirty(lastPos);
planes .setScreenCharAndAttr(lastPos, (char) right, colorAttr, false); if (gui) { planes.setUseGUI(lastPos, GUI_RIGHT); } setDirty(lastPos);
protected void createWindow(int depth, int width, int type, boolean gui, int monoAttr, int colorAttr, int ul, int upper, int ur, int left, int right, int ll, int bottom, int lr) { int c = getCol(lastPos); int w = 0; width++; w = width; // set leading attribute byte// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos, initChar, initAttr, true); setDirty(lastPos); advancePos(); // set upper left// screen[lastPos].setCharAndAttr((char) ul, colorAttr, false); planes.setScreenCharAndAttr(lastPos, (char) ul, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(UPPER_LEFT); planes.setUseGUI(lastPos, UPPER_LEFT); } setDirty(lastPos); advancePos(); // draw top row while (w-- >= 0) {// screen[lastPos].setCharAndAttr((char) upper, colorAttr, false); planes.setScreenCharAndAttr(lastPos, (char) upper, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(UPPER); planes.setUseGUI(lastPos,UPPER); } setDirty(lastPos); advancePos(); } // set upper right// screen[lastPos].setCharAndAttr((char) ur, colorAttr, false); planes.setScreenCharAndAttr(lastPos,(char) ur, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(UPPER_RIGHT); planes.setUseGUI(lastPos, UPPER_RIGHT); } setDirty(lastPos); advancePos(); // set ending attribute byte planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); lastPos = ((getRow(lastPos) + 1) * numCols) + c; // now handle body of window while (depth-- > 0) { // set leading attribute byte planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); advancePos(); // set left planes.setScreenCharAndAttr(lastPos, (char) left, colorAttr, false); if (gui) { planes.setUseGUI(lastPos,GUI_LEFT); } setDirty(lastPos); advancePos(); w = width; // fill it in while (w-- >= 0) {// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true);// screen[lastPos].setUseGUI(NO_GUI); planes.setUseGUI(lastPos,NO_GUI); setDirty(lastPos); advancePos(); } // set right// screen[lastPos].setCharAndAttr((char) right, colorAttr, false); planes.setScreenCharAndAttr(lastPos,(char) right, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(RIGHT); planes.setUseGUI(lastPos,GUI_RIGHT); } setDirty(lastPos); advancePos(); // set ending attribute byte// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); lastPos = ((getRow(lastPos) + 1) * numCols) + c; } // set leading attribute byte// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); advancePos(); // set lower left// screen[lastPos].setCharAndAttr((char) ll, colorAttr, false); planes.setScreenCharAndAttr(lastPos,(char) ll, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(LOWER_LEFT); planes.setUseGUI(lastPos,LOWER_LEFT); } setDirty(lastPos); advancePos(); w = width; // draw bottom row while (w-- >= 0) { planes.setScreenCharAndAttr(lastPos,(char) bottom, colorAttr, false); if (gui) { planes.setUseGUI(lastPos,BOTTOM); } setDirty(lastPos); advancePos(); } // set lower right planes.setScreenCharAndAttr(lastPos, (char) lr, colorAttr, false); if (gui) { planes.setUseGUI(lastPos,LOWER_RIGHT); } setDirty(lastPos); advancePos(); // set ending attribute byte planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true);
planes.setScreenCharAndAttr(lastPos, initChar, initAttr, true);
protected void createWindow(int depth, int width, int type, boolean gui, int monoAttr, int colorAttr, int ul, int upper, int ur, int left, int right, int ll, int bottom, int lr) { int c = getCol(lastPos); int w = 0; width++; w = width; // set leading attribute byte// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos, initChar, initAttr, true); setDirty(lastPos); advancePos(); // set upper left// screen[lastPos].setCharAndAttr((char) ul, colorAttr, false); planes.setScreenCharAndAttr(lastPos, (char) ul, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(UPPER_LEFT); planes.setUseGUI(lastPos, UPPER_LEFT); } setDirty(lastPos); advancePos(); // draw top row while (w-- >= 0) {// screen[lastPos].setCharAndAttr((char) upper, colorAttr, false); planes.setScreenCharAndAttr(lastPos, (char) upper, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(UPPER); planes.setUseGUI(lastPos,UPPER); } setDirty(lastPos); advancePos(); } // set upper right// screen[lastPos].setCharAndAttr((char) ur, colorAttr, false); planes.setScreenCharAndAttr(lastPos,(char) ur, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(UPPER_RIGHT); planes.setUseGUI(lastPos, UPPER_RIGHT); } setDirty(lastPos); advancePos(); // set ending attribute byte planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); lastPos = ((getRow(lastPos) + 1) * numCols) + c; // now handle body of window while (depth-- > 0) { // set leading attribute byte planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); advancePos(); // set left planes.setScreenCharAndAttr(lastPos, (char) left, colorAttr, false); if (gui) { planes.setUseGUI(lastPos,GUI_LEFT); } setDirty(lastPos); advancePos(); w = width; // fill it in while (w-- >= 0) {// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true);// screen[lastPos].setUseGUI(NO_GUI); planes.setUseGUI(lastPos,NO_GUI); setDirty(lastPos); advancePos(); } // set right// screen[lastPos].setCharAndAttr((char) right, colorAttr, false); planes.setScreenCharAndAttr(lastPos,(char) right, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(RIGHT); planes.setUseGUI(lastPos,GUI_RIGHT); } setDirty(lastPos); advancePos(); // set ending attribute byte// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); lastPos = ((getRow(lastPos) + 1) * numCols) + c; } // set leading attribute byte// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); advancePos(); // set lower left// screen[lastPos].setCharAndAttr((char) ll, colorAttr, false); planes.setScreenCharAndAttr(lastPos,(char) ll, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(LOWER_LEFT); planes.setUseGUI(lastPos,LOWER_LEFT); } setDirty(lastPos); advancePos(); w = width; // draw bottom row while (w-- >= 0) { planes.setScreenCharAndAttr(lastPos,(char) bottom, colorAttr, false); if (gui) { planes.setUseGUI(lastPos,BOTTOM); } setDirty(lastPos); advancePos(); } // set lower right planes.setScreenCharAndAttr(lastPos, (char) lr, colorAttr, false); if (gui) { planes.setUseGUI(lastPos,LOWER_RIGHT); } setDirty(lastPos); advancePos(); // set ending attribute byte planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos);
planes.setScreenCharAndAttr(lastPos, initChar, initAttr, true); setDirty(lastPos);
protected void createWindow(int depth, int width, int type, boolean gui, int monoAttr, int colorAttr, int ul, int upper, int ur, int left, int right, int ll, int bottom, int lr) { int c = getCol(lastPos); int w = 0; width++; w = width; // set leading attribute byte// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos, initChar, initAttr, true); setDirty(lastPos); advancePos(); // set upper left// screen[lastPos].setCharAndAttr((char) ul, colorAttr, false); planes.setScreenCharAndAttr(lastPos, (char) ul, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(UPPER_LEFT); planes.setUseGUI(lastPos, UPPER_LEFT); } setDirty(lastPos); advancePos(); // draw top row while (w-- >= 0) {// screen[lastPos].setCharAndAttr((char) upper, colorAttr, false); planes.setScreenCharAndAttr(lastPos, (char) upper, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(UPPER); planes.setUseGUI(lastPos,UPPER); } setDirty(lastPos); advancePos(); } // set upper right// screen[lastPos].setCharAndAttr((char) ur, colorAttr, false); planes.setScreenCharAndAttr(lastPos,(char) ur, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(UPPER_RIGHT); planes.setUseGUI(lastPos, UPPER_RIGHT); } setDirty(lastPos); advancePos(); // set ending attribute byte planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); lastPos = ((getRow(lastPos) + 1) * numCols) + c; // now handle body of window while (depth-- > 0) { // set leading attribute byte planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); advancePos(); // set left planes.setScreenCharAndAttr(lastPos, (char) left, colorAttr, false); if (gui) { planes.setUseGUI(lastPos,GUI_LEFT); } setDirty(lastPos); advancePos(); w = width; // fill it in while (w-- >= 0) {// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true);// screen[lastPos].setUseGUI(NO_GUI); planes.setUseGUI(lastPos,NO_GUI); setDirty(lastPos); advancePos(); } // set right// screen[lastPos].setCharAndAttr((char) right, colorAttr, false); planes.setScreenCharAndAttr(lastPos,(char) right, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(RIGHT); planes.setUseGUI(lastPos,GUI_RIGHT); } setDirty(lastPos); advancePos(); // set ending attribute byte// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); lastPos = ((getRow(lastPos) + 1) * numCols) + c; } // set leading attribute byte// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); advancePos(); // set lower left// screen[lastPos].setCharAndAttr((char) ll, colorAttr, false); planes.setScreenCharAndAttr(lastPos,(char) ll, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(LOWER_LEFT); planes.setUseGUI(lastPos,LOWER_LEFT); } setDirty(lastPos); advancePos(); w = width; // draw bottom row while (w-- >= 0) { planes.setScreenCharAndAttr(lastPos,(char) bottom, colorAttr, false); if (gui) { planes.setUseGUI(lastPos,BOTTOM); } setDirty(lastPos); advancePos(); } // set lower right planes.setScreenCharAndAttr(lastPos, (char) lr, colorAttr, false); if (gui) { planes.setUseGUI(lastPos,LOWER_RIGHT); } setDirty(lastPos); advancePos(); // set ending attribute byte planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
planes.setScreenCharAndAttr(lastPos,(char) ll, colorAttr, false); if (gui) { planes.setUseGUI(lastPos,LOWER_LEFT); } setDirty(lastPos);
planes.setScreenCharAndAttr(lastPos, (char) ll, colorAttr, false); if (gui) { planes.setUseGUI(lastPos, LOWER_LEFT); } setDirty(lastPos);
protected void createWindow(int depth, int width, int type, boolean gui, int monoAttr, int colorAttr, int ul, int upper, int ur, int left, int right, int ll, int bottom, int lr) { int c = getCol(lastPos); int w = 0; width++; w = width; // set leading attribute byte// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos, initChar, initAttr, true); setDirty(lastPos); advancePos(); // set upper left// screen[lastPos].setCharAndAttr((char) ul, colorAttr, false); planes.setScreenCharAndAttr(lastPos, (char) ul, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(UPPER_LEFT); planes.setUseGUI(lastPos, UPPER_LEFT); } setDirty(lastPos); advancePos(); // draw top row while (w-- >= 0) {// screen[lastPos].setCharAndAttr((char) upper, colorAttr, false); planes.setScreenCharAndAttr(lastPos, (char) upper, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(UPPER); planes.setUseGUI(lastPos,UPPER); } setDirty(lastPos); advancePos(); } // set upper right// screen[lastPos].setCharAndAttr((char) ur, colorAttr, false); planes.setScreenCharAndAttr(lastPos,(char) ur, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(UPPER_RIGHT); planes.setUseGUI(lastPos, UPPER_RIGHT); } setDirty(lastPos); advancePos(); // set ending attribute byte planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); lastPos = ((getRow(lastPos) + 1) * numCols) + c; // now handle body of window while (depth-- > 0) { // set leading attribute byte planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); advancePos(); // set left planes.setScreenCharAndAttr(lastPos, (char) left, colorAttr, false); if (gui) { planes.setUseGUI(lastPos,GUI_LEFT); } setDirty(lastPos); advancePos(); w = width; // fill it in while (w-- >= 0) {// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true);// screen[lastPos].setUseGUI(NO_GUI); planes.setUseGUI(lastPos,NO_GUI); setDirty(lastPos); advancePos(); } // set right// screen[lastPos].setCharAndAttr((char) right, colorAttr, false); planes.setScreenCharAndAttr(lastPos,(char) right, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(RIGHT); planes.setUseGUI(lastPos,GUI_RIGHT); } setDirty(lastPos); advancePos(); // set ending attribute byte// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); lastPos = ((getRow(lastPos) + 1) * numCols) + c; } // set leading attribute byte// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); advancePos(); // set lower left// screen[lastPos].setCharAndAttr((char) ll, colorAttr, false); planes.setScreenCharAndAttr(lastPos,(char) ll, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(LOWER_LEFT); planes.setUseGUI(lastPos,LOWER_LEFT); } setDirty(lastPos); advancePos(); w = width; // draw bottom row while (w-- >= 0) { planes.setScreenCharAndAttr(lastPos,(char) bottom, colorAttr, false); if (gui) { planes.setUseGUI(lastPos,BOTTOM); } setDirty(lastPos); advancePos(); } // set lower right planes.setScreenCharAndAttr(lastPos, (char) lr, colorAttr, false); if (gui) { planes.setUseGUI(lastPos,LOWER_RIGHT); } setDirty(lastPos); advancePos(); // set ending attribute byte planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
planes.setScreenCharAndAttr(lastPos,(char) bottom, colorAttr, false); if (gui) { planes.setUseGUI(lastPos,BOTTOM); } setDirty(lastPos); advancePos();
planes.setScreenCharAndAttr(lastPos, (char) bottom, colorAttr, false); if (gui) { planes.setUseGUI(lastPos, BOTTOM); } setDirty(lastPos); advancePos();
protected void createWindow(int depth, int width, int type, boolean gui, int monoAttr, int colorAttr, int ul, int upper, int ur, int left, int right, int ll, int bottom, int lr) { int c = getCol(lastPos); int w = 0; width++; w = width; // set leading attribute byte// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos, initChar, initAttr, true); setDirty(lastPos); advancePos(); // set upper left// screen[lastPos].setCharAndAttr((char) ul, colorAttr, false); planes.setScreenCharAndAttr(lastPos, (char) ul, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(UPPER_LEFT); planes.setUseGUI(lastPos, UPPER_LEFT); } setDirty(lastPos); advancePos(); // draw top row while (w-- >= 0) {// screen[lastPos].setCharAndAttr((char) upper, colorAttr, false); planes.setScreenCharAndAttr(lastPos, (char) upper, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(UPPER); planes.setUseGUI(lastPos,UPPER); } setDirty(lastPos); advancePos(); } // set upper right// screen[lastPos].setCharAndAttr((char) ur, colorAttr, false); planes.setScreenCharAndAttr(lastPos,(char) ur, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(UPPER_RIGHT); planes.setUseGUI(lastPos, UPPER_RIGHT); } setDirty(lastPos); advancePos(); // set ending attribute byte planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); lastPos = ((getRow(lastPos) + 1) * numCols) + c; // now handle body of window while (depth-- > 0) { // set leading attribute byte planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); advancePos(); // set left planes.setScreenCharAndAttr(lastPos, (char) left, colorAttr, false); if (gui) { planes.setUseGUI(lastPos,GUI_LEFT); } setDirty(lastPos); advancePos(); w = width; // fill it in while (w-- >= 0) {// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true);// screen[lastPos].setUseGUI(NO_GUI); planes.setUseGUI(lastPos,NO_GUI); setDirty(lastPos); advancePos(); } // set right// screen[lastPos].setCharAndAttr((char) right, colorAttr, false); planes.setScreenCharAndAttr(lastPos,(char) right, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(RIGHT); planes.setUseGUI(lastPos,GUI_RIGHT); } setDirty(lastPos); advancePos(); // set ending attribute byte// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); lastPos = ((getRow(lastPos) + 1) * numCols) + c; } // set leading attribute byte// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); advancePos(); // set lower left// screen[lastPos].setCharAndAttr((char) ll, colorAttr, false); planes.setScreenCharAndAttr(lastPos,(char) ll, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(LOWER_LEFT); planes.setUseGUI(lastPos,LOWER_LEFT); } setDirty(lastPos); advancePos(); w = width; // draw bottom row while (w-- >= 0) { planes.setScreenCharAndAttr(lastPos,(char) bottom, colorAttr, false); if (gui) { planes.setUseGUI(lastPos,BOTTOM); } setDirty(lastPos); advancePos(); } // set lower right planes.setScreenCharAndAttr(lastPos, (char) lr, colorAttr, false); if (gui) { planes.setUseGUI(lastPos,LOWER_RIGHT); } setDirty(lastPos); advancePos(); // set ending attribute byte planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
if (gui) { planes.setUseGUI(lastPos,LOWER_RIGHT); } setDirty(lastPos);
if (gui) { planes.setUseGUI(lastPos, LOWER_RIGHT); } setDirty(lastPos);
protected void createWindow(int depth, int width, int type, boolean gui, int monoAttr, int colorAttr, int ul, int upper, int ur, int left, int right, int ll, int bottom, int lr) { int c = getCol(lastPos); int w = 0; width++; w = width; // set leading attribute byte// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos, initChar, initAttr, true); setDirty(lastPos); advancePos(); // set upper left// screen[lastPos].setCharAndAttr((char) ul, colorAttr, false); planes.setScreenCharAndAttr(lastPos, (char) ul, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(UPPER_LEFT); planes.setUseGUI(lastPos, UPPER_LEFT); } setDirty(lastPos); advancePos(); // draw top row while (w-- >= 0) {// screen[lastPos].setCharAndAttr((char) upper, colorAttr, false); planes.setScreenCharAndAttr(lastPos, (char) upper, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(UPPER); planes.setUseGUI(lastPos,UPPER); } setDirty(lastPos); advancePos(); } // set upper right// screen[lastPos].setCharAndAttr((char) ur, colorAttr, false); planes.setScreenCharAndAttr(lastPos,(char) ur, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(UPPER_RIGHT); planes.setUseGUI(lastPos, UPPER_RIGHT); } setDirty(lastPos); advancePos(); // set ending attribute byte planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); lastPos = ((getRow(lastPos) + 1) * numCols) + c; // now handle body of window while (depth-- > 0) { // set leading attribute byte planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); advancePos(); // set left planes.setScreenCharAndAttr(lastPos, (char) left, colorAttr, false); if (gui) { planes.setUseGUI(lastPos,GUI_LEFT); } setDirty(lastPos); advancePos(); w = width; // fill it in while (w-- >= 0) {// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true);// screen[lastPos].setUseGUI(NO_GUI); planes.setUseGUI(lastPos,NO_GUI); setDirty(lastPos); advancePos(); } // set right// screen[lastPos].setCharAndAttr((char) right, colorAttr, false); planes.setScreenCharAndAttr(lastPos,(char) right, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(RIGHT); planes.setUseGUI(lastPos,GUI_RIGHT); } setDirty(lastPos); advancePos(); // set ending attribute byte// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); lastPos = ((getRow(lastPos) + 1) * numCols) + c; } // set leading attribute byte// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); advancePos(); // set lower left// screen[lastPos].setCharAndAttr((char) ll, colorAttr, false); planes.setScreenCharAndAttr(lastPos,(char) ll, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(LOWER_LEFT); planes.setUseGUI(lastPos,LOWER_LEFT); } setDirty(lastPos); advancePos(); w = width; // draw bottom row while (w-- >= 0) { planes.setScreenCharAndAttr(lastPos,(char) bottom, colorAttr, false); if (gui) { planes.setUseGUI(lastPos,BOTTOM); } setDirty(lastPos); advancePos(); } // set lower right planes.setScreenCharAndAttr(lastPos, (char) lr, colorAttr, false); if (gui) { planes.setUseGUI(lastPos,LOWER_RIGHT); } setDirty(lastPos); advancePos(); // set ending attribute byte planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true);
planes.setScreenCharAndAttr(lastPos, initChar, initAttr, true);
protected void createWindow(int depth, int width, int type, boolean gui, int monoAttr, int colorAttr, int ul, int upper, int ur, int left, int right, int ll, int bottom, int lr) { int c = getCol(lastPos); int w = 0; width++; w = width; // set leading attribute byte// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos, initChar, initAttr, true); setDirty(lastPos); advancePos(); // set upper left// screen[lastPos].setCharAndAttr((char) ul, colorAttr, false); planes.setScreenCharAndAttr(lastPos, (char) ul, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(UPPER_LEFT); planes.setUseGUI(lastPos, UPPER_LEFT); } setDirty(lastPos); advancePos(); // draw top row while (w-- >= 0) {// screen[lastPos].setCharAndAttr((char) upper, colorAttr, false); planes.setScreenCharAndAttr(lastPos, (char) upper, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(UPPER); planes.setUseGUI(lastPos,UPPER); } setDirty(lastPos); advancePos(); } // set upper right// screen[lastPos].setCharAndAttr((char) ur, colorAttr, false); planes.setScreenCharAndAttr(lastPos,(char) ur, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(UPPER_RIGHT); planes.setUseGUI(lastPos, UPPER_RIGHT); } setDirty(lastPos); advancePos(); // set ending attribute byte planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); lastPos = ((getRow(lastPos) + 1) * numCols) + c; // now handle body of window while (depth-- > 0) { // set leading attribute byte planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); advancePos(); // set left planes.setScreenCharAndAttr(lastPos, (char) left, colorAttr, false); if (gui) { planes.setUseGUI(lastPos,GUI_LEFT); } setDirty(lastPos); advancePos(); w = width; // fill it in while (w-- >= 0) {// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true);// screen[lastPos].setUseGUI(NO_GUI); planes.setUseGUI(lastPos,NO_GUI); setDirty(lastPos); advancePos(); } // set right// screen[lastPos].setCharAndAttr((char) right, colorAttr, false); planes.setScreenCharAndAttr(lastPos,(char) right, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(RIGHT); planes.setUseGUI(lastPos,GUI_RIGHT); } setDirty(lastPos); advancePos(); // set ending attribute byte// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); lastPos = ((getRow(lastPos) + 1) * numCols) + c; } // set leading attribute byte// screen[lastPos].setCharAndAttr(initChar, initAttr, true); planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); advancePos(); // set lower left// screen[lastPos].setCharAndAttr((char) ll, colorAttr, false); planes.setScreenCharAndAttr(lastPos,(char) ll, colorAttr, false); if (gui) {// screen[lastPos].setUseGUI(LOWER_LEFT); planes.setUseGUI(lastPos,LOWER_LEFT); } setDirty(lastPos); advancePos(); w = width; // draw bottom row while (w-- >= 0) { planes.setScreenCharAndAttr(lastPos,(char) bottom, colorAttr, false); if (gui) { planes.setUseGUI(lastPos,BOTTOM); } setDirty(lastPos); advancePos(); } // set lower right planes.setScreenCharAndAttr(lastPos, (char) lr, colorAttr, false); if (gui) { planes.setUseGUI(lastPos,LOWER_RIGHT); } setDirty(lastPos); advancePos(); // set ending attribute byte planes.setScreenCharAndAttr(lastPos,initChar, initAttr, true); setDirty(lastPos); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
sessionVT.sendNegResponse2(ec);
sessionVT.sendNegResponse2(ec);
private void displayError(int ec) { saveHomePos = homePos; homePos = lastPos + numCols + 1; pendingInsert = true; sessionVT.sendNegResponse2(ec); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
protected void drawField(ScreenField sf) { int pos = sf.startPos(); int x = sf.length; while (x-- > 0) { setDirty(pos++); } updateDirty(); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
planes.setUseGUI(pos,FIELD_LEFT);
planes.setUseGUI(pos, FIELD_LEFT);
protected void drawFields() { ScreenField sf; int sizeFields = screenFields.getSize(); for (int x = 0; x < sizeFields; x++) { sf = screenFields.getField(x); if (!sf.isBypassField()) { int pos = sf.startPos(); int l = sf.length; boolean f = true; if (l >= lenScreen) l = lenScreen - 1; if (l > 1) { while (l-- > 0) { if (guiInterface && f) { planes.setUseGUI(pos,FIELD_LEFT); f = false; } else { planes.setUseGUI(pos,FIELD_MIDDLE); } if (guiInterface && l == 0) { planes.setUseGUI(pos,FIELD_RIGHT); } pos++; } } else { planes.setUseGUI(pos,FIELD_ONE); } } } }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
planes.setUseGUI(pos,FIELD_MIDDLE);
planes.setUseGUI(pos, FIELD_MIDDLE);
protected void drawFields() { ScreenField sf; int sizeFields = screenFields.getSize(); for (int x = 0; x < sizeFields; x++) { sf = screenFields.getField(x); if (!sf.isBypassField()) { int pos = sf.startPos(); int l = sf.length; boolean f = true; if (l >= lenScreen) l = lenScreen - 1; if (l > 1) { while (l-- > 0) { if (guiInterface && f) { planes.setUseGUI(pos,FIELD_LEFT); f = false; } else { planes.setUseGUI(pos,FIELD_MIDDLE); } if (guiInterface && l == 0) { planes.setUseGUI(pos,FIELD_RIGHT); } pos++; } } else { planes.setUseGUI(pos,FIELD_ONE); } } } }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
planes.setUseGUI(pos,FIELD_RIGHT);
planes.setUseGUI(pos, FIELD_RIGHT);
protected void drawFields() { ScreenField sf; int sizeFields = screenFields.getSize(); for (int x = 0; x < sizeFields; x++) { sf = screenFields.getField(x); if (!sf.isBypassField()) { int pos = sf.startPos(); int l = sf.length; boolean f = true; if (l >= lenScreen) l = lenScreen - 1; if (l > 1) { while (l-- > 0) { if (guiInterface && f) { planes.setUseGUI(pos,FIELD_LEFT); f = false; } else { planes.setUseGUI(pos,FIELD_MIDDLE); } if (guiInterface && l == 0) { planes.setUseGUI(pos,FIELD_RIGHT); } pos++; } } else { planes.setUseGUI(pos,FIELD_ONE); } } } }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
planes.setUseGUI(pos,FIELD_ONE);
planes.setUseGUI(pos, FIELD_ONE);
protected void drawFields() { ScreenField sf; int sizeFields = screenFields.getSize(); for (int x = 0; x < sizeFields; x++) { sf = screenFields.getField(x); if (!sf.isBypassField()) { int pos = sf.startPos(); int l = sf.length; boolean f = true; if (l >= lenScreen) l = lenScreen - 1; if (l > 1) { while (l-- > 0) { if (guiInterface && f) { planes.setUseGUI(pos,FIELD_LEFT); f = false; } else { planes.setUseGUI(pos,FIELD_MIDDLE); } if (guiInterface && l == 0) { planes.setUseGUI(pos,FIELD_RIGHT); } pos++; } } else { planes.setUseGUI(pos,FIELD_ONE); } } } }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
protected void drawFields() { ScreenField sf; int sizeFields = screenFields.getSize(); for (int x = 0; x < sizeFields; x++) { sf = screenFields.getField(x); if (!sf.isBypassField()) { int pos = sf.startPos(); int l = sf.length; boolean f = true; if (l >= lenScreen) l = lenScreen - 1; if (l > 1) { while (l-- > 0) { if (guiInterface && f) { planes.setUseGUI(pos,FIELD_LEFT); f = false; } else { planes.setUseGUI(pos,FIELD_MIDDLE); } if (guiInterface && l == 0) { planes.setUseGUI(pos,FIELD_RIGHT); } pos++; } } else { planes.setUseGUI(pos,FIELD_ONE); } } } }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
public void dumpScreen() { StringBuffer sb = new StringBuffer(); char[] s = getScreenAsChars(); int c = getColumns(); int l = getRows() * c; int col = 0; for (int x = 0; x < l; x++, col++) { sb.append(s[x]); if (col == c) { sb.append('\n'); col = 0; } } System.out.println(sb.toString()); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
private int endOfField(boolean posSpace) { return endOfField(lastPos, posSpace); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
planes.setChar(pos,initChar);
planes.setChar(pos, initChar);
private boolean fieldExit() { int pos = lastPos; boolean mdt = false; int end = endOfField(false); // get the ending position of the first // non blank character in field ScreenField sf = screenFields.getCurrentField(); if (sf.isMandatoryEnter() && end == sf.startPos()) { displayError(ERR_MANDITORY_ENTER); return false; } // get the number of characters to the right int count = (end - sf.startPos()) - sf.getKeyPos(pos); if (count == 0 && sf.isFER()) { mdt = true; return mdt; } for (; count >= 0; count--) {// screen[pos].setChar(initChar); planes.setChar(pos,initChar); setDirty(pos); pos++; mdt = true; } int adj = sf.getAdjustment(); if (adj != 0) { switch (adj) { case 5: rightAdjustField('0'); sf.setRightAdjusted(); break; case 6: rightAdjustField(' '); sf.setRightAdjusted(); break; case 7: sf.setManditoryEntered(); break; } } else { // we need to right adjust signed numeric fields as well. if (sf.isSignedNumeric()) { rightAdjustField(' '); } } return mdt; }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
sf.setRightAdjusted(); break; case 6: rightAdjustField(' ');
private boolean fieldExit() { int pos = lastPos; boolean mdt = false; int end = endOfField(false); // get the ending position of the first // non blank character in field ScreenField sf = screenFields.getCurrentField(); if (sf.isMandatoryEnter() && end == sf.startPos()) { displayError(ERR_MANDITORY_ENTER); return false; } // get the number of characters to the right int count = (end - sf.startPos()) - sf.getKeyPos(pos); if (count == 0 && sf.isFER()) { mdt = true; return mdt; } for (; count >= 0; count--) {// screen[pos].setChar(initChar); planes.setChar(pos,initChar); setDirty(pos); pos++; mdt = true; } int adj = sf.getAdjustment(); if (adj != 0) { switch (adj) { case 5: rightAdjustField('0'); sf.setRightAdjusted(); break; case 6: rightAdjustField(' '); sf.setRightAdjusted(); break; case 7: sf.setManditoryEntered(); break; } } else { // we need to right adjust signed numeric fields as well. if (sf.isSignedNumeric()) { rightAdjustField(' '); } } return mdt; }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
private boolean fieldExit() { int pos = lastPos; boolean mdt = false; int end = endOfField(false); // get the ending position of the first // non blank character in field ScreenField sf = screenFields.getCurrentField(); if (sf.isMandatoryEnter() && end == sf.startPos()) { displayError(ERR_MANDITORY_ENTER); return false; } // get the number of characters to the right int count = (end - sf.startPos()) - sf.getKeyPos(pos); if (count == 0 && sf.isFER()) { mdt = true; return mdt; } for (; count >= 0; count--) {// screen[pos].setChar(initChar); planes.setChar(pos,initChar); setDirty(pos); pos++; mdt = true; } int adj = sf.getAdjustment(); if (adj != 0) { switch (adj) { case 5: rightAdjustField('0'); sf.setRightAdjusted(); break; case 6: rightAdjustField(' '); sf.setRightAdjusted(); break; case 7: sf.setManditoryEntered(); break; } } else { // we need to right adjust signed numeric fields as well. if (sf.isSignedNumeric()) { rightAdjustField(' '); } } return mdt; }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
int startRow = getRow(lastPos); int startCol = getCol(lastPos);
private synchronized void fireCursorChanged(int update) { int startRow = getRow(lastPos); int startCol = getCol(lastPos); if (listeners != null) { int size = listeners.size(); for (int i = 0; i < size; i++) { ScreenListener target = (ScreenListener)listeners.elementAt(i); target.onScreenChanged(update,startRow,startCol,startRow,startCol); } } }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
if (listeners != null) { int size = listeners.size(); for (int i = 0; i < size; i++) { ScreenListener target = (ScreenListener)listeners.elementAt(i); target.onScreenChanged(update,startRow,startCol,startRow,startCol); } } }
int startRow = getRow(lastPos); int startCol = getCol(lastPos); if (listeners != null) { int size = listeners.size(); for (int i = 0; i < size; i++) { ScreenListener target = (ScreenListener) listeners.elementAt(i); target.onScreenChanged(update, startRow, startCol, startRow, startCol); } } }
private synchronized void fireCursorChanged(int update) { int startRow = getRow(lastPos); int startCol = getCol(lastPos); if (listeners != null) { int size = listeners.size(); for (int i = 0; i < size; i++) { ScreenListener target = (ScreenListener)listeners.elementAt(i); target.onScreenChanged(update,startRow,startCol,startRow,startCol); } } }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
int endRow, int endCol) {
private void fireScreenChanged(int which, int startRow, int startCol, int endRow, int endCol) { if (listeners != null) { int size = listeners.size(); for (int i = 0; i < size; i++) { ScreenListener target = (ScreenListener)listeners.elementAt(i); target.onScreenChanged(1,startRow,startCol,endRow,endCol); } } dirtyScreen.setBounds(lenScreen,0,0,0); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
if (listeners != null) { int size = listeners.size(); for (int i = 0; i < size; i++) { ScreenListener target = (ScreenListener)listeners.elementAt(i); target.onScreenChanged(1,startRow,startCol,endRow,endCol); } } dirtyScreen.setBounds(lenScreen,0,0,0); }
int endRow, int endCol) { if (listeners != null) { int size = listeners.size(); for (int i = 0; i < size; i++) { ScreenListener target = (ScreenListener) listeners.elementAt(i); target.onScreenChanged(1, startRow, startCol, endRow, endCol); } } dirtyScreen.setBounds(lenScreen, 0, 0, 0); }
private void fireScreenChanged(int which, int startRow, int startCol, int endRow, int endCol) { if (listeners != null) { int size = listeners.size(); for (int i = 0; i < size; i++) { ScreenListener target = (ScreenListener)listeners.elementAt(i); target.onScreenChanged(1,startRow,startCol,endRow,endCol); } } dirtyScreen.setBounds(lenScreen,0,0,0); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
if (listeners != null) { int size = listeners.size(); for (int i = 0; i < size; i++) { ScreenListener target = (ScreenListener)listeners.elementAt(i); target.onScreenSizeChanged(numRows,numCols); } } }
if (listeners != null) { int size = listeners.size(); for (int i = 0; i < size; i++) { ScreenListener target = (ScreenListener) listeners.elementAt(i); target.onScreenSizeChanged(numRows, numCols); } } }
private void fireScreenSizeChanged() { if (listeners != null) { int size = listeners.size(); for (int i = 0; i < size; i++) { ScreenListener target = (ScreenListener)listeners.elementAt(i); target.onScreenSizeChanged(numRows,numCols); } } }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
return sessionVT.getActiveAidKeys(); }
return sessionVT.getActiveAidKeys(); }
public synchronized boolean[] getActiveAidKeys() { return sessionVT.getActiveAidKeys(); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
public char[] getCharacters() { return planes.screen; }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
public int getCol(int pos) { // if (pos == 0) // return 1; int col = pos % (getColumns()); if (col > 0) return col; else return 0; }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
public char[] getData(int startRow, int startCol, int endRow, int endCol, int plane) { try { int from = getPos(startRow,startCol); int to = getPos(endRow,endCol); if (from > to) {
public char[] getData(int startRow, int startCol, int endRow, int endCol, int plane) {
public char[] getData(int startRow, int startCol, int endRow, int endCol, int plane) { try { int from = getPos(startRow,startCol); int to = getPos(endRow,endCol); if (from > to) { int f = from; to = f; from = f; } return planes.getPlaneData(from,to,plane); } catch (Exception oe) { return null; } }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
int f = from; to = f; from = f; } return planes.getPlaneData(from,to,plane); } catch (Exception oe) { return null; }
try {
public char[] getData(int startRow, int startCol, int endRow, int endCol, int plane) { try { int from = getPos(startRow,startCol); int to = getPos(endRow,endCol); if (from > to) { int f = from; to = f; from = f; } return planes.getPlaneData(from,to,plane); } catch (Exception oe) { return null; } }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
}
int from = getPos(startRow, startCol); int to = getPos(endRow, endCol); if (from > to) { int f = from; to = f; from = f; } return planes.getPlaneData(from, to, plane); } catch (Exception oe) { return null; } }
public char[] getData(int startRow, int startCol, int endRow, int endCol, int plane) { try { int from = getPos(startRow,startCol); int to = getPos(endRow,endCol); if (from > to) { int f = from; to = f; from = f; } return planes.getPlaneData(from,to,plane); } catch (Exception oe) { return null; } }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
protected int getErrorLine() { return planes.getErrorLine(); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
public StringBuffer getHSBottom() { return hsBottom; }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
public StringBuffer getHSMore() { return hsMore; }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
public String getKeys() { String result = this.keybuf.toString(); this.keybuf = new StringBuffer(); return result; }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
private int getMnemonicValue(String mnem) { for (int x = 0; x < mnemonicData.length; x++) { if (mnemonicData[x].equals(mnem)) return mnemonicValue[x]; } return 0; }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
return oia; }
return oia; }
public final ScreenOIA getOIA() { return oia; }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
return planes; }
return planes; }
protected ScreenPlanes getPlanes() { return planes; }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
public int getPos(int row, int col) { return (row * numCols) + col; }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
public int getRow(int pos) { // if (pos == 0) // return 1; int row = pos / numCols; if (row < 0) { row = lastPos / numCols; } if (row > lenScreen - 1) row = lenScreen - 1; return row; }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
c = planes.getChar(x);
c = planes.getChar(x);
public char[] getScreenAsAllChars() { char[] sac = new char[lenScreen]; char c; for (int x = 0; x < lenScreen; x++) { c = planes.getChar(x); // only draw printable characters (in this case >= ' ') if ((c >= ' ') && (!planes.isAttributePlace(x))) { sac[x] = c; // TODO: implement the underline check here// if (screen[x].underLine && c <= ' ')// sac[x] = '_'; } else sac[x] = ' '; } return sac; }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
public char[] getScreenAsAllChars() { char[] sac = new char[lenScreen]; char c; for (int x = 0; x < lenScreen; x++) { c = planes.getChar(x); // only draw printable characters (in this case >= ' ') if ((c >= ' ') && (!planes.isAttributePlace(x))) { sac[x] = c; // TODO: implement the underline check here// if (screen[x].underLine && c <= ' ')// sac[x] = '_'; } else sac[x] = ' '; } return sac; }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
public char[] getScreenAsAllChars() { char[] sac = new char[lenScreen]; char c; for (int x = 0; x < lenScreen; x++) { c = planes.getChar(x); // only draw printable characters (in this case >= ' ') if ((c >= ' ') && (!planes.isAttributePlace(x))) { sac[x] = c; // TODO: implement the underline check here// if (screen[x].underLine && c <= ' ')// sac[x] = '_'; } else sac[x] = ' '; } return sac; }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
c = planes.getChar(x);
c = planes.getChar(x);
public char[] getScreenAsChars() { char[] sac = new char[lenScreen]; char c; for (int x = 0; x < lenScreen; x++) { c = planes.getChar(x); // only draw printable characters (in this case >= ' ') if ((c >= ' ') && (!planes.isAttributePlace(x))) { sac[x] = c; // TODO: implement the underline check here// if (screen[x].underLine && c <= ' ')// sac[x] = '_'; } else sac[x] = ' '; } return sac; }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
public char[] getScreenAsChars() { char[] sac = new char[lenScreen]; char c; for (int x = 0; x < lenScreen; x++) { c = planes.getChar(x); // only draw printable characters (in this case >= ' ') if ((c >= ' ') && (!planes.isAttributePlace(x))) { sac[x] = c; // TODO: implement the underline check here// if (screen[x].underLine && c <= ' ')// sac[x] = '_'; } else sac[x] = ' '; } return sac; }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
public char[] getScreenAsChars() { char[] sac = new char[lenScreen]; char c; for (int x = 0; x < lenScreen; x++) { c = planes.getChar(x); // only draw printable characters (in this case >= ' ') if ((c >= ' ') && (!planes.isAttributePlace(x))) { sac[x] = c; // TODO: implement the underline check here// if (screen[x].underLine && c <= ' ')// sac[x] = '_'; } else sac[x] = ' '; } return sac; }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
public ScreenFields getScreenFields() { return screenFields; }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
public int getScreenLength() { return lenScreen; }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
protected void goHome() { // now we try to move to first input field according to // 14.6 WRITE TO DISPLAY Command // ? If the WTD command is valid, after the command is processed, // the cursor moves to one of three locations: // - The location set by an insert cursor order (unless control // character byte 1, bit 1 is equal to B'1'.) // - The start of the first non-bypass input field defined in the // format table // - A default starting address of row 1 column 1. if (pendingInsert && homePos > 0) { setCursor(getRow(homePos), getCol(homePos)); isInField(); // we now check if we are in a field } else { if (!gotoField(1)) { homePos = getPos(1, 1); setCursor(1, 1); isInField(0, 0); // we now check if we are in a field } else { homePos = getPos(getCurrentRow(), getCurrentCol()); } } }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
public boolean gotoField(int f) { int sizeFields = screenFields.getSize(); if (f > sizeFields || f <= 0) return false; screenFields.setCurrentField(screenFields.getField(f - 1)); while (screenFields.isCurrentFieldBypassField() && f < sizeFields) { screenFields.setCurrentField(screenFields.getField(f++)); } return gotoField(screenFields.getCurrentField()); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
private void gotoFieldNext() { if (screenFields.isCurrentFieldHighlightedEntry()) unsetFieldHighlighted(screenFields.getCurrentField()); screenFields.gotoFieldNext(); if (screenFields.isCurrentFieldHighlightedEntry()) setFieldHighlighted(screenFields.getCurrentField()); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
private void gotoFieldPrev() { if (screenFields.isCurrentFieldHighlightedEntry()) unsetFieldHighlighted(screenFields.getCurrentField()); screenFields.gotoFieldPrev(); if (screenFields.isCurrentFieldHighlightedEntry()) setFieldHighlighted(screenFields.getCurrentField()); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
private void gotoNextWord() { int pos = lastPos; if (planes.getChar(lastPos) > ' ') { advancePos(); // get the next space character while (planes.getChar(lastPos) > ' ' && pos != lastPos) { advancePos(); } } else advancePos(); // now that we are positioned on the next space character get the // next none space character while (planes.getChar(lastPos) <= ' ' && pos != lastPos) { advancePos(); } }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
private void gotoPrevWord() { int pos = lastPos; changePos(-1); // position previous white space character while (planes.getChar(lastPos) <= ' ') { changePos(-1); if (pos == lastPos) break; } changePos(-1); // get the previous space character while (planes.getChar(lastPos) > ' ' && pos != lastPos) { changePos(-1); } // and position one position more should give us the beginning of word advancePos(); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
protected void goto_XY(int pos) { // setCursorOff(); updateCursorLoc(); lastPos = pos; // setCursorOn(); updateCursorLoc(); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
return cursorActive;
public boolean isCursorActive() { return cursorActive; }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
}
return cursorActive; }
public boolean isCursorActive() { return cursorActive; }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
return cursorShown; }
return cursorShown; }
public boolean isCursorShown() { return cursorShown; }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
protected boolean isInField() { return isInField(lastPos, true); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
public boolean isUsingGuiInterface() { return guiInterface; }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
oia = new ScreenOIA(this); oia.setKeyBoardLocked(true);
oia = new ScreenOIA(this); oia.setKeyBoardLocked(true);
void jbInit() throws Exception { lastAttr = 32; // default number of rows and columns numRows = 24; numCols = 80; setCursor(1, 1); // set initial cursor position restriction = new Rectangle(0, 0); updateCursorLoc = false; oia = new ScreenOIA(this); oia.setKeyBoardLocked(true); lenScreen = numRows * numCols; planes = new ScreenPlanes(this,numRows); screenFields = new ScreenFields(this); strokenizer = new KeyStrokenizer(); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
planes = new ScreenPlanes(this,numRows);
planes = new ScreenPlanes(this, numRows);
void jbInit() throws Exception { lastAttr = 32; // default number of rows and columns numRows = 24; numCols = 80; setCursor(1, 1); // set initial cursor position restriction = new Rectangle(0, 0); updateCursorLoc = false; oia = new ScreenOIA(this); oia.setKeyBoardLocked(true); lenScreen = numRows * numCols; planes = new ScreenPlanes(this,numRows); screenFields = new ScreenFields(this); strokenizer = new KeyStrokenizer(); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
void jbInit() throws Exception { lastAttr = 32; // default number of rows and columns numRows = 24; numCols = 80; setCursor(1, 1); // set initial cursor position restriction = new Rectangle(0, 0); updateCursorLoc = false; oia = new ScreenOIA(this); oia.setKeyBoardLocked(true); lenScreen = numRows * numCols; planes = new ScreenPlanes(this,numRows); screenFields = new ScreenFields(this); strokenizer = new KeyStrokenizer(); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
int g = planes.getWhichGUI(pos);
int g = planes.getWhichGUI(pos);
public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g >= BUTTON_LEFT && g <= BUTTON_LAST) { StringBuffer aid = new StringBuffer(); boolean aidFlag = true; switch (g) { case BUTTON_RIGHT: case BUTTON_MIDDLE: while (planes.getWhichGUI(--pos) != BUTTON_LEFT) { } case BUTTON_LEFT: if (planes.getChar(pos) == 'F') { pos++; } else aidFlag = false; if (planes.getChar(pos + 1) != '=' && planes.getChar(pos + 1) != '.' && planes.getChar(pos + 1) != '/') { // System.out.println(" Hotspot clicked!!! we will send // characters " + // screen[pos].getChar() + // screen[pos+1].getChar()); aid.append(planes.getChar(pos)); aid.append(planes.getChar(pos + 1)); } else { log.debug(" Hotspot clicked!!! we will send character " + planes.getChar(pos)); aid.append(planes.getChar(pos)); } break; } if (aidFlag) { switch (g) { case BUTTON_LEFT_UP: case BUTTON_MIDDLE_UP: case BUTTON_RIGHT_UP: case BUTTON_ONE_UP: case BUTTON_SB_UP: case BUTTON_SB_GUIDE: sessionVT.sendAidKey(tnvt.AID_ROLL_UP); break; case BUTTON_LEFT_DN: case BUTTON_MIDDLE_DN: case BUTTON_RIGHT_DN: case BUTTON_ONE_DN: case BUTTON_SB_DN: case BUTTON_SB_THUMB: sessionVT.sendAidKey(tnvt.AID_ROLL_DOWN); break; case BUTTON_LEFT_EB: case BUTTON_MIDDLE_EB: case BUTTON_RIGHT_EB: StringBuffer eb = new StringBuffer(); while (planes.getWhichGUI(pos--) != BUTTON_LEFT_EB) ; while (planes.getWhichGUI(pos++) != BUTTON_RIGHT_EB) { eb.append(planes.getChar(pos)); } 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()); break; default: int aidKey = Integer.parseInt(aid.toString()); if (aidKey >= 1 && aidKey <= 12) sessionVT.sendAidKey(0x30 + aidKey); if (aidKey >= 13 && aidKey <= 24) sessionVT.sendAidKey(0xB0 + (aidKey - 12)); } } else { if (screenFields.getCurrentField() != null) { int xPos = screenFields.getCurrentField().startPos(); for (int x = 0; x < aid.length(); x++) { // System.out.println(sr + "," + (sc + x) + " " + // aid.charAt(x)); planes.setChar(xPos + x , aid.charAt(x)); } // System.out.println(aid); screenFields.setCurrentFieldMDT(); sessionVT.sendAidKey(tnvt.AID_ENTER); } } // return back to the calling routine that the cursor was not moved // but something else here was done like aid keys or the such return false; } else { // this is a note to not execute this code here when we // implement // the remain after edit function option.// if (gui.rubberband.isAreaSelected()) {// gui.rubberband.reset();// gui.repaint();// } else { goto_XY(pos); isInField(lastPos); // return back to the calling object that the cursor was indeed // moved with in the screen object return true;// } } } return false; }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
}
}
public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g >= BUTTON_LEFT && g <= BUTTON_LAST) { StringBuffer aid = new StringBuffer(); boolean aidFlag = true; switch (g) { case BUTTON_RIGHT: case BUTTON_MIDDLE: while (planes.getWhichGUI(--pos) != BUTTON_LEFT) { } case BUTTON_LEFT: if (planes.getChar(pos) == 'F') { pos++; } else aidFlag = false; if (planes.getChar(pos + 1) != '=' && planes.getChar(pos + 1) != '.' && planes.getChar(pos + 1) != '/') { // System.out.println(" Hotspot clicked!!! we will send // characters " + // screen[pos].getChar() + // screen[pos+1].getChar()); aid.append(planes.getChar(pos)); aid.append(planes.getChar(pos + 1)); } else { log.debug(" Hotspot clicked!!! we will send character " + planes.getChar(pos)); aid.append(planes.getChar(pos)); } break; } if (aidFlag) { switch (g) { case BUTTON_LEFT_UP: case BUTTON_MIDDLE_UP: case BUTTON_RIGHT_UP: case BUTTON_ONE_UP: case BUTTON_SB_UP: case BUTTON_SB_GUIDE: sessionVT.sendAidKey(tnvt.AID_ROLL_UP); break; case BUTTON_LEFT_DN: case BUTTON_MIDDLE_DN: case BUTTON_RIGHT_DN: case BUTTON_ONE_DN: case BUTTON_SB_DN: case BUTTON_SB_THUMB: sessionVT.sendAidKey(tnvt.AID_ROLL_DOWN); break; case BUTTON_LEFT_EB: case BUTTON_MIDDLE_EB: case BUTTON_RIGHT_EB: StringBuffer eb = new StringBuffer(); while (planes.getWhichGUI(pos--) != BUTTON_LEFT_EB) ; while (planes.getWhichGUI(pos++) != BUTTON_RIGHT_EB) { eb.append(planes.getChar(pos)); } 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()); break; default: int aidKey = Integer.parseInt(aid.toString()); if (aidKey >= 1 && aidKey <= 12) sessionVT.sendAidKey(0x30 + aidKey); if (aidKey >= 13 && aidKey <= 24) sessionVT.sendAidKey(0xB0 + (aidKey - 12)); } } else { if (screenFields.getCurrentField() != null) { int xPos = screenFields.getCurrentField().startPos(); for (int x = 0; x < aid.length(); x++) { // System.out.println(sr + "," + (sc + x) + " " + // aid.charAt(x)); planes.setChar(xPos + x , aid.charAt(x)); } // System.out.println(aid); screenFields.setCurrentFieldMDT(); sessionVT.sendAidKey(tnvt.AID_ENTER); } } // return back to the calling routine that the cursor was not moved // but something else here was done like aid keys or the such return false; } else { // this is a note to not execute this code here when we // implement // the remain after edit function option.// if (gui.rubberband.isAreaSelected()) {// gui.rubberband.reset();// gui.repaint();// } else { goto_XY(pos); isInField(lastPos); // return back to the calling object that the cursor was indeed // moved with in the screen object return true;// } } } return false; }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
&& planes.getChar(pos + 1) != '.' && planes.getChar(pos + 1) != '/') {
&& planes.getChar(pos + 1) != '.' && planes.getChar(pos + 1) != '/') {
public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g >= BUTTON_LEFT && g <= BUTTON_LAST) { StringBuffer aid = new StringBuffer(); boolean aidFlag = true; switch (g) { case BUTTON_RIGHT: case BUTTON_MIDDLE: while (planes.getWhichGUI(--pos) != BUTTON_LEFT) { } case BUTTON_LEFT: if (planes.getChar(pos) == 'F') { pos++; } else aidFlag = false; if (planes.getChar(pos + 1) != '=' && planes.getChar(pos + 1) != '.' && planes.getChar(pos + 1) != '/') { // System.out.println(" Hotspot clicked!!! we will send // characters " + // screen[pos].getChar() + // screen[pos+1].getChar()); aid.append(planes.getChar(pos)); aid.append(planes.getChar(pos + 1)); } else { log.debug(" Hotspot clicked!!! we will send character " + planes.getChar(pos)); aid.append(planes.getChar(pos)); } break; } if (aidFlag) { switch (g) { case BUTTON_LEFT_UP: case BUTTON_MIDDLE_UP: case BUTTON_RIGHT_UP: case BUTTON_ONE_UP: case BUTTON_SB_UP: case BUTTON_SB_GUIDE: sessionVT.sendAidKey(tnvt.AID_ROLL_UP); break; case BUTTON_LEFT_DN: case BUTTON_MIDDLE_DN: case BUTTON_RIGHT_DN: case BUTTON_ONE_DN: case BUTTON_SB_DN: case BUTTON_SB_THUMB: sessionVT.sendAidKey(tnvt.AID_ROLL_DOWN); break; case BUTTON_LEFT_EB: case BUTTON_MIDDLE_EB: case BUTTON_RIGHT_EB: StringBuffer eb = new StringBuffer(); while (planes.getWhichGUI(pos--) != BUTTON_LEFT_EB) ; while (planes.getWhichGUI(pos++) != BUTTON_RIGHT_EB) { eb.append(planes.getChar(pos)); } 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()); break; default: int aidKey = Integer.parseInt(aid.toString()); if (aidKey >= 1 && aidKey <= 12) sessionVT.sendAidKey(0x30 + aidKey); if (aidKey >= 13 && aidKey <= 24) sessionVT.sendAidKey(0xB0 + (aidKey - 12)); } } else { if (screenFields.getCurrentField() != null) { int xPos = screenFields.getCurrentField().startPos(); for (int x = 0; x < aid.length(); x++) { // System.out.println(sr + "," + (sc + x) + " " + // aid.charAt(x)); planes.setChar(xPos + x , aid.charAt(x)); } // System.out.println(aid); screenFields.setCurrentFieldMDT(); sessionVT.sendAidKey(tnvt.AID_ENTER); } } // return back to the calling routine that the cursor was not moved // but something else here was done like aid keys or the such return false; } else { // this is a note to not execute this code here when we // implement // the remain after edit function option.// if (gui.rubberband.isAreaSelected()) {// gui.rubberband.reset();// gui.repaint();// } else { goto_XY(pos); isInField(lastPos); // return back to the calling object that the cursor was indeed // moved with in the screen object return true;// } } } return false; }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
+ planes.getChar(pos));
+ planes.getChar(pos));
public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g >= BUTTON_LEFT && g <= BUTTON_LAST) { StringBuffer aid = new StringBuffer(); boolean aidFlag = true; switch (g) { case BUTTON_RIGHT: case BUTTON_MIDDLE: while (planes.getWhichGUI(--pos) != BUTTON_LEFT) { } case BUTTON_LEFT: if (planes.getChar(pos) == 'F') { pos++; } else aidFlag = false; if (planes.getChar(pos + 1) != '=' && planes.getChar(pos + 1) != '.' && planes.getChar(pos + 1) != '/') { // System.out.println(" Hotspot clicked!!! we will send // characters " + // screen[pos].getChar() + // screen[pos+1].getChar()); aid.append(planes.getChar(pos)); aid.append(planes.getChar(pos + 1)); } else { log.debug(" Hotspot clicked!!! we will send character " + planes.getChar(pos)); aid.append(planes.getChar(pos)); } break; } if (aidFlag) { switch (g) { case BUTTON_LEFT_UP: case BUTTON_MIDDLE_UP: case BUTTON_RIGHT_UP: case BUTTON_ONE_UP: case BUTTON_SB_UP: case BUTTON_SB_GUIDE: sessionVT.sendAidKey(tnvt.AID_ROLL_UP); break; case BUTTON_LEFT_DN: case BUTTON_MIDDLE_DN: case BUTTON_RIGHT_DN: case BUTTON_ONE_DN: case BUTTON_SB_DN: case BUTTON_SB_THUMB: sessionVT.sendAidKey(tnvt.AID_ROLL_DOWN); break; case BUTTON_LEFT_EB: case BUTTON_MIDDLE_EB: case BUTTON_RIGHT_EB: StringBuffer eb = new StringBuffer(); while (planes.getWhichGUI(pos--) != BUTTON_LEFT_EB) ; while (planes.getWhichGUI(pos++) != BUTTON_RIGHT_EB) { eb.append(planes.getChar(pos)); } 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()); break; default: int aidKey = Integer.parseInt(aid.toString()); if (aidKey >= 1 && aidKey <= 12) sessionVT.sendAidKey(0x30 + aidKey); if (aidKey >= 13 && aidKey <= 24) sessionVT.sendAidKey(0xB0 + (aidKey - 12)); } } else { if (screenFields.getCurrentField() != null) { int xPos = screenFields.getCurrentField().startPos(); for (int x = 0; x < aid.length(); x++) { // System.out.println(sr + "," + (sc + x) + " " + // aid.charAt(x)); planes.setChar(xPos + x , aid.charAt(x)); } // System.out.println(aid); screenFields.setCurrentFieldMDT(); sessionVT.sendAidKey(tnvt.AID_ENTER); } } // return back to the calling routine that the cursor was not moved // but something else here was done like aid keys or the such return false; } else { // this is a note to not execute this code here when we // implement // the remain after edit function option.// if (gui.rubberband.isAreaSelected()) {// gui.rubberband.reset();// gui.repaint();// } else { goto_XY(pos); isInField(lastPos); // return back to the calling object that the cursor was indeed // moved with in the screen object return true;// } } } return false; }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
}
}
public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g >= BUTTON_LEFT && g <= BUTTON_LAST) { StringBuffer aid = new StringBuffer(); boolean aidFlag = true; switch (g) { case BUTTON_RIGHT: case BUTTON_MIDDLE: while (planes.getWhichGUI(--pos) != BUTTON_LEFT) { } case BUTTON_LEFT: if (planes.getChar(pos) == 'F') { pos++; } else aidFlag = false; if (planes.getChar(pos + 1) != '=' && planes.getChar(pos + 1) != '.' && planes.getChar(pos + 1) != '/') { // System.out.println(" Hotspot clicked!!! we will send // characters " + // screen[pos].getChar() + // screen[pos+1].getChar()); aid.append(planes.getChar(pos)); aid.append(planes.getChar(pos + 1)); } else { log.debug(" Hotspot clicked!!! we will send character " + planes.getChar(pos)); aid.append(planes.getChar(pos)); } break; } if (aidFlag) { switch (g) { case BUTTON_LEFT_UP: case BUTTON_MIDDLE_UP: case BUTTON_RIGHT_UP: case BUTTON_ONE_UP: case BUTTON_SB_UP: case BUTTON_SB_GUIDE: sessionVT.sendAidKey(tnvt.AID_ROLL_UP); break; case BUTTON_LEFT_DN: case BUTTON_MIDDLE_DN: case BUTTON_RIGHT_DN: case BUTTON_ONE_DN: case BUTTON_SB_DN: case BUTTON_SB_THUMB: sessionVT.sendAidKey(tnvt.AID_ROLL_DOWN); break; case BUTTON_LEFT_EB: case BUTTON_MIDDLE_EB: case BUTTON_RIGHT_EB: StringBuffer eb = new StringBuffer(); while (planes.getWhichGUI(pos--) != BUTTON_LEFT_EB) ; while (planes.getWhichGUI(pos++) != BUTTON_RIGHT_EB) { eb.append(planes.getChar(pos)); } 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()); break; default: int aidKey = Integer.parseInt(aid.toString()); if (aidKey >= 1 && aidKey <= 12) sessionVT.sendAidKey(0x30 + aidKey); if (aidKey >= 13 && aidKey <= 24) sessionVT.sendAidKey(0xB0 + (aidKey - 12)); } } else { if (screenFields.getCurrentField() != null) { int xPos = screenFields.getCurrentField().startPos(); for (int x = 0; x < aid.length(); x++) { // System.out.println(sr + "," + (sc + x) + " " + // aid.charAt(x)); planes.setChar(xPos + x , aid.charAt(x)); } // System.out.println(aid); screenFields.setCurrentFieldMDT(); sessionVT.sendAidKey(tnvt.AID_ENTER); } } // return back to the calling routine that the cursor was not moved // but something else here was done like aid keys or the such return false; } else { // this is a note to not execute this code here when we // implement // the remain after edit function option.// if (gui.rubberband.isAreaSelected()) {// gui.rubberband.reset();// gui.repaint();// } else { goto_XY(pos); isInField(lastPos); // return back to the calling object that the cursor was indeed // moved with in the screen object return true;// } } } return false; }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
.toString());
.toString());
public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g >= BUTTON_LEFT && g <= BUTTON_LAST) { StringBuffer aid = new StringBuffer(); boolean aidFlag = true; switch (g) { case BUTTON_RIGHT: case BUTTON_MIDDLE: while (planes.getWhichGUI(--pos) != BUTTON_LEFT) { } case BUTTON_LEFT: if (planes.getChar(pos) == 'F') { pos++; } else aidFlag = false; if (planes.getChar(pos + 1) != '=' && planes.getChar(pos + 1) != '.' && planes.getChar(pos + 1) != '/') { // System.out.println(" Hotspot clicked!!! we will send // characters " + // screen[pos].getChar() + // screen[pos+1].getChar()); aid.append(planes.getChar(pos)); aid.append(planes.getChar(pos + 1)); } else { log.debug(" Hotspot clicked!!! we will send character " + planes.getChar(pos)); aid.append(planes.getChar(pos)); } break; } if (aidFlag) { switch (g) { case BUTTON_LEFT_UP: case BUTTON_MIDDLE_UP: case BUTTON_RIGHT_UP: case BUTTON_ONE_UP: case BUTTON_SB_UP: case BUTTON_SB_GUIDE: sessionVT.sendAidKey(tnvt.AID_ROLL_UP); break; case BUTTON_LEFT_DN: case BUTTON_MIDDLE_DN: case BUTTON_RIGHT_DN: case BUTTON_ONE_DN: case BUTTON_SB_DN: case BUTTON_SB_THUMB: sessionVT.sendAidKey(tnvt.AID_ROLL_DOWN); break; case BUTTON_LEFT_EB: case BUTTON_MIDDLE_EB: case BUTTON_RIGHT_EB: StringBuffer eb = new StringBuffer(); while (planes.getWhichGUI(pos--) != BUTTON_LEFT_EB) ; while (planes.getWhichGUI(pos++) != BUTTON_RIGHT_EB) { eb.append(planes.getChar(pos)); } 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()); break; default: int aidKey = Integer.parseInt(aid.toString()); if (aidKey >= 1 && aidKey <= 12) sessionVT.sendAidKey(0x30 + aidKey); if (aidKey >= 13 && aidKey <= 24) sessionVT.sendAidKey(0xB0 + (aidKey - 12)); } } else { if (screenFields.getCurrentField() != null) { int xPos = screenFields.getCurrentField().startPos(); for (int x = 0; x < aid.length(); x++) { // System.out.println(sr + "," + (sc + x) + " " + // aid.charAt(x)); planes.setChar(xPos + x , aid.charAt(x)); } // System.out.println(aid); screenFields.setCurrentFieldMDT(); sessionVT.sendAidKey(tnvt.AID_ENTER); } } // return back to the calling routine that the cursor was not moved // but something else here was done like aid keys or the such return false; } else { // this is a note to not execute this code here when we // implement // the remain after edit function option.// if (gui.rubberband.isAreaSelected()) {// gui.rubberband.reset();// gui.repaint();// } else { goto_XY(pos); isInField(lastPos); // return back to the calling object that the cursor was indeed // moved with in the screen object return true;// } } } return false; }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
}
}
public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g >= BUTTON_LEFT && g <= BUTTON_LAST) { StringBuffer aid = new StringBuffer(); boolean aidFlag = true; switch (g) { case BUTTON_RIGHT: case BUTTON_MIDDLE: while (planes.getWhichGUI(--pos) != BUTTON_LEFT) { } case BUTTON_LEFT: if (planes.getChar(pos) == 'F') { pos++; } else aidFlag = false; if (planes.getChar(pos + 1) != '=' && planes.getChar(pos + 1) != '.' && planes.getChar(pos + 1) != '/') { // System.out.println(" Hotspot clicked!!! we will send // characters " + // screen[pos].getChar() + // screen[pos+1].getChar()); aid.append(planes.getChar(pos)); aid.append(planes.getChar(pos + 1)); } else { log.debug(" Hotspot clicked!!! we will send character " + planes.getChar(pos)); aid.append(planes.getChar(pos)); } break; } if (aidFlag) { switch (g) { case BUTTON_LEFT_UP: case BUTTON_MIDDLE_UP: case BUTTON_RIGHT_UP: case BUTTON_ONE_UP: case BUTTON_SB_UP: case BUTTON_SB_GUIDE: sessionVT.sendAidKey(tnvt.AID_ROLL_UP); break; case BUTTON_LEFT_DN: case BUTTON_MIDDLE_DN: case BUTTON_RIGHT_DN: case BUTTON_ONE_DN: case BUTTON_SB_DN: case BUTTON_SB_THUMB: sessionVT.sendAidKey(tnvt.AID_ROLL_DOWN); break; case BUTTON_LEFT_EB: case BUTTON_MIDDLE_EB: case BUTTON_RIGHT_EB: StringBuffer eb = new StringBuffer(); while (planes.getWhichGUI(pos--) != BUTTON_LEFT_EB) ; while (planes.getWhichGUI(pos++) != BUTTON_RIGHT_EB) { eb.append(planes.getChar(pos)); } 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()); break; default: int aidKey = Integer.parseInt(aid.toString()); if (aidKey >= 1 && aidKey <= 12) sessionVT.sendAidKey(0x30 + aidKey); if (aidKey >= 13 && aidKey <= 24) sessionVT.sendAidKey(0xB0 + (aidKey - 12)); } } else { if (screenFields.getCurrentField() != null) { int xPos = screenFields.getCurrentField().startPos(); for (int x = 0; x < aid.length(); x++) { // System.out.println(sr + "," + (sc + x) + " " + // aid.charAt(x)); planes.setChar(xPos + x , aid.charAt(x)); } // System.out.println(aid); screenFields.setCurrentFieldMDT(); sessionVT.sendAidKey(tnvt.AID_ENTER); } } // return back to the calling routine that the cursor was not moved // but something else here was done like aid keys or the such return false; } else { // this is a note to not execute this code here when we // implement // the remain after edit function option.// if (gui.rubberband.isAreaSelected()) {// gui.rubberband.reset();// gui.repaint();// } else { goto_XY(pos); isInField(lastPos); // return back to the calling object that the cursor was indeed // moved with in the screen object return true;// } } } return false; }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
planes.setChar(xPos + x , aid.charAt(x));
planes.setChar(xPos + x, aid.charAt(x));
public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g >= BUTTON_LEFT && g <= BUTTON_LAST) { StringBuffer aid = new StringBuffer(); boolean aidFlag = true; switch (g) { case BUTTON_RIGHT: case BUTTON_MIDDLE: while (planes.getWhichGUI(--pos) != BUTTON_LEFT) { } case BUTTON_LEFT: if (planes.getChar(pos) == 'F') { pos++; } else aidFlag = false; if (planes.getChar(pos + 1) != '=' && planes.getChar(pos + 1) != '.' && planes.getChar(pos + 1) != '/') { // System.out.println(" Hotspot clicked!!! we will send // characters " + // screen[pos].getChar() + // screen[pos+1].getChar()); aid.append(planes.getChar(pos)); aid.append(planes.getChar(pos + 1)); } else { log.debug(" Hotspot clicked!!! we will send character " + planes.getChar(pos)); aid.append(planes.getChar(pos)); } break; } if (aidFlag) { switch (g) { case BUTTON_LEFT_UP: case BUTTON_MIDDLE_UP: case BUTTON_RIGHT_UP: case BUTTON_ONE_UP: case BUTTON_SB_UP: case BUTTON_SB_GUIDE: sessionVT.sendAidKey(tnvt.AID_ROLL_UP); break; case BUTTON_LEFT_DN: case BUTTON_MIDDLE_DN: case BUTTON_RIGHT_DN: case BUTTON_ONE_DN: case BUTTON_SB_DN: case BUTTON_SB_THUMB: sessionVT.sendAidKey(tnvt.AID_ROLL_DOWN); break; case BUTTON_LEFT_EB: case BUTTON_MIDDLE_EB: case BUTTON_RIGHT_EB: StringBuffer eb = new StringBuffer(); while (planes.getWhichGUI(pos--) != BUTTON_LEFT_EB) ; while (planes.getWhichGUI(pos++) != BUTTON_RIGHT_EB) { eb.append(planes.getChar(pos)); } 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()); break; default: int aidKey = Integer.parseInt(aid.toString()); if (aidKey >= 1 && aidKey <= 12) sessionVT.sendAidKey(0x30 + aidKey); if (aidKey >= 13 && aidKey <= 24) sessionVT.sendAidKey(0xB0 + (aidKey - 12)); } } else { if (screenFields.getCurrentField() != null) { int xPos = screenFields.getCurrentField().startPos(); for (int x = 0; x < aid.length(); x++) { // System.out.println(sr + "," + (sc + x) + " " + // aid.charAt(x)); planes.setChar(xPos + x , aid.charAt(x)); } // System.out.println(aid); screenFields.setCurrentFieldMDT(); sessionVT.sendAidKey(tnvt.AID_ENTER); } } // return back to the calling routine that the cursor was not moved // but something else here was done like aid keys or the such return false; } else { // this is a note to not execute this code here when we // implement // the remain after edit function option.// if (gui.rubberband.isAreaSelected()) {// gui.rubberband.reset();// gui.repaint();// } else { goto_XY(pos); isInField(lastPos); // return back to the calling object that the cursor was indeed // moved with in the screen object return true;// } } } return false; }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
return false;
return false;
public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g >= BUTTON_LEFT && g <= BUTTON_LAST) { StringBuffer aid = new StringBuffer(); boolean aidFlag = true; switch (g) { case BUTTON_RIGHT: case BUTTON_MIDDLE: while (planes.getWhichGUI(--pos) != BUTTON_LEFT) { } case BUTTON_LEFT: if (planes.getChar(pos) == 'F') { pos++; } else aidFlag = false; if (planes.getChar(pos + 1) != '=' && planes.getChar(pos + 1) != '.' && planes.getChar(pos + 1) != '/') { // System.out.println(" Hotspot clicked!!! we will send // characters " + // screen[pos].getChar() + // screen[pos+1].getChar()); aid.append(planes.getChar(pos)); aid.append(planes.getChar(pos + 1)); } else { log.debug(" Hotspot clicked!!! we will send character " + planes.getChar(pos)); aid.append(planes.getChar(pos)); } break; } if (aidFlag) { switch (g) { case BUTTON_LEFT_UP: case BUTTON_MIDDLE_UP: case BUTTON_RIGHT_UP: case BUTTON_ONE_UP: case BUTTON_SB_UP: case BUTTON_SB_GUIDE: sessionVT.sendAidKey(tnvt.AID_ROLL_UP); break; case BUTTON_LEFT_DN: case BUTTON_MIDDLE_DN: case BUTTON_RIGHT_DN: case BUTTON_ONE_DN: case BUTTON_SB_DN: case BUTTON_SB_THUMB: sessionVT.sendAidKey(tnvt.AID_ROLL_DOWN); break; case BUTTON_LEFT_EB: case BUTTON_MIDDLE_EB: case BUTTON_RIGHT_EB: StringBuffer eb = new StringBuffer(); while (planes.getWhichGUI(pos--) != BUTTON_LEFT_EB) ; while (planes.getWhichGUI(pos++) != BUTTON_RIGHT_EB) { eb.append(planes.getChar(pos)); } 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()); break; default: int aidKey = Integer.parseInt(aid.toString()); if (aidKey >= 1 && aidKey <= 12) sessionVT.sendAidKey(0x30 + aidKey); if (aidKey >= 13 && aidKey <= 24) sessionVT.sendAidKey(0xB0 + (aidKey - 12)); } } else { if (screenFields.getCurrentField() != null) { int xPos = screenFields.getCurrentField().startPos(); for (int x = 0; x < aid.length(); x++) { // System.out.println(sr + "," + (sc + x) + " " + // aid.charAt(x)); planes.setChar(xPos + x , aid.charAt(x)); } // System.out.println(aid); screenFields.setCurrentFieldMDT(); sessionVT.sendAidKey(tnvt.AID_ENTER); } } // return back to the calling routine that the cursor was not moved // but something else here was done like aid keys or the such return false; } else { // this is a note to not execute this code here when we // implement // the remain after edit function option.// if (gui.rubberband.isAreaSelected()) {// gui.rubberband.reset();// gui.repaint();// } else { goto_XY(pos); isInField(lastPos); // return back to the calling object that the cursor was indeed // moved with in the screen object return true;// } } } return false; }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
else {
else {
public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g >= BUTTON_LEFT && g <= BUTTON_LAST) { StringBuffer aid = new StringBuffer(); boolean aidFlag = true; switch (g) { case BUTTON_RIGHT: case BUTTON_MIDDLE: while (planes.getWhichGUI(--pos) != BUTTON_LEFT) { } case BUTTON_LEFT: if (planes.getChar(pos) == 'F') { pos++; } else aidFlag = false; if (planes.getChar(pos + 1) != '=' && planes.getChar(pos + 1) != '.' && planes.getChar(pos + 1) != '/') { // System.out.println(" Hotspot clicked!!! we will send // characters " + // screen[pos].getChar() + // screen[pos+1].getChar()); aid.append(planes.getChar(pos)); aid.append(planes.getChar(pos + 1)); } else { log.debug(" Hotspot clicked!!! we will send character " + planes.getChar(pos)); aid.append(planes.getChar(pos)); } break; } if (aidFlag) { switch (g) { case BUTTON_LEFT_UP: case BUTTON_MIDDLE_UP: case BUTTON_RIGHT_UP: case BUTTON_ONE_UP: case BUTTON_SB_UP: case BUTTON_SB_GUIDE: sessionVT.sendAidKey(tnvt.AID_ROLL_UP); break; case BUTTON_LEFT_DN: case BUTTON_MIDDLE_DN: case BUTTON_RIGHT_DN: case BUTTON_ONE_DN: case BUTTON_SB_DN: case BUTTON_SB_THUMB: sessionVT.sendAidKey(tnvt.AID_ROLL_DOWN); break; case BUTTON_LEFT_EB: case BUTTON_MIDDLE_EB: case BUTTON_RIGHT_EB: StringBuffer eb = new StringBuffer(); while (planes.getWhichGUI(pos--) != BUTTON_LEFT_EB) ; while (planes.getWhichGUI(pos++) != BUTTON_RIGHT_EB) { eb.append(planes.getChar(pos)); } 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()); break; default: int aidKey = Integer.parseInt(aid.toString()); if (aidKey >= 1 && aidKey <= 12) sessionVT.sendAidKey(0x30 + aidKey); if (aidKey >= 13 && aidKey <= 24) sessionVT.sendAidKey(0xB0 + (aidKey - 12)); } } else { if (screenFields.getCurrentField() != null) { int xPos = screenFields.getCurrentField().startPos(); for (int x = 0; x < aid.length(); x++) { // System.out.println(sr + "," + (sc + x) + " " + // aid.charAt(x)); planes.setChar(xPos + x , aid.charAt(x)); } // System.out.println(aid); screenFields.setCurrentFieldMDT(); sessionVT.sendAidKey(tnvt.AID_ENTER); } } // return back to the calling routine that the cursor was not moved // but something else here was done like aid keys or the such return false; } else { // this is a note to not execute this code here when we // implement // the remain after edit function option.// if (gui.rubberband.isAreaSelected()) {// gui.rubberband.reset();// gui.repaint();// } else { goto_XY(pos); isInField(lastPos); // return back to the calling object that the cursor was indeed // moved with in the screen object return true;// } } } return false; }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
goto_XY(pos); isInField(lastPos); return true;
goto_XY(pos); isInField(lastPos); return true;
public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g >= BUTTON_LEFT && g <= BUTTON_LAST) { StringBuffer aid = new StringBuffer(); boolean aidFlag = true; switch (g) { case BUTTON_RIGHT: case BUTTON_MIDDLE: while (planes.getWhichGUI(--pos) != BUTTON_LEFT) { } case BUTTON_LEFT: if (planes.getChar(pos) == 'F') { pos++; } else aidFlag = false; if (planes.getChar(pos + 1) != '=' && planes.getChar(pos + 1) != '.' && planes.getChar(pos + 1) != '/') { // System.out.println(" Hotspot clicked!!! we will send // characters " + // screen[pos].getChar() + // screen[pos+1].getChar()); aid.append(planes.getChar(pos)); aid.append(planes.getChar(pos + 1)); } else { log.debug(" Hotspot clicked!!! we will send character " + planes.getChar(pos)); aid.append(planes.getChar(pos)); } break; } if (aidFlag) { switch (g) { case BUTTON_LEFT_UP: case BUTTON_MIDDLE_UP: case BUTTON_RIGHT_UP: case BUTTON_ONE_UP: case BUTTON_SB_UP: case BUTTON_SB_GUIDE: sessionVT.sendAidKey(tnvt.AID_ROLL_UP); break; case BUTTON_LEFT_DN: case BUTTON_MIDDLE_DN: case BUTTON_RIGHT_DN: case BUTTON_ONE_DN: case BUTTON_SB_DN: case BUTTON_SB_THUMB: sessionVT.sendAidKey(tnvt.AID_ROLL_DOWN); break; case BUTTON_LEFT_EB: case BUTTON_MIDDLE_EB: case BUTTON_RIGHT_EB: StringBuffer eb = new StringBuffer(); while (planes.getWhichGUI(pos--) != BUTTON_LEFT_EB) ; while (planes.getWhichGUI(pos++) != BUTTON_RIGHT_EB) { eb.append(planes.getChar(pos)); } 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()); break; default: int aidKey = Integer.parseInt(aid.toString()); if (aidKey >= 1 && aidKey <= 12) sessionVT.sendAidKey(0x30 + aidKey); if (aidKey >= 13 && aidKey <= 24) sessionVT.sendAidKey(0xB0 + (aidKey - 12)); } } else { if (screenFields.getCurrentField() != null) { int xPos = screenFields.getCurrentField().startPos(); for (int x = 0; x < aid.length(); x++) { // System.out.println(sr + "," + (sc + x) + " " + // aid.charAt(x)); planes.setChar(xPos + x , aid.charAt(x)); } // System.out.println(aid); screenFields.setCurrentFieldMDT(); sessionVT.sendAidKey(tnvt.AID_ENTER); } } // return back to the calling routine that the cursor was not moved // but something else here was done like aid keys or the such return false; } else { // this is a note to not execute this code here when we // implement // the remain after edit function option.// if (gui.rubberband.isAreaSelected()) {// gui.rubberband.reset();// gui.repaint();// } else { goto_XY(pos); isInField(lastPos); // return back to the calling object that the cursor was indeed // moved with in the screen object return true;// } } } return false; }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
return false;
return false;
public boolean moveCursor(MouseEvent e, int pos) { if (!oia.isKeyBoardLocked()) { if (pos < 0) return false; // because getRowColFromPoint returns offset of 1,1 we need to // translate to offset 0,0 // pos -= (numCols + 1); int g = planes.getWhichGUI(pos); // lets check for hot spots if (g >= BUTTON_LEFT && g <= BUTTON_LAST) { StringBuffer aid = new StringBuffer(); boolean aidFlag = true; switch (g) { case BUTTON_RIGHT: case BUTTON_MIDDLE: while (planes.getWhichGUI(--pos) != BUTTON_LEFT) { } case BUTTON_LEFT: if (planes.getChar(pos) == 'F') { pos++; } else aidFlag = false; if (planes.getChar(pos + 1) != '=' && planes.getChar(pos + 1) != '.' && planes.getChar(pos + 1) != '/') { // System.out.println(" Hotspot clicked!!! we will send // characters " + // screen[pos].getChar() + // screen[pos+1].getChar()); aid.append(planes.getChar(pos)); aid.append(planes.getChar(pos + 1)); } else { log.debug(" Hotspot clicked!!! we will send character " + planes.getChar(pos)); aid.append(planes.getChar(pos)); } break; } if (aidFlag) { switch (g) { case BUTTON_LEFT_UP: case BUTTON_MIDDLE_UP: case BUTTON_RIGHT_UP: case BUTTON_ONE_UP: case BUTTON_SB_UP: case BUTTON_SB_GUIDE: sessionVT.sendAidKey(tnvt.AID_ROLL_UP); break; case BUTTON_LEFT_DN: case BUTTON_MIDDLE_DN: case BUTTON_RIGHT_DN: case BUTTON_ONE_DN: case BUTTON_SB_DN: case BUTTON_SB_THUMB: sessionVT.sendAidKey(tnvt.AID_ROLL_DOWN); break; case BUTTON_LEFT_EB: case BUTTON_MIDDLE_EB: case BUTTON_RIGHT_EB: StringBuffer eb = new StringBuffer(); while (planes.getWhichGUI(pos--) != BUTTON_LEFT_EB) ; while (planes.getWhichGUI(pos++) != BUTTON_RIGHT_EB) { eb.append(planes.getChar(pos)); } 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()); break; default: int aidKey = Integer.parseInt(aid.toString()); if (aidKey >= 1 && aidKey <= 12) sessionVT.sendAidKey(0x30 + aidKey); if (aidKey >= 13 && aidKey <= 24) sessionVT.sendAidKey(0xB0 + (aidKey - 12)); } } else { if (screenFields.getCurrentField() != null) { int xPos = screenFields.getCurrentField().startPos(); for (int x = 0; x < aid.length(); x++) { // System.out.println(sr + "," + (sc + x) + " " + // aid.charAt(x)); planes.setChar(xPos + x , aid.charAt(x)); } // System.out.println(aid); screenFields.setCurrentFieldMDT(); sessionVT.sendAidKey(tnvt.AID_ENTER); } } // return back to the calling routine that the cursor was not moved // but something else here was done like aid keys or the such return false; } else { // this is a note to not execute this code here when we // implement // the remain after edit function option.// if (gui.rubberband.isAreaSelected()) {// gui.rubberband.reset();// gui.repaint();// } else { goto_XY(pos); isInField(lastPos); // return back to the calling object that the cursor was indeed // moved with in the screen object return true;// } } } return false; }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
.getTransferData(DataFlavor.stringFlavor));
.getTransferData(DataFlavor.stringFlavor));
public final void pasteMe(boolean special) { setCursorActive(false); Clipboard cb = Toolkit.getDefaultToolkit().getSystemClipboard(); Transferable content = cb.getContents(this); try { StringBuffer sb = new StringBuffer((String) content .getTransferData(DataFlavor.stringFlavor)); StringBuffer pd = new StringBuffer(); int r = getRow(lastPos); int nextChar = 0; int nChars = sb.length(); boolean omitLF = false; boolean done = false; screenFields.saveCurrentField(); int lr = getRow(lastPos); int lc = getCol(lastPos); resetDirty(lastPos); while (!done) { if (nextChar >= nChars) { /* EOF */ done = true; break; } pd.setLength(0); boolean eol = false; char c = 0; int i; /* Skip a leftover '\n', if necessary */ if (omitLF && (sb.charAt(nextChar) == '\n')) nextChar++; boolean skipLF = false; omitLF = false; charLoop: for (i = nextChar; i < nChars; i++) { c = sb.charAt(i); if ((c == '\n') || (c == '\r')) { eol = true; break charLoop; } } int startChar = nextChar; nextChar = i; pd.append(sb.substring(startChar, startChar + (i - startChar))); if (eol) { nextChar++; if (c == '\r') { skipLF = true; } } log.debug("pasted >" + pd + "<"); int col = getCol(lastPos); int t = numCols - col; if (t > pd.length()) t = pd.length(); int p = 0; char pc; boolean setIt; while (t-- > 0) { pc = pd.charAt(p); setIt = true; if (special && (!Character.isLetter(pc) && !Character .isDigit(pc))) setIt = false; if (isInField(r, col) && setIt) { //screen[getPos(r, col)].setChar(pc); planes.setChar(getPos(r, col), pc); setDirty(r, col); screenFields.setCurrentFieldMDT(); } p++; if (setIt) col++; } r++; } screenFields.restoreCurrentField(); updateDirty(); setCursor(lr + 1, lc + 1); setCursorActive(true); } catch (Throwable exc) { log.warn("" + exc.getMessage()); } }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
&& (!Character.isLetter(pc) && !Character .isDigit(pc)))
&& (!Character.isLetter(pc) && !Character .isDigit(pc)))
public final void pasteMe(boolean special) { setCursorActive(false); Clipboard cb = Toolkit.getDefaultToolkit().getSystemClipboard(); Transferable content = cb.getContents(this); try { StringBuffer sb = new StringBuffer((String) content .getTransferData(DataFlavor.stringFlavor)); StringBuffer pd = new StringBuffer(); int r = getRow(lastPos); int nextChar = 0; int nChars = sb.length(); boolean omitLF = false; boolean done = false; screenFields.saveCurrentField(); int lr = getRow(lastPos); int lc = getCol(lastPos); resetDirty(lastPos); while (!done) { if (nextChar >= nChars) { /* EOF */ done = true; break; } pd.setLength(0); boolean eol = false; char c = 0; int i; /* Skip a leftover '\n', if necessary */ if (omitLF && (sb.charAt(nextChar) == '\n')) nextChar++; boolean skipLF = false; omitLF = false; charLoop: for (i = nextChar; i < nChars; i++) { c = sb.charAt(i); if ((c == '\n') || (c == '\r')) { eol = true; break charLoop; } } int startChar = nextChar; nextChar = i; pd.append(sb.substring(startChar, startChar + (i - startChar))); if (eol) { nextChar++; if (c == '\r') { skipLF = true; } } log.debug("pasted >" + pd + "<"); int col = getCol(lastPos); int t = numCols - col; if (t > pd.length()) t = pd.length(); int p = 0; char pc; boolean setIt; while (t-- > 0) { pc = pd.charAt(p); setIt = true; if (special && (!Character.isLetter(pc) && !Character .isDigit(pc))) setIt = false; if (isInField(r, col) && setIt) { //screen[getPos(r, col)].setChar(pc); planes.setChar(getPos(r, col), pc); setDirty(r, col); screenFields.setCurrentFieldMDT(); } p++; if (setIt) col++; } r++; } screenFields.restoreCurrentField(); updateDirty(); setCursor(lr + 1, lc + 1); setCursorActive(true); } catch (Throwable exc) { log.warn("" + exc.getMessage()); } }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
public final void pasteMe(boolean special) { setCursorActive(false); Clipboard cb = Toolkit.getDefaultToolkit().getSystemClipboard(); Transferable content = cb.getContents(this); try { StringBuffer sb = new StringBuffer((String) content .getTransferData(DataFlavor.stringFlavor)); StringBuffer pd = new StringBuffer(); int r = getRow(lastPos); int nextChar = 0; int nChars = sb.length(); boolean omitLF = false; boolean done = false; screenFields.saveCurrentField(); int lr = getRow(lastPos); int lc = getCol(lastPos); resetDirty(lastPos); while (!done) { if (nextChar >= nChars) { /* EOF */ done = true; break; } pd.setLength(0); boolean eol = false; char c = 0; int i; /* Skip a leftover '\n', if necessary */ if (omitLF && (sb.charAt(nextChar) == '\n')) nextChar++; boolean skipLF = false; omitLF = false; charLoop: for (i = nextChar; i < nChars; i++) { c = sb.charAt(i); if ((c == '\n') || (c == '\r')) { eol = true; break charLoop; } } int startChar = nextChar; nextChar = i; pd.append(sb.substring(startChar, startChar + (i - startChar))); if (eol) { nextChar++; if (c == '\r') { skipLF = true; } } log.debug("pasted >" + pd + "<"); int col = getCol(lastPos); int t = numCols - col; if (t > pd.length()) t = pd.length(); int p = 0; char pc; boolean setIt; while (t-- > 0) { pc = pd.charAt(p); setIt = true; if (special && (!Character.isLetter(pc) && !Character .isDigit(pc))) setIt = false; if (isInField(r, col) && setIt) { //screen[getPos(r, col)].setChar(pc); planes.setChar(getPos(r, col), pc); setDirty(r, col); screenFields.setCurrentFieldMDT(); } p++; if (setIt) col++; } r++; } screenFields.restoreCurrentField(); updateDirty(); setCursor(lr + 1, lc + 1); setCursorActive(true); } catch (Throwable exc) { log.warn("" + exc.getMessage()); } }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
&& screenFields.getCurrentField().isFER() && screenFields.getCurrentFieldPos() - 1 == pos) {
&& screenFields.getCurrentField().isFER() && screenFields.getCurrentFieldPos() - 1 == pos) {
private void process_XY(int pos) { if (pos < 0) pos = lenScreen + pos; if (pos > lenScreen - 1) pos = pos - lenScreen; // if there was a field exit error then we need to treat the movement // of the cursor in a special way that equals that of Client Access. // If the cursor is moved from the field then we need to reset the // position within the field so that the last character can be typed // over again instead of sending the field exit error again. // We also need to reset the field exit error flag. // // How we know we have a field exit error is when the field position is // set beyond the end of the field and a character is then typed we can // not position that character. To reset this we need to set the next // position of the field to not be beyond the end of field but to the // last character. // // Now to make it work like Client Access if the cursor is a back space // then do not move the cursor but place it on the last field. All // other keys will reset the field position so that entering over the // last character will not cause an error but replace that character or // just plain move the cursor if the key was to do that. if (feError) { feError = false; screenFields.getCurrentField().changePos(-1); if (screenFields.getCurrentField() != null && screenFields.getCurrentField().isFER() && screenFields.getCurrentFieldPos() - 1 == pos) { } } else { goto_XY(pos); } }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
private void process_XY(int pos) { if (pos < 0) pos = lenScreen + pos; if (pos > lenScreen - 1) pos = pos - lenScreen; // if there was a field exit error then we need to treat the movement // of the cursor in a special way that equals that of Client Access. // If the cursor is moved from the field then we need to reset the // position within the field so that the last character can be typed // over again instead of sending the field exit error again. // We also need to reset the field exit error flag. // // How we know we have a field exit error is when the field position is // set beyond the end of the field and a character is then typed we can // not position that character. To reset this we need to set the next // position of the field to not be beyond the end of field but to the // last character. // // Now to make it work like Client Access if the cursor is a back space // then do not move the cursor but place it on the last field. All // other keys will reset the field position so that entering over the // last character will not cause an error but replace that character or // just plain move the cursor if the key was to do that. if (feError) { feError = false; screenFields.getCurrentField().changePos(-1); if (screenFields.getCurrentField() != null && screenFields.getCurrentField().isFER() && screenFields.getCurrentFieldPos() - 1 == pos) { } } else { goto_XY(pos); } }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
if (listeners == null) { return; } listeners.removeElement(listener); }
if (listeners == null) { return; } listeners.removeElement(listener); }
public void removeScreenListener(ScreenListener listener) { if (listeners == null) { return; } listeners.removeElement(listener); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
setCursorOff(); dirtyScreen.setBounds(0,lenScreen - 1,0,0); updateDirty();
setCursorOff(); dirtyScreen.setBounds(0, lenScreen - 1, 0, 0); updateDirty();
public void repaintScreen() { setCursorOff(); dirtyScreen.setBounds(0,lenScreen - 1,0,0); updateDirty(); // restore statuses that were on the screen before resize if (oia.getLevel() == ScreenOIA.OIA_LEVEL_INPUT_ERROR) { oia.setInputInhibited(ScreenOIA.INPUTINHIBITED_SYSTEM_WAIT, ScreenOIA.OIA_LEVEL_INPUT_ERROR); } if (oia.getLevel() == ScreenOIA.OIA_LEVEL_INPUT_INHIBITED) { oia.setInputInhibited(ScreenOIA.INPUTINHIBITED_SYSTEM_WAIT, ScreenOIA.OIA_LEVEL_INPUT_INHIBITED); } if (oia.isMessageWait()) oia.setMessageLightOn(); setCursorOn(); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
oia.setInputInhibited(ScreenOIA.INPUTINHIBITED_SYSTEM_WAIT, ScreenOIA.OIA_LEVEL_INPUT_ERROR);
oia.setInputInhibited(ScreenOIA.INPUTINHIBITED_SYSTEM_WAIT, ScreenOIA.OIA_LEVEL_INPUT_ERROR);
public void repaintScreen() { setCursorOff(); dirtyScreen.setBounds(0,lenScreen - 1,0,0); updateDirty(); // restore statuses that were on the screen before resize if (oia.getLevel() == ScreenOIA.OIA_LEVEL_INPUT_ERROR) { oia.setInputInhibited(ScreenOIA.INPUTINHIBITED_SYSTEM_WAIT, ScreenOIA.OIA_LEVEL_INPUT_ERROR); } if (oia.getLevel() == ScreenOIA.OIA_LEVEL_INPUT_INHIBITED) { oia.setInputInhibited(ScreenOIA.INPUTINHIBITED_SYSTEM_WAIT, ScreenOIA.OIA_LEVEL_INPUT_INHIBITED); } if (oia.isMessageWait()) oia.setMessageLightOn(); setCursorOn(); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
oia.setInputInhibited(ScreenOIA.INPUTINHIBITED_SYSTEM_WAIT, ScreenOIA.OIA_LEVEL_INPUT_INHIBITED);
oia.setInputInhibited(ScreenOIA.INPUTINHIBITED_SYSTEM_WAIT, ScreenOIA.OIA_LEVEL_INPUT_INHIBITED);
public void repaintScreen() { setCursorOff(); dirtyScreen.setBounds(0,lenScreen - 1,0,0); updateDirty(); // restore statuses that were on the screen before resize if (oia.getLevel() == ScreenOIA.OIA_LEVEL_INPUT_ERROR) { oia.setInputInhibited(ScreenOIA.INPUTINHIBITED_SYSTEM_WAIT, ScreenOIA.OIA_LEVEL_INPUT_ERROR); } if (oia.getLevel() == ScreenOIA.OIA_LEVEL_INPUT_INHIBITED) { oia.setInputInhibited(ScreenOIA.INPUTINHIBITED_SYSTEM_WAIT, ScreenOIA.OIA_LEVEL_INPUT_INHIBITED); } if (oia.isMessageWait()) oia.setMessageLightOn(); setCursorOn(); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
setCursorOn();
setCursorOn();
public void repaintScreen() { setCursorOff(); dirtyScreen.setBounds(0,lenScreen - 1,0,0); updateDirty(); // restore statuses that were on the screen before resize if (oia.getLevel() == ScreenOIA.OIA_LEVEL_INPUT_ERROR) { oia.setInputInhibited(ScreenOIA.INPUTINHIBITED_SYSTEM_WAIT, ScreenOIA.OIA_LEVEL_INPUT_ERROR); } if (oia.getLevel() == ScreenOIA.OIA_LEVEL_INPUT_INHIBITED) { oia.setInputInhibited(ScreenOIA.INPUTINHIBITED_SYSTEM_WAIT, ScreenOIA.OIA_LEVEL_INPUT_INHIBITED); } if (oia.isMessageWait()) oia.setMessageLightOn(); setCursorOn(); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
dirtyScreen.setBounds(pos,pos,0,0);
dirtyScreen.setBounds(pos, pos, 0, 0);
private void resetDirty(int pos) { dirtyScreen.setBounds(pos,pos,0,0); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
protected void resetError() { restoreErrorLine(); setStatus(STATUS_ERROR_CODE, STATUS_VALUE_OFF, ""); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
planes.restoreErrorLine(); fireScreenChanged(1,planes.getErrorLine()-1,0,planes.getErrorLine()-1,numCols - 1);
planes.restoreErrorLine(); fireScreenChanged(1, planes.getErrorLine() - 1, 0, planes .getErrorLine() - 1, numCols - 1);
protected void restoreErrorLine() { if (planes.isErrorLineSaved()) { planes.restoreErrorLine(); fireScreenChanged(1,planes.getErrorLine()-1,0,planes.getErrorLine()-1,numCols - 1); } }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
protected void restoreErrorLine() { if (planes.isErrorLineSaved()) { planes.restoreErrorLine(); fireScreenChanged(1,planes.getErrorLine()-1,0,planes.getErrorLine()-1,numCols - 1); } }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
dirtyScreen.setBounds(0,lenScreen - 1,0,0); updateDirty();
dirtyScreen.setBounds(0, lenScreen - 1, 0, 0); updateDirty();
protected void restoreScreen() { lastAttr = 32; dirtyScreen.setBounds(0,lenScreen - 1,0,0); updateDirty(); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
if (planes.getChar(end -1) != '-')
if (planes.getChar(end - 1) != '-')
private void rightAdjustField(char fill) { int end = endOfField(false); // get the ending position of the first // non blank character in field // get the number of characters to the right int count = screenFields.getCurrentField().endPos() - end; // subtract 1 from count for signed numeric - note for later if (screenFields.getCurrentField().isSignedNumeric()) { if (planes.getChar(end -1) != '-') count--; } int pos = screenFields.getCurrentField().startPos(); while (count-- >= 0) { shiftRight(pos); planes.setChar(pos,fill); setDirty(pos); } }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
planes.setChar(pos,fill);
planes.setChar(pos, fill);
private void rightAdjustField(char fill) { int end = endOfField(false); // get the ending position of the first // non blank character in field // get the number of characters to the right int count = screenFields.getCurrentField().endPos() - end; // subtract 1 from count for signed numeric - note for later if (screenFields.getCurrentField().isSignedNumeric()) { if (planes.getChar(end -1) != '-') count--; } int pos = screenFields.getCurrentField().startPos(); while (count-- >= 0) { shiftRight(pos); planes.setChar(pos,fill); setDirty(pos); } }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
protected void rollScreen(int direction, int topLine, int bottomLine) { // get the number of lines which are the last 5 bits int lines = direction & 0x7F; // get the direction of the roll which is the first bit // 0 - up // 1 - down int updown = direction & 0x80; // calculate the reference points for the move. int start = this.getPos(topLine - 1, 0); int end = this.getPos(bottomLine - 1, numCols - 1); int len = end - start; // System.out.println(" starting roll"); // dumpScreen(); switch (updown) { case 0: // Now round em up and head em UP. for (int x = start; x < len + numCols; x++) { planes.setChar(x, planes.getChar(x + numCols)); } break; case 1: // Now round em up and head em DOWN. for (int x = end + numCols; x > 0; x--) { planes.setChar(x + numCols, planes.getChar(x)); } break; default: log.warn(" Invalid roll parameter - please report this"); } // System.out.println(" end roll"); // dumpScreen(); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java
planes.saveErrorLine();
planes.saveErrorLine();
protected void saveErrorLine() { planes.saveErrorLine(); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java