Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 29 additions & 1 deletion src/org/labkey/test/components/ui/grids/ResponsiveGrid.java
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,24 @@ public List<String> getColumnLabels()
return elementCache().getColumnLabels();
}

/**
*
* @return a List&#60;String&#62; containing the names of the fields for each column header
*/
public List<String> getColumnNames()
{
return elementCache().getColumnNames();
}

/**
*
* @return a List&#60;FieldKey&#62; containing the fieldKeys for each column header
*/
public List<FieldKey> getColumnFieldKeys()
{
return elementCache().getColumnFieldKeys();
}

/**
* Get data from a row
* @param rowIndex the index of the desired row
Expand Down Expand Up @@ -773,7 +791,7 @@ public Optional<String> getGridEmptyMessage()
return msg;
}

List<FieldReference> getHeaders()
public List<FieldReference> getHeaders()
{
return Collections.unmodifiableList(elementCache().findHeaders());
}
Expand Down Expand Up @@ -861,6 +879,16 @@ protected List<String> getColumnLabels()
return findHeaders().stream().map(FieldReferenceManager.FieldReference::getLabel).collect(Collectors.toList());
}

protected List<String> getColumnNames()
{
return findHeaders().stream().map(FieldReferenceManager.FieldReference::getName).collect(Collectors.toList());
}

protected List<FieldKey> getColumnFieldKeys()
{
return findHeaders().stream().map(FieldReferenceManager.FieldReference::getFieldKey).collect(Collectors.toList());
}

protected GridRow getRow(int index)
{
return getRows().get(index);
Expand Down