Guvnor web application Drools 6.0.0-SNAPSHOT

org.drools.guvnor.client.widgets.drools.decoratedgrid
Class AbstractCellFactory<T>

java.lang.Object
  extended by org.drools.guvnor.client.widgets.drools.decoratedgrid.AbstractCellFactory<T>
Direct Known Subclasses:
DecisionTableCellFactory, TemplateDataCellFactory

public abstract class AbstractCellFactory<T>
extends Object

A Factory to provide the Cells.


Field Summary
protected  CellTableDropDownDataValueMapProvider dropDownManager
           
protected  com.google.gwt.event.shared.EventBus eventBus
           
protected  boolean isReadOnly
           
protected  SuggestionCompletionEngine sce
           
 
Constructor Summary
AbstractCellFactory(SuggestionCompletionEngine sce, CellTableDropDownDataValueMapProvider dropDownManager, boolean isReadOnly, com.google.gwt.event.shared.EventBus eventBus)
          Construct a Cell Factory for a specific grid widget
 
Method Summary
abstract  DecoratedGridCellValueAdaptor<? extends Comparable<?>> getCell(T column)
          Create a Cell for the given Column
protected  DecoratedGridCellValueAdaptor<Boolean> makeBooleanCell()
           
protected  DecoratedGridCellValueAdaptor<Date> makeDateCell()
           
protected  DecoratedGridCellValueAdaptor<BigDecimal> makeNumericBigDecimalCell()
           
protected  DecoratedGridCellValueAdaptor<BigInteger> makeNumericBigIntegerCell()
           
protected  DecoratedGridCellValueAdaptor<Byte> makeNumericByteCell()
           
protected  DecoratedGridCellValueAdaptor<BigDecimal> makeNumericCell()
           
protected  DecoratedGridCellValueAdaptor<Double> makeNumericDoubleCell()
           
protected  DecoratedGridCellValueAdaptor<Float> makeNumericFloatCell()
           
protected  DecoratedGridCellValueAdaptor<Integer> makeNumericIntegerCell()
           
protected  DecoratedGridCellValueAdaptor<Long> makeNumericLongCell()
           
protected  DecoratedGridCellValueAdaptor<Short> makeNumericShortCell()
           
protected  DecoratedGridCellValueAdaptor<String> makeTextCell()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sce

protected final SuggestionCompletionEngine sce

dropDownManager

protected final CellTableDropDownDataValueMapProvider dropDownManager

isReadOnly

protected final boolean isReadOnly

eventBus

protected final com.google.gwt.event.shared.EventBus eventBus
Constructor Detail

AbstractCellFactory

public AbstractCellFactory(SuggestionCompletionEngine sce,
                           CellTableDropDownDataValueMapProvider dropDownManager,
                           boolean isReadOnly,
                           com.google.gwt.event.shared.EventBus eventBus)
Construct a Cell Factory for a specific grid widget

Parameters:
sce - SuggestionCompletionEngine to assist with drop-downs
dropDownManager - DropDownManager for dependent cells
isReadOnly - Should cells be created for a read-only mode of operation
eventBus - EventBus to which cells can send update events
Method Detail

getCell

public abstract DecoratedGridCellValueAdaptor<? extends Comparable<?>> getCell(T column)
Create a Cell for the given Column

Parameters:
column - The Decision Table model column
Returns:
A Cell

makeBooleanCell

protected DecoratedGridCellValueAdaptor<Boolean> makeBooleanCell()

makeDateCell

protected DecoratedGridCellValueAdaptor<Date> makeDateCell()

makeNumericCell

protected DecoratedGridCellValueAdaptor<BigDecimal> makeNumericCell()

makeNumericBigDecimalCell

protected DecoratedGridCellValueAdaptor<BigDecimal> makeNumericBigDecimalCell()

makeNumericBigIntegerCell

protected DecoratedGridCellValueAdaptor<BigInteger> makeNumericBigIntegerCell()

makeNumericByteCell

protected DecoratedGridCellValueAdaptor<Byte> makeNumericByteCell()

makeNumericDoubleCell

protected DecoratedGridCellValueAdaptor<Double> makeNumericDoubleCell()

makeNumericFloatCell

protected DecoratedGridCellValueAdaptor<Float> makeNumericFloatCell()

makeNumericIntegerCell

protected DecoratedGridCellValueAdaptor<Integer> makeNumericIntegerCell()

makeNumericLongCell

protected DecoratedGridCellValueAdaptor<Long> makeNumericLongCell()

makeNumericShortCell

protected DecoratedGridCellValueAdaptor<Short> makeNumericShortCell()

makeTextCell

protected DecoratedGridCellValueAdaptor<String> makeTextCell()

Guvnor web application Drools 6.0.0-SNAPSHOT

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