Class HostState


  • public class HostState
    extends java.lang.Object
    This class is used to get the text to display in the status bar for the host terminal session.
    Author:
    Christopher Mindus
    • Constructor Summary

      Constructors 
      ConstructorDescription
      HostState() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethodDescription
      static java.lang.StringgetStateString​(int state, java.lang.String lastError)
      Get the string for the host session state and flags.
      static java.lang.StringgetStateString​(int state, java.lang.String lastError, PropCnr cnr)
      Get the string for the host session state and flags.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HostState

        public HostState()
    • Method Detail

      • getStateString

        public static java.lang.String getStateString​(int state,
                                                      java.lang.String lastError,
                                                      PropCnr cnr)
        Get the string for the host session state and flags.
        Parameters:
        state - The host session native state.
        lastError - The last error string (5250), null or empty string for none.
        cnr - The property container for all strings in the appropriate language.
        Returns:
        The localized string depending on the property container strings and host state+flags.
      • getStateString

        public static java.lang.String getStateString​(int state,
                                                      java.lang.String lastError)
        Get the string for the host session state and flags.
        Parameters:
        state - The host session native state.
        lastError - The last error string (5250), null or empty string for none.
        Returns:
        The localized string depending on the property container strings and host state+flags.