Package com.iizix.term.ee
Class EEScreen
java.lang.Object
com.iizix.term.ee.EEScreen
Loads the EE screen from the EE file. It also contains the routines required to edit the screen capture.
- Author:
- Christopher Mindus
- Constructor SummaryConstructorsConstructorDescription- EEScreen- (HostSession hostSession, String fileName, String screenName, boolean isSingleScreen) Creates a new EE screen for the current screen in a host session.Loads the EE screen containing the host screen definition and the host fields.
- Method SummaryModifier and TypeMethodDescription- boolean- areChanged- (EEField[] fields) Checks if fields are changed.- boolean- deleteField- (int pos) Delete a field at cursor.Gets the initial cursor position.- EEField[]Gets the fields.Gets the file name where this screen is store in.- intGets the screen height.- getName()Gets this screen name.- void- getScreenData- (char[] chs, int[] cas) Gets the screen data in HostScreen format.- intGets the current screen length (width * height).Gets the screen size.- int- getWidth()Gets the screen width.- booleanChecks if the field has underline.- boolean- is3270()Checks if this screen is 3270 (it is 5250 otherwise).- booleanChecks if this host screen is field formatted.- booleanCheck if this screen is the single screen in a file.- boolean- isUnderlined- (EEField field) Gets the underlined state of the field.- void- refreshHostFields- (HostFields fields) Refreshes the host fields of the current session.- void- setBackground- (int pos, int len, int color) Assigns background character color.- void- setCursorPos- (int x, int y) Assigns the initial cursor position.- void- setForeground- (int pos, int len, int index) Assigns foreground character color.- void- setRefreshedFields- (EEField[] fields) Sets new fields after rebuild, removing previous underlines.- void- setUnderlined- (int pos, boolean on) Applies underline.
- Constructor Details- EEScreenpublic EEScreen- (String fn, String name, XFile f, int version, boolean isSingleScreen) throws IOException Loads the EE screen containing the host screen definition and the host fields.- Throws:
- IOException- for file failures.
 
- EEScreenpublic EEScreen- (HostSession hostSession, String fileName, String screenName, boolean isSingleScreen) Creates a new EE screen for the current screen in a host session.
 
- Method Details- isSingleScreenpublic boolean isSingleScreen()Check if this screen is the single screen in a file.
- getNameGets this screen name.
- getFileNameGets the file name where this screen is store in.
- is3270public boolean is3270()Checks if this screen is 3270 (it is 5250 otherwise).
- getScreenSizeGets the screen size.
- getScreenLengthpublic int getScreenLength()Gets the current screen length (width * height).
- getWidthpublic int getWidth()Gets the screen width.
- getHeightpublic int getHeight()Gets the screen height.
- getFieldsGets the fields.
- getCursorPosGets the initial cursor position.
- getScreenDatapublic void getScreenData- (char[] chs, int[] cas) Gets the screen data in HostScreen format.
- setUnderlinedpublic void setUnderlined- (int pos, boolean on) Applies underline.
- hasUnderlineChecks if the field has underline.
- isUnderlinedGets the underlined state of the field.
- setForegroundpublic void setForeground- (int pos, int len, int index) Assigns foreground character color.
- setBackgroundpublic void setBackground- (int pos, int len, int color) Assigns background character color.
- areChangedChecks if fields are changed.
- setRefreshedFieldsSets new fields after rebuild, removing previous underlines.
- setCursorPospublic void setCursorPos- (int x, int y) Assigns the initial cursor position.
- deleteFieldpublic boolean deleteField- (int pos) Delete a field at cursor. If a field ends in this position and another one starts there, merge them.- Returns:
- true for change, false for no change.
 
- isFieldFormattedpublic boolean isFieldFormatted()Checks if this host screen is field formatted. This method is not like the one in HostScreen, this one checks directly to see if any fields are present.
- refreshHostFieldsRefreshes the host fields of the current session. The host session will add all available host fields sorted left to right, top to bottom.