com.sencha.gxt.cell.core.client.form
Class CheckBoxCell

java.lang.Object
  extended by com.google.gwt.cell.client.AbstractCell<C>
      extended by com.google.gwt.cell.client.AbstractEditableCell<C,V>
          extended by com.google.gwt.cell.client.AbstractInputCell<T,V>
              extended by com.sencha.gxt.cell.core.client.AbstractEventInputCell<T,FieldCell.FieldViewData>
                  extended by com.sencha.gxt.cell.core.client.form.FieldCell<T>
                      extended by com.sencha.gxt.cell.core.client.form.ValueBaseInputCell<java.lang.Boolean>
                          extended by com.sencha.gxt.cell.core.client.form.CheckBoxCell
All Implemented Interfaces:
Cell<java.lang.Boolean>, ResizableCell, ParseErrorEvent.HasParseErrorHandlers
Direct Known Subclasses:
RadioCell

public class CheckBoxCell
extends ValueBaseInputCell<java.lang.Boolean>


Nested Class Summary
static interface CheckBoxCell.CheckBoxAppearance
           
static class CheckBoxCell.CheckBoxCellOptions
           
 
Nested classes/interfaces inherited from class com.sencha.gxt.cell.core.client.form.ValueBaseInputCell
ValueBaseInputCell.ValueBaseFieldAppearance
 
Nested classes/interfaces inherited from class com.sencha.gxt.cell.core.client.form.FieldCell
FieldCell.FieldAppearance, FieldCell.FieldAppearanceOptions, FieldCell.FieldViewData
 
Nested classes/interfaces inherited from interface com.google.gwt.cell.client.Cell
Cell.Context
 
Constructor Summary
CheckBoxCell()
           
CheckBoxCell(CheckBoxCell.CheckBoxAppearance appearance)
           
 
Method Summary
 java.lang.String getBoxLabel()
           
 boolean isEditing(Cell.Context context, Element parent, java.lang.Boolean value)
           
 void onBrowserEvent(Cell.Context context, Element parent, java.lang.Boolean value, NativeEvent event, ValueUpdater<java.lang.Boolean> valueUpdater)
           
 void render(Cell.Context context, java.lang.Boolean value, SafeHtmlBuilder sb)
           
 void setBoxLabel(XElement parent, java.lang.String boxLabel)
          The text that appears beside the checkbox (defaults to null).
 
Methods inherited from class com.sencha.gxt.cell.core.client.form.ValueBaseInputCell
addParseErrorHandler, disable, enable, getAppearance, getCursorPos, getEmptyText, getInputElement, getName, getPropertyEditor, getText, isAllowBlank, isClearValueOnParseError, isSelectOnFocus, onEmpty, resetFocus, select, selectAll, setAllowBlank, setClearValueOnParseError, setCursorPos, setEmptyText, setName, setPropertyEditor, setSelectOnFocus, setText
 
Methods inherited from class com.sencha.gxt.cell.core.client.form.FieldCell
finishEditing, getHeight, getWidth, handlesSelection, isDisabled, isReadOnly, onValid, redrawOnResize, setHeight, setReadOnly, setSize, setSize, setWidth
 
Methods inherited from class com.sencha.gxt.cell.core.client.AbstractEventInputCell
addHandler, fireEvent, isDisableEvents, setDisableEvents
 
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, setValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckBoxCell

public CheckBoxCell()

CheckBoxCell

public CheckBoxCell(CheckBoxCell.CheckBoxAppearance appearance)
Method Detail

getBoxLabel

public java.lang.String getBoxLabel()

isEditing

public boolean isEditing(Cell.Context context,
                         Element parent,
                         java.lang.Boolean value)
Specified by:
isEditing in interface Cell<java.lang.Boolean>
Overrides:
isEditing in class AbstractInputCell<java.lang.Boolean,FieldCell.FieldViewData>

onBrowserEvent

public void onBrowserEvent(Cell.Context context,
                           Element parent,
                           java.lang.Boolean value,
                           NativeEvent event,
                           ValueUpdater<java.lang.Boolean> valueUpdater)
Specified by:
onBrowserEvent in interface Cell<java.lang.Boolean>
Overrides:
onBrowserEvent in class FieldCell<java.lang.Boolean>

render

public void render(Cell.Context context,
                   java.lang.Boolean value,
                   SafeHtmlBuilder sb)
Specified by:
render in interface Cell<java.lang.Boolean>
Specified by:
render in class AbstractCell<java.lang.Boolean>

setBoxLabel

public void setBoxLabel(XElement parent,
                        java.lang.String boxLabel)
The text that appears beside the checkbox (defaults to null).

Parameters:
boxLabel - the box label


Copyright © 2012. All Rights Reserved.