Interface ExportRow
@PublicApi
public interface ExportRow
An
ExportRow represents a particular item in an exported Forest.-
Method Summary
Modifier and TypeMethodDescription<T> Tget(AttributeSpec<T> attribute) Gets a value of an attribute for this row.intgetDepth()getRow()Returns the currentStructureRowinstance.longgetRowId()booleanbooleanisLeaf()
-
Method Details
-
getRow
Returns the current
StructureRowinstance.- 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:
trueif the current row is expanded in the exportedForest.
-
isLeaf
boolean isLeaf()- Returns:
trueif 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
-