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

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

public abstract class AbstractCellFactory<T>
extends Object

A Factory to provide the Cells.


Field Summary
protected  MergableGridWidget<T> grid
           
protected  SuggestionCompletionEngine sce
           
 
Constructor Summary
AbstractCellFactory(SuggestionCompletionEngine sce, MergableGridWidget<T> grid)
          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> makeNumericCell()
           
protected  DecoratedGridCellValueAdaptor<String> makeTextCell()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

grid

protected MergableGridWidget<T> grid

sce

protected SuggestionCompletionEngine sce
Constructor Detail

AbstractCellFactory

public AbstractCellFactory(SuggestionCompletionEngine sce,
                           MergableGridWidget<T> grid)
Construct a Cell Factory for a specific grid widget

Parameters:
sce - SuggestionCompletionEngine to assist with drop-downs
grid - MergableGridWidget to which cells will send their updates
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()

makeTextCell

protected DecoratedGridCellValueAdaptor<String> makeTextCell()


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