/** * Adds a text substitution to the component. The text will inherit this * component's formatting * * @param text the text to substitute */ public void addWith(String text) { addWith( new TextComponent( text ) ); }
/** * Adds a text substitution to the component. The text will inherit this * component's formatting * * @param text the text to substitute */ public void addWith(String text) { addWith( new TextComponent( text ) ); }