commit | 1d6792208862eedeff4c4ea685a1537a68e35048 | [log] [tgz] |
---|---|---|
author | Shawn Pearce <sop@google.com> | Sat Jul 06 19:20:02 2013 -0700 |
committer | Shawn Pearce <sop@google.com> | Sun Jul 07 21:06:09 2013 -0700 |
tree | b0b9e901ed9dd6954c42309dce19b7ebd692809d | |
parent | 9023701849a3a46c464d5d93d89da8aad9f6c04a [diff] |
Add TH element support to SafeHtmlBuilder Simple wrapper functions to support creating a <th> element. Change-Id: Ife1a3816db9da864d438ea16360f846766a48fc1
diff --git a/gerrit-gwtexpui/src/main/java/com/google/gwtexpui/safehtml/client/SafeHtmlBuilder.java b/gerrit-gwtexpui/src/main/java/com/google/gwtexpui/safehtml/client/SafeHtmlBuilder.java index f63b5d0..8ff99ee 100644 --- a/gerrit-gwtexpui/src/main/java/com/google/gwtexpui/safehtml/client/SafeHtmlBuilder.java +++ b/gerrit-gwtexpui/src/main/java/com/google/gwtexpui/safehtml/client/SafeHtmlBuilder.java
@@ -318,6 +318,16 @@ return closeElement("td"); } + /** Append "<th>"; attributes may be set if needed */ + public SafeHtmlBuilder openTh() { + return openElement("th"); + } + + /** Append "</th>" */ + public SafeHtmlBuilder closeTh() { + return closeElement("th"); + } + /** Append "<div>"; attributes may be set if needed */ public SafeHtmlBuilder openDiv() { return openElement("div");