File tree Expand file tree Collapse file tree
src/org/labkey/test/components/ui/grids Expand file tree Collapse file tree Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments