Class CmsCellTableUtil

java.lang.Object
org.opencms.ade.sitemap.client.alias.CmsCellTableUtil

public final class CmsCellTableUtil extends Object
Various static utility methods for dealing with cell tables.

  • Field Details

    • STATUS_ERROR

      public static final String STATUS_ERROR
      CSS class for the error text.
    • STATUS_OK

      public static final String STATUS_OK
      CSS class for the 'Status OK' text.
  • Method Details

    • 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(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