org.subtlelib.poi.impl.row.RowContextNoImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of poi.builder Show documentation
Show all versions of poi.builder Show documentation
Convenience library for apache poi-based xls documents creation
The newest version!
package org.subtlelib.poi.impl.row;
import java.util.Collection;
import java.util.Date;
import org.apache.poi.ss.usermodel.Row;
import org.subtlelib.poi.api.row.RowContext;
import org.subtlelib.poi.api.sheet.SheetContext;
import org.subtlelib.poi.api.style.Style;
import org.subtlelib.poi.api.totals.ColumnTotalsDataRange;
import org.subtlelib.poi.api.totals.Formula;
import com.google.common.base.Optional;
//TODO think of the case conditionalCell().text() - is text() supposed to move pointer in delegate?
public class RowContextNoImpl extends AbstractDelegatingRowContext {
private final RowContext delegate;
public RowContextNoImpl(SheetContext sheet) {
super(sheet);
this.delegate = this;
}
public RowContextNoImpl(SheetContext sheet, RowContext delegate) {
super(sheet);
this.delegate = delegate;
}
@Override
public RowContext total(String text) {
return delegate;
}
@Override
public RowContext header(String text) {
return delegate;
}
@Override
public RowContext text(String text) {
return delegate;
}
@Override
public RowContext text(String text, Style style) {
return delegate;
}
@Override
public RowContext text(Optional text) {
return delegate;
}
@Override
public RowContext text(Optional text, Style style) {
return delegate;
}
@Override
public RowContext multilineText(Collection lines) {
return delegate;
}
@Override
public RowContext multilineText(Collection lines, Style style) {
return delegate;
}
@Override
public RowContext number(Number number, Style style) {
return delegate;
}
@Override
public RowContext number(Optional extends Number> number) {
return delegate;
}
@Override
public RowContext number(Optional extends Number> number, Style style) {
return delegate;
}
@Override
public RowContext number(Number number) {
return delegate;
}
@Override
public RowContext date(Date date) {
return delegate;
}
@Override
public RowContext date(Date date, Style style) {
return delegate;
}
@Override
public RowContext date(Optional date) {
return delegate;
}
@Override
public RowContext date(Optional date, Style style) {
return delegate;
}
@Override
public RowContext skipCell() {
return delegate;
}
@Override
public RowContext skipCells(int offset) {
return delegate;
}
@Override
public RowContext cellAt(int newIndex) {
return delegate;
}
@Override
public RowContext percentage(Number number) {
return delegate;
}
@Override
public RowContext percentage(Optional extends Number> number) {
return delegate;
}
@Override
public RowContext conditionalCell(boolean condition) {
return delegate;
}
@Override
public RowContext setColumnWidth(int width) {
return delegate;
}
@Override
public RowContext setRowHeight(int height) {
return delegate;
}
@Override
public RowContext mergeCells(int number) {
return delegate;
}
@Override
public Row getNativeRow() {
throw new UnsupportedOperationException("RowContextNoImpl doesn't have underlying poi row");
}
@Override
public RowContext setTotalsDataRange(ColumnTotalsDataRange data) {
return delegate;
}
@Override
public RowContext total(Formula formula) {
return delegate;
}
@Override
public RowContext total(Formula formula, Style style) {
return delegate;
}
@Override
public RowContext totals(Formula formula, int times) {
return delegate;
}
@Override
public RowContext totals(Formula formula, int times, Style style) {
return delegate;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy