Guvnor web application Drools 6.0.0-SNAPSHOT

org.drools.guvnor.client.widgets.drools.decoratedgrid
Class CheckboxCellImpl

java.lang.Object
  extended by com.google.gwt.cell.client.AbstractCell<C>
      extended by com.google.gwt.cell.client.AbstractEditableCell<Boolean,Boolean>
          extended by org.drools.guvnor.client.widgets.drools.decoratedgrid.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
protected  boolean isReadOnly
           
 
Constructor Summary
CheckboxCellImpl(boolean isReadOnly)
          Construct a new CheckboxCellImpl
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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>

Guvnor web application Drools 6.0.0-SNAPSHOT

Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.