Module jp.ecuacion.util.poi
Package jp.ecuacion.util.poi.excel.table
Interface IfFormatOneLineHeaderExcelTable<T>
- Type Parameters:
T- SeeIfExcelTable.
- All Superinterfaces:
IfExcelTable<T>
- All Known Subinterfaces:
IfFormatOneLineHeaderExcelTableReader<T>
- All Known Implementing Classes:
CellOneLineHeaderExcelTableReader,CellOneLineHeaderExcelTableWriter,StringOneLineHeaderExcelTableReader,StringOneLineHeaderExcelTableToBeanReader
Is a reader interface which treats one line header format tables.
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringReturns the value of the far left and top header cell to specify the position of the table.default String[][]Returns an array of header label strings.String[]Defines the header labels in the excel table.default intReturns the number of header lines.Methods inherited from interface jp.ecuacion.util.poi.excel.table.IfExcelTable
getSheetName, getStringValue, ignoresAdditionalColumnsOfHeaderData, ignoresAdditionalColumnsOfHeaderData, isVerticalAndHorizontalOpposite, isVerticalAndHorizontalOpposite
-
Method Details
-
getNumberOfHeaderLines
default int getNumberOfHeaderLines()Description copied from interface:IfExcelTableReturns the number of header lines.- Specified by:
getNumberOfHeaderLinesin interfaceIfExcelTable<T>- Returns:
- the number of header lines
-
getHeaderLabels
Defines the header labels in the excel table.It can be like
new String[] {"first name", "last name", "age"}. -
getHeaderLabelData
Description copied from interface:IfExcelTableReturns an array of header label strings.The data type of the return is
String[][]because table header can be multiple lines.- Specified by:
getHeaderLabelDatain interfaceIfExcelTable<T>- Returns:
- table header label strings
-
getFarLeftAndTopHeaderLabel
Description copied from interface:IfExcelTableReturns the value of the far left and top header cell to specify the position of the table.The method is called when
tableStartRowNumberisnull.
SeeExcelTable.tableStartRowNumberWhen the table doesn't have a header and
tableStartRowNumberisnull, anexceptionis thrown.
So always set non-nulltableStartRowNumbervalue when the table doesn't have a header.- Specified by:
getFarLeftAndTopHeaderLabelin interfaceIfExcelTable<T>- Returns:
- far left and top header label
"top" means the upper side of the header line when the table has multiple header lines.
-