Skip to content

Commit c692e0a

Browse files
committed
add getColumnNames, getColumnFieldKeys
1 parent 46f3072 commit c692e0a

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

src/org/labkey/test/components/ui/grids/ResponsiveGrid.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,16 @@ public List<String> getColumnLabels()
642642
return elementCache().getColumnLabels();
643643
}
644644

645+
public List<String> getColumnNames()
646+
{
647+
return elementCache().getColumnNames();
648+
}
649+
650+
public List<FieldKey> getColumnFieldKeys()
651+
{
652+
return elementCache().getColumnFieldKeys();
653+
}
654+
645655
/**
646656
* Get data from a row
647657
* @param rowIndex the index of the desired row
@@ -861,6 +871,16 @@ protected List<String> getColumnLabels()
861871
return findHeaders().stream().map(FieldReferenceManager.FieldReference::getLabel).collect(Collectors.toList());
862872
}
863873

874+
protected List<String> getColumnNames()
875+
{
876+
return findHeaders().stream().map(FieldReferenceManager.FieldReference::getName).collect(Collectors.toList());
877+
}
878+
879+
protected List<FieldKey> getColumnFieldKeys()
880+
{
881+
return findHeaders().stream().map(FieldReferenceManager.FieldReference::getFieldKey).collect(Collectors.toList());
882+
}
883+
864884
protected GridRow getRow(int index)
865885
{
866886
return getRows().get(index);

0 commit comments

Comments
 (0)