org.drools.guvnor.client.decisiontable.widget
Class DecisionTableCellValueFactory
java.lang.Object
org.drools.guvnor.client.widgets.decoratedgrid.AbstractCellValueFactory<DTColumnConfig>
org.drools.guvnor.client.decisiontable.widget.DecisionTableCellValueFactory
public class DecisionTableCellValueFactory
- extends AbstractCellValueFactory<DTColumnConfig>
A Factory to create CellValues applicable to given columns.
Methods inherited from class org.drools.guvnor.client.widgets.decoratedgrid.AbstractCellValueFactory |
injectDateConvertor, makeCellValue, makeNewBooleanCellValue, makeNewBooleanCellValue, makeNewDateCellValue, makeNewDateCellValue, makeNewDialectCellValue, makeNewDialectCellValue, makeNewNumericCellValue, makeNewNumericCellValue, makeNewStringCellValue, makeNewStringCellValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DecisionTableCellValueFactory
public DecisionTableCellValueFactory(SuggestionCompletionEngine sce,
TypeSafeGuidedDecisionTable model)
- Construct a Cell Value Factory for a specific Decision Table
- Parameters:
sce
- SuggestionCompletionEngine to assist with drop-downsmodel
- The Decision Table model to assist data-type derivation
convertToDTModelCell
public DTCellValue convertToDTModelCell(DTColumnConfig column,
CellValue<?> cell)
- Convert a type-safe UI CellValue into a type-safe Model CellValue
- Parameters:
column
- Model column from which data-type can be derivedcell
- UI CellValue to convert into Model CellValue
- Returns:
makeCellValue
public CellValue<? extends Comparable<?>> makeCellValue(DTColumnConfig column,
int iRow,
int iCol,
DTCellValue dcv)
- Make a CellValue applicable for the column
- Parameters:
column
- The model columniRow
- Row coordinate for initialisationiCol
- Column coordinate for initialisationdcv
- The Model cell containing the value
- Returns:
- A CellValue
getDataType
protected DTDataTypes getDataType(DTColumnConfig column)
- Specified by:
getDataType
in class AbstractCellValueFactory<DTColumnConfig>
makeNewRowNumberCellValue
protected CellValue<BigDecimal> makeNewRowNumberCellValue(int iRow,
int iCol)
Copyright © 2001-2011 JBoss Inc.. All Rights Reserved.