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

java.lang.Object
  extended by org.drools.guvnor.client.widgets.drools.decoratedgrid.AbstractCellFactory<org.drools.ide.common.client.modeldriven.dt52.BaseColumn>
      extended by org.drools.guvnor.client.decisiontable.widget.DecisionTableCellFactory

public class DecisionTableCellFactory
extends AbstractCellFactory<org.drools.ide.common.client.modeldriven.dt52.BaseColumn>

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


Field Summary
 
Fields inherited from class org.drools.guvnor.client.widgets.drools.decoratedgrid.AbstractCellFactory
eventBus, sce
 
Constructor Summary
DecisionTableCellFactory(org.drools.ide.common.client.modeldriven.SuggestionCompletionEngine sce, com.google.gwt.event.shared.EventBus eventBus)
          Construct a Cell Factory for a specific Decision Table
 
Method Summary
 DecoratedGridCellValueAdaptor<? extends Comparable<?>> getCell(org.drools.ide.common.client.modeldriven.dt52.BaseColumn column)
          Create a Cell for the given DTColumnConfig
 void setModel(org.drools.ide.common.client.modeldriven.dt52.GuidedDecisionTable52 model)
          Set the model for which cells will be created
 
Methods inherited from class org.drools.guvnor.client.widgets.drools.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(org.drools.ide.common.client.modeldriven.SuggestionCompletionEngine sce,
                                com.google.gwt.event.shared.EventBus eventBus)
Construct a Cell Factory for a specific Decision Table

Parameters:
sce - SuggestionCompletionEngine to assist with drop-downs
model - The Decision Table model to assist data-type derivation
eventBus - An EventBus on which cells can subscribe to events
Method Detail

setModel

public void setModel(org.drools.ide.common.client.modeldriven.dt52.GuidedDecisionTable52 model)
Set the model for which cells will be created

Parameters:
model -

getCell

public DecoratedGridCellValueAdaptor<? extends Comparable<?>> getCell(org.drools.ide.common.client.modeldriven.dt52.BaseColumn column)
Create a Cell for the given DTColumnConfig

Specified by:
getCell in class AbstractCellFactory<org.drools.ide.common.client.modeldriven.dt52.BaseColumn>
Parameters:
column - The Decision Table model column
Returns:
A Cell


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