Class SingleRow<I extends QueryItem>
- java.lang.Object
-
- pro.taskana.monitor.api.reports.row.SingleRow<I>
-
- All Implemented Interfaces:
Row<I>
- Direct Known Subclasses:
FoldableRow
public class SingleRow<I extends QueryItem> extends Object implements Row<I>
A SingleRow represents a single row in a Report. It contains an array of cells whose index corresponds to the ColumnHeader index in the Report.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddItem(I item, int index)Appends a specific item value at a specific index.int[]getCells()StringgetDisplayName()StringgetKey()intgetTotalValue()voidsetDisplayName(Map<String,String> displayMap)voidupdateTotalValue(I item)updates the total value of the row without changing any cell value.
-
-
-
Constructor Detail
-
SingleRow
public SingleRow(String key, int columnCount)
-
-
Method Detail
-
addItem
public void addItem(I item, int index) throws IndexOutOfBoundsException
Description copied from interface:RowAppends a specific item value at a specific index.- Specified by:
addItemin interfaceRow<I extends QueryItem>- Parameters:
item- the item which will be appendedindex- the index at which the item will be appended at.- Throws:
IndexOutOfBoundsException- if the given index is invalid.
-
updateTotalValue
public void updateTotalValue(I item)
Description copied from interface:Rowupdates the total value of the row without changing any cell value.- Specified by:
updateTotalValuein interfaceRow<I extends QueryItem>- Parameters:
item- the item whose value will be added to the total value of this row.
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayNamein interfaceRow<I extends QueryItem>
-
setDisplayName
public void setDisplayName(Map<String,String> displayMap)
- Specified by:
setDisplayNamein interfaceRow<I extends QueryItem>
-
getTotalValue
public final int getTotalValue()
- Specified by:
getTotalValuein interfaceRow<I extends QueryItem>
-
-