public class EEMaster extends Object
Modifier and Type | Field and Description |
---|---|
static int |
FA_3270ISPDHI |
static int |
FA_3270ISPDMASK |
static int |
FA_3270ISPDNODISP |
static int |
FA_3270NUM |
static int |
FA_5250FTALPHA |
static int |
FA_5250FTDIGITS |
static int |
FA_5250FTMASK |
static int |
FA_5250FTNUM |
static int |
FA_5250FTNUMSH |
static int |
FA_5250FTSIGNNUM |
static int |
FA_5250HI |
static int |
FA_5250NODISP |
static int |
FA_PROT |
static int |
IBIT0 |
static int |
IBIT1 |
static int |
IBIT2 |
static int |
K_ATTENTION |
static int |
K_BACKSPACE |
static int |
K_BACKWARDWORDTAB |
static int |
K_BLUE |
static int |
K_CAPSLOCK |
static int |
K_CLEAR |
static int |
K_CMDKEY |
static int |
K_CURSORDOWNFAST |
static int |
K_CURSORLEFTFAST |
static int |
K_CURSORRIGHTFAST |
static int |
K_CURSORSELECT |
static int |
K_CURSORUPFAST |
static int |
K_DBCS |
static int |
K_DELETE |
static int |
K_DESTRUCTBACKSPACE |
static int |
K_DEVICECANCEL |
static int |
K_DOWN |
static int |
K_EEOF |
static int |
K_END |
static int |
K_ENTER |
static int |
K_ERASEINPUT |
static int |
K_FIELDEXIT |
static int |
K_FIELDMINUS |
static int |
K_FIELDPLUS |
static int |
K_FORWARWORDTAB |
static int |
K_GETCURSOR |
static int |
K_GOTOSESS1 |
static int |
K_GOTOSESS2 |
static int |
K_GOTOSESS3 |
static int |
K_GOTOSESS4 |
static int |
K_GOTOSESS5 |
static int |
K_GREEN |
static int |
K_HELP |
static int |
K_HEXADECIMAL |
static int |
K_HOME |
static int |
K_INSERT |
static int |
K_INSERTTOGGLE |
static int |
K_JUMP |
static int |
K_LEFT |
static int |
K_LEFTTAB |
static int |
K_LOCATECURSOR |
static int |
K_NEWLINE |
static int |
K_NUMLOCK |
static int |
K_OVERRUNQUEUE |
static int |
K_PA1 |
static int |
K_PA2 |
static int |
K_PA3 |
static int |
K_PCPRINT |
static int |
K_PF1 |
static int |
K_PF10 |
static int |
K_PF11 |
static int |
K_PF12 |
static int |
K_PF13 |
static int |
K_PF14 |
static int |
K_PF15 |
static int |
K_PF16 |
static int |
K_PF17 |
static int |
K_PF18 |
static int |
K_PF19 |
static int |
K_PF2 |
static int |
K_PF20 |
static int |
K_PF21 |
static int |
K_PF22 |
static int |
K_PF23 |
static int |
K_PF24 |
static int |
K_PF3 |
static int |
K_PF4 |
static int |
K_PF5 |
static int |
K_PF6 |
static int |
K_PF7 |
static int |
K_PF8 |
static int |
K_PF9 |
static int |
K_PGDOWN |
static int |
K_PGUP |
static int |
K_PINK |
static int |
K_PLUSKEY |
static int |
K_PMALTCURSOR |
static int |
K_PRINT |
static int |
K_PRINTPS |
static int |
K_RECORDBACKSPCE |
static int |
K_RED |
static int |
K_RESET |
static int |
K_RESETHOSTCOLORS |
static int |
K_RESETREVVIDEO |
static int |
K_REVERSEVIDEO |
static int |
K_RIGHT |
static int |
K_RIGHTTAB |
static int |
K_SCRLK |
static int |
K_SPACE |
static int |
K_SYSTEMREQUEST |
static int |
K_TEST |
static int |
K_TURQUOISE |
static int |
K_UNDERSCORE |
static int |
K_UP |
static int |
K_WHITE |
static int |
K_WORDDELETE |
static int |
K_YELLOW |
Constructor and Description |
---|
EEMaster()
Constructor used when catching an EE file.
|
EEMaster(String fn,
boolean doLoadScreens)
Loads an EEM file for the recording editor.
|
Modifier and Type | Method and Description |
---|---|
void |
addScreen(EEScreen screen)
Adds a new EEScreen to the table.
|
boolean |
canEdit()
Checks if this master file can be edited for screen captures, i.e.
|
static void |
catchScreenAsEE(HostSession hostSession,
ByteArrayOutputStream bos,
String screenName)
Catch a screen as EE.
|
static boolean |
catchScreenAsEE(HostSession hostSession,
String fileName,
String screenName,
boolean doAppend)
Catch a screen as EE.
|
static boolean |
createNewEEMFile(String newFileName)
Create a new, empty EEM file.
|
ArrayList<EEScreen> |
getAllScreens()
Gets all the screens.
|
int |
getDelay()
Gets the delay defined for the EEM file.
|
static EEFile |
getEEFile(String fn)
Gets or loads an EE file.
|
static EEMaster |
getEEMaster(String fn)
Creates a shared instance or uses a previous one, reloading changed files
if required, with weak memory references to allow smaller memory footprint.
|
String |
getFileName()
Gets the name of the EEM file.
|
EEScreen |
getFirstScreen()
Gets the first screen.
|
int |
getFlags()
Gets the flags defined for the EEM file.
|
EEScreen |
getInitialScreen()
Gets the initial EE screen.
|
EEScreen |
getLastScreen()
Gets the last screen.
|
EELogic[] |
getLogic()
Gets the logic statements for the EEM file.
|
EEScreen |
getPreviousNextScreen(EEScreen current,
int dir)
Gets the previous or next screen.
|
EEScreen |
getScreen(String name)
Gets the EE screen from a name.
|
void |
loadCapture(String fn)
Loads a captured EE file into the EEM.
|
void |
setDelay(int newDelay)
Sets the delay defined for the EEM file.
|
void |
setEEFileNames(String[] newNames)
Sets the EE file names array defined for the EEM file.
|
void |
setFileName(String newName)
Sets the name of the EEM file.
|
void |
setFlags(int newFlags)
Sets the delay defined for the EEM file.
|
void |
setInitialScreen(int newScreen)
Sets the initial screen defined for the EEM file.
|
void |
setLogic(EELogic[] newLogic)
Sets the logic statements for the EEM file.
|
void |
write()
Write the content of the instance to a file.
|
public static final int K_LEFTTAB
public static final int K_CLEAR
public static final int K_DELETE
public static final int K_ENTER
public static final int K_EEOF
public static final int K_HELP
public static final int K_INSERT
public static final int K_JUMP
public static final int K_LEFT
public static final int K_NEWLINE
public static final int K_SPACE
public static final int K_PRINT
public static final int K_RESET
public static final int K_RIGHTTAB
public static final int K_UP
public static final int K_DOWN
public static final int K_DBCS
public static final int K_CAPSLOCK
public static final int K_RIGHT
public static final int K_HOME
public static final int K_PF1
public static final int K_PF2
public static final int K_PF3
public static final int K_PF4
public static final int K_PF5
public static final int K_PF6
public static final int K_PF7
public static final int K_PF8
public static final int K_PF9
public static final int K_PF10
public static final int K_PF11
public static final int K_PF12
public static final int K_PF13
public static final int K_PF14
public static final int K_PF15
public static final int K_PF16
public static final int K_PF17
public static final int K_PF18
public static final int K_PF19
public static final int K_PF20
public static final int K_PF21
public static final int K_PF22
public static final int K_PF23
public static final int K_PF24
public static final int K_PLUSKEY
public static final int K_END
public static final int K_SCRLK
public static final int K_NUMLOCK
public static final int K_PGUP
public static final int K_PGDOWN
public static final int K_PA1
public static final int K_PA2
public static final int K_PA3
public static final int K_TEST
public static final int K_WORDDELETE
public static final int K_FIELDEXIT
public static final int K_ERASEINPUT
public static final int K_SYSTEMREQUEST
public static final int K_INSERTTOGGLE
public static final int K_CURSORSELECT
public static final int K_CURSORLEFTFAST
public static final int K_GETCURSOR
public static final int K_LOCATECURSOR
public static final int K_ATTENTION
public static final int K_DEVICECANCEL
public static final int K_PRINTPS
public static final int K_CURSORUPFAST
public static final int K_CURSORDOWNFAST
public static final int K_HEXADECIMAL
public static final int K_CMDKEY
public static final int K_CURSORRIGHTFAST
public static final int K_UNDERSCORE
public static final int K_RESETREVVIDEO
public static final int K_RED
public static final int K_PINK
public static final int K_GREEN
public static final int K_YELLOW
public static final int K_BLUE
public static final int K_TURQUOISE
public static final int K_WHITE
public static final int K_RESETHOSTCOLORS
public static final int K_GOTOSESS1
public static final int K_GOTOSESS2
public static final int K_GOTOSESS3
public static final int K_GOTOSESS4
public static final int K_GOTOSESS5
public static final int K_PCPRINT
public static final int K_FORWARWORDTAB
public static final int K_BACKWARDWORDTAB
public static final int K_FIELDMINUS
public static final int K_FIELDPLUS
public static final int K_RECORDBACKSPCE
public static final int K_OVERRUNQUEUE
public static final int K_PMALTCURSOR
public static final int K_BACKSPACE
public static final int K_REVERSEVIDEO
public static final int K_DESTRUCTBACKSPACE
public static final int FA_PROT
public static final int FA_3270NUM
public static final int FA_3270ISPDMASK
public static final int FA_3270ISPDHI
public static final int FA_3270ISPDNODISP
public static final int FA_5250NODISP
public static final int FA_5250HI
public static final int FA_5250FTMASK
public static final int FA_5250FTALPHA
public static final int FA_5250FTNUMSH
public static final int FA_5250FTNUM
public static final int FA_5250FTDIGITS
public static final int FA_5250FTSIGNNUM
public static final int IBIT2
public static final int IBIT1
public static final int IBIT0
public EEMaster(String fn, boolean doLoadScreens) throws IOException
IOException
public EEMaster()
public static EEMaster getEEMaster(String fn) throws IOException
IOException
- for file failures.public static EEFile getEEFile(String fn) throws IOException
IOException
- for file failures.public static void catchScreenAsEE(HostSession hostSession, ByteArrayOutputStream bos, String screenName) throws IOException
The screen name must be 1 through 20 characters long using the default ASCII (OEM) character set, otherwise an IOException is thrown.
IOException
- for file errors.public static boolean catchScreenAsEE(HostSession hostSession, String fileName, String screenName, boolean doAppend) throws IOException
The screen name must be 1 through 20 characters long using the default ASCII (OEM) character set, otherwise an IOException is thrown.
The flag "doAppend" indicates if the screen name should be appended to the file name specified. If the file exists prior to calling this method with "doAppend=false", the file is overwritten.
IOException
- for file errors.public String getFileName()
public void setFileName(String newName)
public void setEEFileNames(String[] newNames) throws IOException
IOException
public void setInitialScreen(int newScreen)
public int getFlags()
public void setFlags(int newFlags)
public int getDelay()
public void setDelay(int newDelay)
public void setLogic(EELogic[] newLogic)
public static boolean createNewEEMFile(String newFileName) throws IOException
IOException
public void write() throws IOException
IOException
public void addScreen(EEScreen screen)
public EEScreen getInitialScreen()
public EEScreen getScreen(String name)
public EEScreen getFirstScreen()
public EEScreen getLastScreen()
public EEScreen getPreviousNextScreen(EEScreen current, int dir)
dir
- direction to move, set to -1 for previous or 1 for next.public EELogic[] getLogic()
public void loadCapture(String fn) throws IOException
fn
- The file name.IOException
- For file errors.public boolean canEdit()
iizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.