org.odftoolkit.simple.table
Interface CellValueAdapter
- All Known Implementing Classes:
- DefaultCellValueAdapter
public interface CellValueAdapter
This interface supplies a method which can adapt string content to a more
proper cell value type as need. This a very useful function in
Cell.setDisplayText
and table cell text replacement. For example, if a table
cell would be replaced with string "1234" in text navigation, the cell value
type can be adapted to "float" automatically with the help of
CellValueAdapter
.
Different adapter realizations have different adaptive rules.
- Since:
- 0.3
- See Also:
Cell.setDisplayText(java.lang.String, org.odftoolkit.simple.table.CellValueAdapter)
,
CellSelection
Method Summary |
void |
adaptValue(Cell cell,
String value)
Adapt string content to a more proper cell value type as need. |
DEFAULT_VALUE_ADAPTER
static final CellValueAdapter DEFAULT_VALUE_ADAPTER
- The default cell value adapter.
adaptValue
void adaptValue(Cell cell,
String value)
- Adapt string content to a more proper cell value type as need.
- Parameters:
cell
- the cell need to value adapt.value
- the value to be adapted.
Copyright © 2010-2017 The Apache Software Foundation. All Rights Reserved.