Package com.iizix.term
Class HostState
- java.lang.Object
- com.iizix.term.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 Constructor Description HostState()
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getStateString(int state, java.lang.String lastError)
Get the string for the host session state and flags.static java.lang.String
getStateString(int state, java.lang.String lastError, PropCnr cnr)
Get the string for the host session state and flags.
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.