public void setJustification(Justification justification) { if (justification == Justification.CENTER) { execCommand("JustifyCenter", null); } else if (justification == Justification.FULL) { execCommand("JustifyFull", null); } else if (justification == Justification.LEFT) { execCommand("JustifyLeft", null); } else if (justification == Justification.RIGHT) { execCommand("JustifyRight", null); } }
public void insertImage(String url) { execCommand("InsertImage", url); }
public void createLink(String url) { execCommand("CreateLink", url); }
public void insertHorizontalRule() { execCommand("InsertHorizontalRule", null); }
public void leftIndent() { execCommand("Outdent", null); }
public void rightIndent() { execCommand("Indent", null); }
public void redo() { execCommand("Redo", "false"); }
public void selectAll() { execCommand("SelectAll", null); }
public void setFontName(String name) { execCommand("FontName", name); }
public void toggleBold() { execCommand("Bold", "false"); }
public void toggleItalic() { execCommand("Italic", "false"); }
public void toggleSubscript() { execCommand("Subscript", "false"); }
public void insertOrderedList() { execCommand("InsertOrderedList", null); }
public void removeFormat() { execCommand("RemoveFormat", null); }
public void setBackColor(String color) { execCommand("BackColor", color); }
public void setForeColor(String color) { execCommand("ForeColor", color); }
public void undo() { execCommand("Undo", "false"); }
public void insertUnorderedList() { execCommand("InsertUnorderedList", null); }
public void insertHTML(@IsSafeHtml String html) { execCommand("InsertHTML", html); }
public void setFontSize(FontSize fontSize) { execCommand("FontSize", Integer.toString(fontSize.getNumber())); }