E
- DataElement
type written to by the
bound writerP
- "Processed" data type that can be written\
by the bound writerpublic class ColumnBoundWriter<E extends DataElement,P> extends Object
ElementWriter
to a SlideSet
table column.Modifier and Type | Field and Description |
---|---|
private int |
column |
private SlideSet |
data |
private ElementWriter<E,P> |
writer |
Constructor and Description |
---|
ColumnBoundWriter(SlideSet data,
int column,
ElementWriter<E,P> writer)
Bind an
ElementWriter to a SlideSet
table column. |
Modifier and Type | Method and Description |
---|---|
int |
getColumnNum()
Get the column index
|
ElementWriter<E,P> |
getWriter()
Get the bound writer
|
void |
write(P item,
int row)
Write data to the table
|
private ElementWriter<E extends DataElement,P> writer
private SlideSet data
private int column
public ColumnBoundWriter(SlideSet data, int column, ElementWriter<E,P> writer)
ElementWriter
to a SlideSet
table column.data
- Table to which the writer will be boundcolumn
- Index of the column to which the writer will be boundwriter
- Writer instance to bind to the table columnpublic void write(P item, int row) throws SlideSetException
item
- "Processed" data to writerow
- Index of the table row to which
the data should be writtenSlideSetException
- If item
is not compatible
with the writerpublic int getColumnNum()
public ElementWriter<E,P> getWriter()
Copyright © 2023. All rights reserved.