org.drools.guvnor.client.decisiontable.widget
Class DecisionTableCellFactory

java.lang.Object
  extended by org.drools.guvnor.client.widgets.decoratedgrid.AbstractCellFactory<DTColumnConfig52>
      extended by org.drools.guvnor.client.decisiontable.widget.DecisionTableCellFactory

public class DecisionTableCellFactory
extends AbstractCellFactory<DTColumnConfig52>

A Factory to provide the Cells for given coordinate for Decision Tables.


Field Summary
 
Fields inherited from class org.drools.guvnor.client.widgets.decoratedgrid.AbstractCellFactory
grid, sce
 
Constructor Summary
DecisionTableCellFactory(SuggestionCompletionEngine sce, MergableGridWidget<DTColumnConfig52> grid, GuidedDecisionTable52 model)
          Construct a Cell Factory for a specific Decision Table
 
Method Summary
 DecoratedGridCellValueAdaptor<? extends Comparable<?>> getCell(DTColumnConfig52 column)
          Create a Cell for the given DTColumnConfig
 
Methods inherited from class org.drools.guvnor.client.widgets.decoratedgrid.AbstractCellFactory
makeBooleanCell, makeDateCell, makeNumericCell, makeTextCell
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DecisionTableCellFactory

public DecisionTableCellFactory(SuggestionCompletionEngine sce,
                                MergableGridWidget<DTColumnConfig52> grid,
                                GuidedDecisionTable52 model)
Construct a Cell Factory for a specific Decision Table

Parameters:
sce - SuggestionCompletionEngine to assist with drop-downs
grid - MergableGridWidget to which cells will send their updates
model - The Decision Table model to assist data-type derivation
Method Detail

getCell

public DecoratedGridCellValueAdaptor<? extends Comparable<?>> getCell(DTColumnConfig52 column)
Create a Cell for the given DTColumnConfig

Specified by:
getCell in class AbstractCellFactory<DTColumnConfig52>
Parameters:
column - The Decision Table model column
Returns:
A Cell


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