Lines Matching refs:html

10  * or http://forgerock.org/license/CDDLv1.0.html.
63 import javax.swing.text.html.HTMLEditorKit;
983 pane.setContentType("text/html");
1095 * Returns a String that contains the html passed as parameter with a span
1099 * @param html
1100 * the original html text.
1106 public static String applyFontToHtml(String html, Font font)
1110 buf.append("<span style=\"").append(getFontStyle(font)).append("\">").append(html).append(SPAN_CLOSE);
1116 * Returns a String that contains the html passed as parameter with a div
1120 * @param html
1121 * the original html text.
1127 public static String applyFontToHtmlWithDiv(String html, Font font)
1131 buf.append("<div style=\"").append(getFontStyle(font)).append("\">").append(html).append(DIV_CLOSE);
1163 * Returns the html text passed as parameter with the error background applied
1166 * @param html
1167 * the original html.
1168 * @return the html text passed as parameter with the error background applied
1171 public static String applyErrorBackgroundToHtml(String html)
1173 return DIV_OPEN_ERROR_BACKGROUND + html + DIV_CLOSE;
1177 * Returns the html text passed as parameter with the warning background
1180 * @param html
1181 * the original html.
1182 * @return the html text passed as parameter with the warning background
1185 public static String applyWarningBackgroundToHtml(String html)
1187 return DIV_OPEN_WARNING_BACKGROUND + html + DIV_CLOSE;
1191 * Returns the html text passed as parameter with the success background
1194 * @param html
1195 * the original html.
1196 * @return the html text passed as parameter with the success background
1199 public static String applySuccessfulBackgroundToHtml(String html)
1201 return DIV_OPEN_SUCCESSFUL_BACKGROUND + html + DIV_CLOSE;
1205 * Returns the html text passed as parameter with some added margin.
1207 * @param html
1208 * the original html text.
1217 * @return the html text passed as parameter with some added margin.
1219 public static String applyMargin(String html, int top, int right, int bottom, int left)
1221 return "<div style=\"margin:" + top + "px " + right + "px " + bottom + "px " + left + "px;\">" + html + DIV_CLOSE;
1519 super("text/html", null);