Guvnor web application Drools 6.0.0-SNAPSHOT

org.drools.guvnor.client.decisiontable.cells
Class PopupNumericBigDecimalEditCell

java.lang.Object
  extended by com.google.gwt.cell.client.AbstractCell<C>
      extended by com.google.gwt.cell.client.AbstractEditableCell<C,V>
          extended by org.drools.guvnor.client.decisiontable.cells.AbstractPopupEditCell<BigDecimal,BigDecimal>
              extended by org.drools.guvnor.client.decisiontable.cells.PopupNumericBigDecimalEditCell
All Implemented Interfaces:
com.google.gwt.cell.client.Cell<BigDecimal>

public class PopupNumericBigDecimalEditCell
extends AbstractPopupEditCell<BigDecimal,BigDecimal>

A Popup Text Editor for BigDecimal values.


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 inherited from class org.drools.guvnor.client.decisiontable.cells.AbstractPopupEditCell
isReadOnly, lastContext, lastParent, lastValue, offsetX, offsetY, panel, renderer, valueUpdater, vPanel
 
Constructor Summary
PopupNumericBigDecimalEditCell(boolean isReadOnly)
           
 
Method Summary
protected  void commit()
          Commit the change to the underlying model.
 void render(com.google.gwt.cell.client.Cell.Context context, BigDecimal value, com.google.gwt.safehtml.shared.SafeHtmlBuilder sb)
           
protected  void startEditing(com.google.gwt.cell.client.Cell.Context context, com.google.gwt.dom.client.Element parent, BigDecimal value)
          Initiate editing within the "Popup".
 
Methods inherited from class org.drools.guvnor.client.decisiontable.cells.AbstractPopupEditCell
isEditing, onBrowserEvent, onEnterKeyDown
 
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, resetFocus, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PopupNumericBigDecimalEditCell

public PopupNumericBigDecimalEditCell(boolean isReadOnly)
Method Detail

render

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

commit

protected void commit()
Description copied from class: AbstractPopupEditCell
Commit the change to the underlying model. Implementations should use the protected valueUpdater initialised in onBrowseEvent to pass new values to the model. Implementations should also invoke setValue to write the new value back to the Cell's HTML

Specified by:
commit in class AbstractPopupEditCell<BigDecimal,BigDecimal>

startEditing

protected void startEditing(com.google.gwt.cell.client.Cell.Context context,
                            com.google.gwt.dom.client.Element parent,
                            BigDecimal value)
Description copied from class: AbstractPopupEditCell
Initiate editing within the "Popup". Implementations should populate the child controls within the "Popup" before showing the Popup panel

Specified by:
startEditing in class AbstractPopupEditCell<BigDecimal,BigDecimal>

Guvnor web application Drools 6.0.0-SNAPSHOT

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