|
||||||||||
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 SuggestionCompletionEngine |
sce
|
Constructor Summary | |
---|---|
AbstractCellValueFactory(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 |
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<BigDecimal> |
makeNewBigDecimalCellValue(BigDecimal initialValue)
|
protected CellValue<BigInteger> |
makeNewBigIntegerCellValue(BigInteger initialValue)
|
protected CellValue<Boolean> |
makeNewBooleanCellValue()
|
protected CellValue<Boolean> |
makeNewBooleanCellValue(Boolean initialValue)
|
protected CellValue<Byte> |
makeNewByteCellValue(Byte initialValue)
|
protected CellValue<Date> |
makeNewDateCellValue()
|
protected CellValue<Date> |
makeNewDateCellValue(Date initialValue)
|
protected CellValue<String> |
makeNewDialectCellValue()
|
protected CellValue<String> |
makeNewDialectCellValue(String initialValue)
|
protected CellValue<Double> |
makeNewDoubleCellValue(Double initialValue)
|
protected CellValue<Float> |
makeNewFloatCellValue(Float initialValue)
|
protected CellValue<Integer> |
makeNewIntegerCellValue(Integer initialValue)
|
protected CellValue<Long> |
makeNewLongCellValue(Long initialValue)
|
protected CellValue<BigDecimal> |
makeNewNumericCellValue()
|
protected CellValue<BigDecimal> |
makeNewNumericCellValue(BigDecimal initialValue)
|
protected CellValue<Short> |
makeNewShortCellValue(Short 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 SuggestionCompletionEngine sce
Constructor Detail |
---|
public AbstractCellValueFactory(SuggestionCompletionEngine sce)
Method Detail |
---|
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 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<BigDecimal> makeNewBigDecimalCellValue(BigDecimal initialValue)
protected CellValue<BigInteger> makeNewBigIntegerCellValue(BigInteger initialValue)
protected CellValue<Byte> makeNewByteCellValue(Byte initialValue)
protected CellValue<Double> makeNewDoubleCellValue(Double initialValue)
protected CellValue<Float> makeNewFloatCellValue(Float initialValue)
protected CellValue<Integer> makeNewIntegerCellValue(Integer initialValue)
protected CellValue<Long> makeNewLongCellValue(Long initialValue)
protected CellValue<Short> makeNewShortCellValue(Short 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 |