java.lang.Object
net.i2p.router.web.helpers.SidebarHelper.NetworkStateMessage
- Enclosing class:
SidebarHelper
State message to be displayed to the user in the summary bar.
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringMessage explaining the reachability.private SidebarHelper.NetworkStateReachability shown on the page.Constructor Summary
ConstructorsConstructorDescriptionNetworkStateMessage(SidebarHelper.NetworkState state, String msg) Create a network state message.Method Summary
All MethodsModifier and TypeMethodDescriptionGets the text explaining the reachability state.getState()Gets the reachability state to show in the summary bar.voidsetMessage(SidebarHelper.NetworkState state, String msg) Update the state and message.toString()Renders the state and its localized description for debug output.
Field Details
state
Reachability shown on the page.msg
Message explaining the reachability.
Constructor Details
NetworkStateMessage
NetworkStateMessage(SidebarHelper.NetworkState state, String msg) Create a network state message.- Parameters:
state- the reachability statemsg- text already localized by the caller, which may be aMessageFormatpattern such as "Clock Skew of {0}"
Method Details
setMessage
Update the state and message.- Parameters:
state- the reachability statemsg- text already localized by the caller, which may be aMessageFormatpattern such as "Clock Skew of {0}"
getState
Gets the reachability state to show in the summary bar.- Returns:
- one of the NetworkState values, never null
getMessage
Gets the text explaining the reachability state.- Returns:
- the text last set by setMessage, possibly a MessageFormat pattern
toString