java.lang.Object
net.i2p.router.web.FormHandler.Message
- Enclosing class:
FormHandler
Message class to encapsulate the message text and the canClose flag.
Field Summary
Constructor Summary
Method Summary
All MethodsModifier and TypeMethodDescriptiongetText()Returns the message text.booleanWhether the user may close this form message.
Field Details
text
The text of the message.canClose
private boolean canCloseTrue if the message can be closed.
Constructor Details
Message
Holds a message and whether the user may dismiss it.- Parameters:
text- the message text shown to the usercanClose- whether the user is allowed to dismiss it
Method Details
getText
Returns the message text.- Returns:
- the message text as it was queued, not HTML-escaped
isCanClose
public boolean isCanClose()Whether the user may close this form message.- Returns:
- true if the message can be closed by the user