Interface ExportRow
@PublicApi
public interface ExportRow
An
ExportRow
represents a particular item in an exported Forest
.-
Method Summary
Modifier and TypeMethodDescription<T> T
get
(AttributeSpec<T> attribute) Gets a value of an attribute for this row.int
getDepth()
getRow()
Returns the currentStructureRow
instance.long
getRowId()
boolean
boolean
isLeaf()
-
Method Details
-
getRow
Returns the current
StructureRow
instance.- Returns:
- The current row.
-
getRowId
long getRowId() -
getDepth
int getDepth()- Returns:
- The depth of the current row in the exported
Forest
.
-
isExpanded
boolean isExpanded()- Returns:
true
if the current row is expanded in the exportedForest
.
-
isLeaf
boolean isLeaf()- Returns:
true
if the current row has no sub-rows in the exportedForest
.
-
get
Gets a value of an attribute for this row. The attribute must have previously been requested by callingExportRequestContext.requireAttribute(AttributeSpec)
fromExportRenderer.prepare(ExportRequestContext)
orExportRendererProvider.getColumnRenderer(ExportFormat, ViewSpecification.Column, ExportRequestContext)
.- Type Parameters:
T
- attribute format type- Parameters:
attribute
- attribute specification- Returns:
- the value or null
-