java.lang.Object
net.i2p.router.web.helpers.SidebarHelper.NetworkStateMessage
Enclosing class:
SidebarHelper

public static class SidebarHelper.NetworkStateMessageextends Object
State message to be displayed to the user in the summary bar.
  • Field Details

  • Constructor Details

    • NetworkStateMessage

      NetworkStateMessage(SidebarHelper.NetworkState state, String msg)
      Create a network state message.
      Parameters:
      state - the reachability state
      msg - text already localized by the caller, which may be a MessageFormat pattern such as "Clock Skew of {0}"
  • Method Details

    • setMessage

      public void setMessage(SidebarHelper.NetworkState state, String msg)
      Update the state and message.
      Parameters:
      state - the reachability state
      msg - text already localized by the caller, which may be a MessageFormat pattern such as "Clock Skew of {0}"
    • getState

      public SidebarHelper.NetworkState getState()
      Gets the reachability state to show in the summary bar.
      Returns:
      one of the NetworkState values, never null
    • getMessage

      public String getMessage()
      Gets the text explaining the reachability state.
      Returns:
      the text last set by setMessage, possibly a MessageFormat pattern
    • toString

      public String toString()
      Renders the state and its localized description for debug output.
      Overrides:
      toString in class Object