Class EEScreen

java.lang.Object
com.iizix.term.ee.EEScreen

public class EEScreen extends Object
Loads the EE screen from the EE file. It also contains the routines required to edit the screen capture.
Author:
Christopher Mindus
  • Constructor Details Link icon

    • EEScreen Link icon

      public 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.
    • EEScreen Link icon

      public EEScreen(HostSession hostSession, String fileName, String screenName, boolean isSingleScreen)
      Creates a new EE screen for the current screen in a host session.
  • Method Details Link icon

    • isSingleScreen Link icon

      public boolean isSingleScreen()
      Check if this screen is the single screen in a file.
    • getName Link icon

      public String getName()
      Gets this screen name.
    • getFileName Link icon

      public String getFileName()
      Gets the file name where this screen is store in.
    • is3270 Link icon

      public boolean is3270()
      Checks if this screen is 3270 (it is 5250 otherwise).
    • getScreenSize Link icon

      public Size getScreenSize()
      Gets the screen size.
    • getScreenLength Link icon

      public int getScreenLength()
      Gets the current screen length (width * height).
    • getWidth Link icon

      public int getWidth()
      Gets the screen width.
    • getHeight Link icon

      public int getHeight()
      Gets the screen height.
    • getFields Link icon

      public EEField[] getFields()
      Gets the fields.
    • getCursorPos Link icon

      public Position getCursorPos()
      Gets the initial cursor position.
    • getScreenData Link icon

      public void getScreenData(char[] chs, int[] cas)
      Gets the screen data in HostScreen format.
    • setUnderlined Link icon

      public void setUnderlined(int pos, boolean on)
      Applies underline.
    • hasUnderline Link icon

      public boolean hasUnderline(HostField f)
      Checks if the field has underline.
    • isUnderlined Link icon

      public boolean isUnderlined(EEField field)
      Gets the underlined state of the field.
    • setForeground Link icon

      public void setForeground(int pos, int len, int index)
      Assigns foreground character color.
    • setBackground Link icon

      public void setBackground(int pos, int len, int color)
      Assigns background character color.
    • areChanged Link icon

      public boolean areChanged(EEField[] fields)
      Checks if fields are changed.
    • setRefreshedFields Link icon

      public void setRefreshedFields(EEField[] fields)
      Sets new fields after rebuild, removing previous underlines.
    • setCursorPos Link icon

      public void setCursorPos(int x, int y)
      Assigns the initial cursor position.
    • deleteField Link icon

      public 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.
    • isFieldFormatted Link icon

      public 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.
    • refreshHostFields Link icon

      public void refreshHostFields(HostFields fields)
      Refreshes the host fields of the current session. The host session will add all available host fields sorted left to right, top to bottom.