public void addMessage ( final boolean encode , final String msg , final Serializable ... args ) { MessageModel model = getOrCreateComponentModel ( ) ; model . messages . add ( new Duplet <> ( I18nUtilities . asMessage ( msg , args ) , encode ) ) ; // Potential for leaking memory here MemoryUtil . checkSize ( model . messages . size ( ) , this . getClass ( ) . getSimpleName ( ) ) ; }
Adds a message to the message box .