|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.drools.guvnor.client.widgets.drools.decoratedgrid.AbstractCellValueFactory<C,V>
public abstract class AbstractCellValueFactory<C,V>
A Factory to create CellValues applicable to given columns.
| Field Summary | |
|---|---|
protected static DateConverter |
DATE_CONVERTOR
|
protected org.drools.ide.common.client.modeldriven.SuggestionCompletionEngine |
sce
|
| Constructor Summary | |
|---|---|
AbstractCellValueFactory(org.drools.ide.common.client.modeldriven.SuggestionCompletionEngine sce)
|
|
| Method Summary | |
|---|---|
abstract List<CellValue<? extends Comparable<?>>> |
convertColumnData(C column,
List<V> columnData)
Convert a column of domain data to that suitable for the UI |
protected abstract CellValue<? extends Comparable<?>> |
convertModelCellValue(C column,
V cell)
Convert a Model cell to one that can be used in the UI |
protected abstract V |
convertToModelCell(C column,
CellValue<?> cell)
Convert a type-safe UI CellValue into a type-safe Model CellValue |
protected abstract org.drools.ide.common.client.modeldriven.dt52.DTDataTypes52 |
getDataType(C column)
Get the data-type for a column |
static void |
injectDateConvertor(DateConverter dc)
Override the default, GWT-centric, Date conversion utility class. |
abstract List<V> |
makeColumnData(C column)
Construct a new column of data for the underlying model |
protected abstract V |
makeModelCellValue(C column)
Make a Model cell for the given column |
protected CellValue<Boolean> |
makeNewBooleanCellValue()
|
protected CellValue<Boolean> |
makeNewBooleanCellValue(Boolean initialValue)
|
protected CellValue<Date> |
makeNewDateCellValue()
|
protected CellValue<Date> |
makeNewDateCellValue(Date initialValue)
|
protected CellValue<String> |
makeNewDialectCellValue()
|
protected CellValue<String> |
makeNewDialectCellValue(String initialValue)
|
protected CellValue<BigDecimal> |
makeNewNumericCellValue()
|
protected CellValue<BigDecimal> |
makeNewNumericCellValue(BigDecimal initialValue)
|
protected CellValue<String> |
makeNewStringCellValue()
|
protected CellValue<String> |
makeNewStringCellValue(Object initialValue)
|
abstract List<V> |
makeRowData()
Construct a new row of data for the underlying model |
abstract DynamicDataRow |
makeUIRowData()
Construct a new row of data for the MergableGridWidget |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static DateConverter DATE_CONVERTOR
protected org.drools.ide.common.client.modeldriven.SuggestionCompletionEngine sce
| Constructor Detail |
|---|
public AbstractCellValueFactory(org.drools.ide.common.client.modeldriven.SuggestionCompletionEngine sce)
| Method Detail |
|---|
public static void injectDateConvertor(DateConverter dc)
dc - public abstract List<V> makeRowData()
public abstract DynamicDataRow makeUIRowData()
public abstract List<V> makeColumnData(C column)
column -
public abstract List<CellValue<? extends Comparable<?>>> convertColumnData(C column,
List<V> columnData)
column - columnData -
protected abstract V makeModelCellValue(C column)
column -
protected abstract CellValue<? extends Comparable<?>> convertModelCellValue(C column,
V cell)
cell -
protected abstract V convertToModelCell(C column,
CellValue<?> cell)
column - Model column from which data-type can be derivedcell - UI CellValue to convert into Model CellValue
protected abstract org.drools.ide.common.client.modeldriven.dt52.DTDataTypes52 getDataType(C column)
column -
protected CellValue<Boolean> makeNewBooleanCellValue()
protected CellValue<Boolean> makeNewBooleanCellValue(Boolean initialValue)
protected CellValue<Date> makeNewDateCellValue()
protected CellValue<Date> makeNewDateCellValue(Date initialValue)
protected CellValue<String> makeNewDialectCellValue()
protected CellValue<String> makeNewDialectCellValue(String initialValue)
protected CellValue<BigDecimal> makeNewNumericCellValue()
protected CellValue<BigDecimal> makeNewNumericCellValue(BigDecimal initialValue)
protected CellValue<String> makeNewStringCellValue()
protected CellValue<String> makeNewStringCellValue(Object initialValue)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||