Class CmsButtonCell<T>

  • Type Parameters:
    T - the cell type
    All Implemented Interfaces:
    com.google.gwt.cell.client.Cell<T>

    public class CmsButtonCell<T>
    extends com.google.gwt.cell.client.ActionCell<T>
    Cell class for rendering a button inside a cell table.

    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.google.gwt.cell.client.ActionCell

        com.google.gwt.cell.client.ActionCell.Delegate<T extends java.lang.Object>
      • Nested classes/interfaces inherited from interface com.google.gwt.cell.client.Cell

        com.google.gwt.cell.client.Cell.Context
    • Constructor Summary

      Constructors 
      Constructor Description
      CmsButtonCell​(java.lang.String title, java.lang.String cssClass, com.google.gwt.cell.client.ActionCell.Delegate<T> delegate, com.google.common.base.Predicate<T> checkActive)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void render​(com.google.gwt.cell.client.Cell.Context context, T value, com.google.gwt.safehtml.shared.SafeHtmlBuilder sb)  
      • Methods inherited from class com.google.gwt.cell.client.ActionCell

        onBrowserEvent, onEnterKeyDown
      • Methods inherited from class com.google.gwt.cell.client.AbstractCell

        dependsOnSelection, getConsumedEvents, handlesSelection, isEditing, resetFocus, setValue
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CmsButtonCell

        public CmsButtonCell​(java.lang.String title,
                             java.lang.String cssClass,
                             com.google.gwt.cell.client.ActionCell.Delegate<T> delegate,
                             com.google.common.base.Predicate<T> checkActive)
        Creates a new instance.

        Parameters:
        title - the value for the title attribute of the button
        cssClass - the value for the CSS class of the button
        delegate - the delegate which should be called when the button is clicked
        checkActive - a predicate to check whether the button should be active
    • Method Detail

      • render

        public void render​(com.google.gwt.cell.client.Cell.Context context,
                           T value,
                           com.google.gwt.safehtml.shared.SafeHtmlBuilder sb)
        Specified by:
        render in interface com.google.gwt.cell.client.Cell<T>
        Overrides:
        render in class com.google.gwt.cell.client.ActionCell<T>
        See Also:
        ActionCell.render(com.google.gwt.cell.client.Cell.Context, java.lang.Object, com.google.gwt.safehtml.shared.SafeHtmlBuilder)