|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.wicketstuff.poi.excel.TableComponentAsXlsHandler
public class TableComponentAsXlsHandler
Request handler that respond the specified table component as a XLS file.
An possible Link onClick method implementation seting this handler could be:
public void onClick() {
IRequestHandler handler = new TableComponentAsXlsHandler( table, "fileName.xls");
RequestCycle.get().scheduleRequestHandlerAfterCurrent(handler);
}
| Constructor Summary | |
|---|---|
TableComponentAsXlsHandler(Component tableComponent,
String filename)
|
|
| Method Summary | |
|---|---|
void |
detach(IRequestCycle requestCycle)
|
protected org.apache.poi.ss.usermodel.Sheet |
newSheet()
Create the sheet in where component table data will be set |
void |
respond(IRequestCycle requestCycle)
|
void |
setCellExporter(CellExporter cellExporter)
Set the exporter strategy to be used by this handler. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TableComponentAsXlsHandler(Component tableComponent,
String filename)
tableComponent - filename - | Method Detail |
|---|
public void respond(IRequestCycle requestCycle)
respond in interface IRequestHandlerpublic void detach(IRequestCycle requestCycle)
detach in interface IRequestHandlerprotected org.apache.poi.ss.usermodel.Sheet newSheet()
Sheet to receive the table component datapublic void setCellExporter(CellExporter cellExporter)
GeneralPurposeExporter
cellExporter - CellExporter
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||