Class EEField

  • All Implemented Interfaces:
    java.lang.Comparable<EEField>

    public class EEField
    extends java.lang.Object
    implements java.lang.Comparable<EEField>
    Loads the EE field from the EE screen file.
    Author:
    Christopher Mindus
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int attribute
      The host attribute of the field (3270 or 5250 dependent).
      boolean isUnderlined
      Underline flag.
      int length
      The length of the field in the PS.
      int position
      Position of this field in the PS.
    • Constructor Summary

      Constructors 
      Constructor Description
      EEField​(int pos, int len, int attr, boolean ul)
      Creation of a field for an unformatted screen.
      EEField​(XFile f, int size)
      Loads the EE field from the EE screen file.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compareTo​(EEField f)
      Used for sorting fields.
      boolean equals​(java.lang.Object o)
      Checks for equality.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • position

        public final int position
        Position of this field in the PS.
      • length

        public final int length
        The length of the field in the PS.
      • attribute

        public int attribute
        The host attribute of the field (3270 or 5250 dependent).
      • isUnderlined

        public boolean isUnderlined
        Underline flag.
    • Constructor Detail

      • EEField

        public EEField​(XFile f,
                       int size)
                throws java.io.IOException
        Loads the EE field from the EE screen file.
        Parameters:
        f - The X-file for reading.
        size - The file size.
        Throws:
        java.io.IOException - for file failures.
      • EEField

        public EEField​(int pos,
                       int len,
                       int attr,
                       boolean ul)
        Creation of a field for an unformatted screen.
        Parameters:
        pos - Position on screen.
        len - Length of field (wrapping).
        attr - Attribute value.
        ul - Underline flag.
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object o)
        Checks for equality.
        Overrides:
        equals in class java.lang.Object
      • compareTo

        public int compareTo​(EEField f)
        Used for sorting fields.
        Specified by:
        compareTo in interface java.lang.Comparable<EEField>