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  com.google.gwt.event.shared.EventBus eventBus
           
protected  org.drools.ide.common.client.modeldriven.SuggestionCompletionEngine sce
           
 
Constructor Summary
AbstractCellFactory(org.drools.ide.common.client.modeldriven.SuggestionCompletionEngine sce, 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> 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

sce

protected final org.drools.ide.common.client.modeldriven.SuggestionCompletionEngine sce

eventBus

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

AbstractCellFactory

public AbstractCellFactory(org.drools.ide.common.client.modeldriven.SuggestionCompletionEngine sce,
                           com.google.gwt.event.shared.EventBus eventBus)
Construct a Cell Factory for a specific grid widget

Parameters:
sce - SuggestionCompletionEngine to assist with drop-downs
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()

makeTextCell

protected DecoratedGridCellValueAdaptor<String> makeTextCell()


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