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 TypeFieldDescription
      intattribute
      The host attribute of the field (3270 or 5250 dependent).
      booleanisUnderlined
      Underline flag.
      intlength
      The length of the field in the PS.
      intposition
      Position of this field in the PS.
    • Constructor Summary

      Constructors 
      ConstructorDescription
      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 TypeMethodDescription
      intcompareTo​(EEField f)
      Used for sorting fields.
      booleanequals​(java.lang.Object o)
      Checks for equality.
      inthashCode()
      Gets the hash code.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, 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
        Returns:
        The equality flag.
      • hashCode

        public int hashCode()
        Gets the hash code.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        The hash code.
      • compareTo

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