added a convenience method

This commit is contained in:
Kohsuke Kawaguchi committed 2011-01-14 15:48:23 -08:00
1 parent 3ee8218204
commit 030671bf39
1 file changed
+7
@@ -96,6 +96,13 @@ public abstract class AbstractMarkupText {
addMarkup(startPos,endPos,"<a class='lowkey' href='"+url+"'>","</a>");
}
/**
* Hides the given text.
*/
public void hide( int startPos, int endPos ) {
addMarkup(startPos,endPos,"<span style='display:none'>","</span>");
}
/**
* Adds a start tag and end tag around the entire text
*/