com.google.gwt.safehtml.client.SafeHtmlTemplates Java Examples
The following examples show how to use
com.google.gwt.safehtml.client.SafeHtmlTemplates.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ToDoCell.java From blog with MIT License | 4 votes |
/** * The view-mode template */ @SafeHtmlTemplates.Template("<div class='{2}' data-timestamp='{3}'>" + "{0} " + "<label>{1}</label>" + "<button class='destroy'></a>" + "</div>") SafeHtml view(SafeHtml checked, SafeHtml task, String done, String timestamp);
Example #2
Source File: Pending.java From core with GNU Lesser General Public License v2.1 | 4 votes |
@SafeHtmlTemplates.Template( "<div><img src=\"images/loading_lite.gif\" class=\"spinner\"/><span class=\"title\">{0}</span></div>") SafeHtml body(String title);
Example #3
Source File: ToDoCell.java From blog with MIT License | 2 votes |
/** * A template the renders a checked input */ @SafeHtmlTemplates.Template("<input class='toggle' type='checkbox' checked>") SafeHtml inputChecked();
Example #4
Source File: ToDoCell.java From blog with MIT License | 2 votes |
/** * A template the renders an un-checked input */ @SafeHtmlTemplates.Template("<input class='toggle' type='checkbox'>") SafeHtml inputClear();
Example #5
Source File: ToDoCell.java From blog with MIT License | 2 votes |
/** * The edit-mode template */ @SafeHtmlTemplates.Template("<div class='listItem editing'><input class='edit' value='{0}' type='text'></div>") SafeHtml edit(String task);