public interface CellListener
CellListener
is an object that has an opportunity to inspect
a Cell
as it's being transformed, with access to the
Cell
, the current Map
of beans, and the old and
new values for the Cell
.Modifier and Type | Method | Description |
---|---|---|
boolean |
beforeCellProcessed(CellEvent event) |
Called immediately before a
Cell is about to be processed. |
void |
cellProcessed(CellEvent event) |
Called when a
Cell has been processed. |
boolean beforeCellProcessed(CellEvent event)
Cell
is about to be processed.
The given CellEvent
contains the following related data: a
reference to the Cell
that was processed, a Map
of bean names to bean values that was used, and the old (current) value
of the Cell
. The new value of the Cell
is not
yet available, so it is supplied as null
.event
- A SheetEvent
.boolean
that indicates whether the
Cell
should be processed. true
to process
the Cell
as normal, and false
to skip the
processing of the Cell
. Note that only one
CellListener
needs to return false
to
prevent the processing of the Cell
.void cellProcessed(CellEvent event)
Cell
has been processed. The given
CellEvent
contains the following related data: a reference
to the Cell
that was processed, a Map
of bean
names to bean values that was used, the old value of the
Cell
, and the new value of the Cell
after
processing.event
- The CellEvent
.Copyright © 2012–2018 Jett Team. All rights reserved.