Class CheckboxCellImpl

  • All Implemented Interfaces:
    com.google.gwt.cell.client.Cell<Boolean>

    public class CheckboxCellImpl
    extends com.google.gwt.cell.client.AbstractEditableCell<Boolean,​Boolean>
    A Cell used to render a checkbox. The value of the checkbox may be toggled using the ENTER key as well as via mouse click.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface com.google.gwt.cell.client.Cell

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

      Fields 
      Modifier and Type Field Description
      protected boolean isReadOnly  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isEditing​(com.google.gwt.cell.client.Cell.Context context, com.google.gwt.dom.client.Element parent, Boolean value)  
      void onBrowserEvent​(com.google.gwt.cell.client.Cell.Context context, com.google.gwt.dom.client.Element parent, Boolean value, com.google.gwt.dom.client.NativeEvent event, com.google.gwt.cell.client.ValueUpdater<Boolean> valueUpdater)  
      void render​(com.google.gwt.cell.client.Cell.Context context, Boolean value, com.google.gwt.safehtml.shared.SafeHtmlBuilder sb)  
      • Methods inherited from class com.google.gwt.cell.client.AbstractEditableCell

        clearViewData, getViewData, setViewData
      • Methods inherited from class com.google.gwt.cell.client.AbstractCell

        dependsOnSelection, getConsumedEvents, handlesSelection, onEnterKeyDown, resetFocus, setValue
    • Field Detail

      • isReadOnly

        protected boolean isReadOnly
    • Constructor Detail

      • CheckboxCellImpl

        public CheckboxCellImpl​(boolean isReadOnly)
        Construct a new CheckboxCellImpl
    • Method Detail

      • isEditing

        public boolean isEditing​(com.google.gwt.cell.client.Cell.Context context,
                                 com.google.gwt.dom.client.Element parent,
                                 Boolean value)
        Specified by:
        isEditing in interface com.google.gwt.cell.client.Cell<Boolean>
        Specified by:
        isEditing in class com.google.gwt.cell.client.AbstractEditableCell<Boolean,​Boolean>
      • onBrowserEvent

        public void onBrowserEvent​(com.google.gwt.cell.client.Cell.Context context,
                                   com.google.gwt.dom.client.Element parent,
                                   Boolean value,
                                   com.google.gwt.dom.client.NativeEvent event,
                                   com.google.gwt.cell.client.ValueUpdater<Boolean> valueUpdater)
        Specified by:
        onBrowserEvent in interface com.google.gwt.cell.client.Cell<Boolean>
        Overrides:
        onBrowserEvent in class com.google.gwt.cell.client.AbstractCell<Boolean>
      • render

        public void render​(com.google.gwt.cell.client.Cell.Context context,
                           Boolean value,
                           com.google.gwt.safehtml.shared.SafeHtmlBuilder sb)
        Specified by:
        render in interface com.google.gwt.cell.client.Cell<Boolean>
        Specified by:
        render in class com.google.gwt.cell.client.AbstractCell<Boolean>