Package org.apache.poi.ss.formula.ptg
Class TablePtg
- java.lang.Object
-
- org.apache.poi.ss.formula.ptg.Ptg
-
- org.apache.poi.ss.formula.ptg.OperandPtg
-
- org.apache.poi.ss.formula.ptg.AreaPtgBase
-
- org.apache.poi.ss.formula.ptg.Area3DPtg
-
- org.apache.poi.ss.formula.ptg.TablePtg
-
- All Implemented Interfaces:
java.io.Serializable,Duplicatable,GenericRecord,ExternSheetReferenceToken,AreaI,WorkbookDependentFormula
public class TablePtg extends Area3DPtg
TODO: XSSF only- Since:
- 3.9.7
- Author:
- henri
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTablePtg.Item-
Nested classes/interfaces inherited from interface org.apache.poi.ss.formula.ptg.AreaI
AreaI.OffsetArea
-
-
Field Summary
Fields Modifier and Type Field Description static shortsid-
Fields inherited from class org.apache.poi.ss.formula.ptg.Area3DPtg
field_1_index_extern_sheet
-
Fields inherited from class org.apache.poi.ss.formula.ptg.Ptg
CLASS_ARRAY, CLASS_REF, CLASS_VALUE, EMPTY_PTG_ARRAY
-
-
Constructor Summary
Constructors Constructor Description TablePtg(int extIdx, int firstRow, int lastRow, int firstColumn, int lastColumn, java.lang.String tableName, TablePtg.Item[] items, java.lang.String[] columns, boolean inTable)TablePtg(LittleEndianInput in)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.StringformatAsFormulaString(java.lang.String tableName, TablePtg.Item item1, TablePtg.Item item2, java.lang.String column1, java.lang.String column2, boolean inTable)java.lang.StringgetColumn1()java.lang.StringgetColumn2()bytegetDefaultOperandClass()TablePtg.ItemgetItem1()TablePtg.ItemgetItem2()intgetSize(SpreadsheetVersion version)java.lang.StringgetTableName()voidsetColumn1(java.lang.String column)voidsetColumn2(java.lang.String column)voidsetTableName(java.lang.String tableName)java.lang.StringtoCopyFormulaString()java.lang.StringtoFormulaString(FormulaRenderingWorkbook book)java.lang.StringtoInternalFormulaString(FormulaRenderingWorkbook book)voidwrite(LittleEndianOutput out, SpreadsheetVersion version)-
Methods inherited from class org.apache.poi.ss.formula.ptg.Area3DPtg
copy, equals, format2DRefAsString, getExternSheetIndex, getGenericProperties, getSid, hashCode, setExternSheetIndex, toFormulaString
-
Methods inherited from class org.apache.poi.ss.formula.ptg.AreaPtgBase
formatReferenceAsString, getFirstColumn, getFirstColumnRaw, getFirstRow, getLastColumn, getLastColumnRaw, getLastRow, isFirstColRelative, isFirstRowRelative, isLastColRelative, isLastRowRelative, readCoordinates, setFirstColRelative, setFirstColumn, setFirstColumnRaw, setFirstRow, setFirstRowRelative, setLastColRelative, setLastColumn, setLastColumnRaw, setLastRow, setLastRowRelative, sortTopLeftToBottomRight, writeCoordinates
-
Methods inherited from class org.apache.poi.ss.formula.ptg.OperandPtg
isBaseToken
-
Methods inherited from class org.apache.poi.ss.formula.ptg.Ptg
createPtg, createPtg, doesFormulaReferToDeletedCell, getEncodedSize, getEncodedSize, getEncodedSizeWithoutArrayData, getEncodedSizeWithoutArrayData, getPtgClass, getRVAType, readTokens, readTokens, serializePtgs, serializePtgs, setClass, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.poi.common.usermodel.GenericRecord
getGenericChildren, getGenericRecordType
-
-
-
-
Field Detail
-
sid
public static final short sid
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TablePtg
public TablePtg(int extIdx, int firstRow, int lastRow, int firstColumn, int lastColumn, java.lang.String tableName, TablePtg.Item[] items, java.lang.String[] columns, boolean inTable)
-
TablePtg
public TablePtg(LittleEndianInput in)
-
-
Method Detail
-
getTableName
public java.lang.String getTableName()
-
setTableName
public void setTableName(java.lang.String tableName)
-
getItem1
public TablePtg.Item getItem1()
-
getItem2
public TablePtg.Item getItem2()
-
getColumn1
public java.lang.String getColumn1()
-
setColumn1
public void setColumn1(java.lang.String column)
-
getColumn2
public java.lang.String getColumn2()
-
setColumn2
public void setColumn2(java.lang.String column)
-
write
public void write(LittleEndianOutput out, SpreadsheetVersion version)
-
getSize
public int getSize(SpreadsheetVersion version)
-
formatAsFormulaString
public static java.lang.String formatAsFormulaString(java.lang.String tableName, TablePtg.Item item1, TablePtg.Item item2, java.lang.String column1, java.lang.String column2, boolean inTable)
-
toFormulaString
public java.lang.String toFormulaString(FormulaRenderingWorkbook book)
- Specified by:
toFormulaStringin interfaceWorkbookDependentFormula- Overrides:
toFormulaStringin classArea3DPtg- Returns:
- text representation of this area reference that can be used in text formulas. The sheet name will get properly delimited if required.
-
toInternalFormulaString
public java.lang.String toInternalFormulaString(FormulaRenderingWorkbook book)
- Specified by:
toInternalFormulaStringin interfaceWorkbookDependentFormula- Overrides:
toInternalFormulaStringin classArea3DPtg- Returns:
- text representation of this area reference that can be used in text formulas. The sheet name will get properly delimited if required.
-
getDefaultOperandClass
public byte getDefaultOperandClass()
- Overrides:
getDefaultOperandClassin classAreaPtgBase
-
toCopyFormulaString
public java.lang.String toCopyFormulaString()
-
-