/** * Get a list of strings representing the labels for display columns. This will include all the * labels of visible fields, plus any extra columns such as health rating. * * @param scope the scope of the export * @return a list of labels for the exported columns of data */ public List<String> getColumnLabels(ContentScope scope) { List<String> l = visibleColumnOrdering.getOrderedLabels(); // Health rating is only added if showHealthRatings is true and the scope // is not ALL - neither of these should be true when processing external // data. if (showHealthRatings && scope != ContentScope.ALL) l.add(HEALTH_FIELD_LABEL); return l; }
/** * Create a custom column ordering from the columns in another column ordering. * * @param other * @return */ public static CustomColumnOrdering copy(ColumnOrdering other) { return createUnchecked(other.getOrderedLabels()); }