Class CmsCellTableUtil
- java.lang.Object
-
- org.opencms.ade.sitemap.client.alias.CmsCellTableUtil
-
public final class CmsCellTableUtil extends java.lang.Object
Various static utility methods for dealing with cell tables.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
STATUS_ERROR
CSS class for the error text.static java.lang.String
STATUS_OK
CSS class for the 'Status OK' text.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
ensureCellTableParentResize(com.google.gwt.user.cellview.client.CellTable<?> table)
Ensures that surrounding scroll panels are notified when a table changes size.static com.google.gwt.safehtml.shared.SafeHtml
formatErrorHtml(java.lang.String error)
Formats the HTML for the error column of a cell table given an error message.
-
-
-
Field Detail
-
STATUS_ERROR
public static final java.lang.String STATUS_ERROR
CSS class for the error text.
-
STATUS_OK
public static final java.lang.String STATUS_OK
CSS class for the 'Status OK' text.
-
-
Method Detail
-
ensureCellTableParentResize
public static void ensureCellTableParentResize(com.google.gwt.user.cellview.client.CellTable<?> table)
Ensures that surrounding scroll panels are notified when a table changes size.- Parameters:
table
- the table for which the parent scroll panels should be notified
-
formatErrorHtml
public static com.google.gwt.safehtml.shared.SafeHtml formatErrorHtml(java.lang.String error)
Formats the HTML for the error column of a cell table given an error message.- Parameters:
error
- the error message (null for no error)- Returns:
- the SafeHtml representing the contents of the error cell
-
-