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:
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, String tableName, TablePtg.Item[] items, String[] columns, boolean inTable)TablePtg(LittleEndianInput in)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringformatAsFormulaString(String tableName, TablePtg.Item item1, TablePtg.Item item2, String column1, String column2, boolean inTable)StringgetColumn1()StringgetColumn2()bytegetDefaultOperandClass()TablePtg.ItemgetItem1()TablePtg.ItemgetItem2()intgetSize(SpreadsheetVersion version)StringgetTableName()voidsetColumn1(String column)voidsetColumn2(String column)voidsetTableName(String tableName)StringtoCopyFormulaString()StringtoFormulaString(FormulaRenderingWorkbook book)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, String tableName, TablePtg.Item[] items, String[] columns, boolean inTable)
-
TablePtg
public TablePtg(LittleEndianInput in)
-
-
Method Detail
-
getTableName
public String getTableName()
-
setTableName
public void setTableName(String tableName)
-
getItem1
public TablePtg.Item getItem1()
-
getItem2
public TablePtg.Item getItem2()
-
getColumn1
public String getColumn1()
-
setColumn1
public void setColumn1(String column)
-
getColumn2
public String getColumn2()
-
setColumn2
public void setColumn2(String column)
-
write
public void write(LittleEndianOutput out, SpreadsheetVersion version)
-
getSize
public int getSize(SpreadsheetVersion version)
-
formatAsFormulaString
public static String formatAsFormulaString(String tableName, TablePtg.Item item1, TablePtg.Item item2, String column1, String column2, boolean inTable)
-
toFormulaString
public 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 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 String toCopyFormulaString()
-
-