public class ColumnChooserUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
RENAMED_COLUMN_INDICATOR |
Constructor and Description |
---|
ColumnChooserUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
containsIndex(List<ColumnEntry> entries,
int indexToFind) |
static ColumnEntry |
find(List<ColumnEntry> entries,
int indexToFind)
Search the collection for the entry with the given index.
|
static List<Integer> |
getColumnEntryIndexes(List<ColumnEntry> columnEntries)
Get ColumnEntry positions for the ColumnEntry objects.
|
static List<Integer> |
getColumnEntryPositions(List<ColumnEntry> columnEntries)
Get ColumnEntry positions for the ColumnEntry objects.
|
static String |
getColumnLabel(ColumnHeaderLayer columnHeaderLayer,
DataLayer columnHeaderDataLayer,
Integer columnIndex) |
static List<ColumnEntry> |
getHiddenColumnEntries(ColumnHideShowLayer columnHideShowLayer,
ColumnHeaderLayer columnHeaderLayer,
DataLayer columnHeaderDataLayer) |
static List<ColumnEntry> |
getVisibleColumnsEntries(ColumnHideShowLayer columnHideShowLayer,
ColumnHeaderLayer columnHeaderLayer,
DataLayer columnHeaderDataLayer)
Get all visible columns from the selection layer and the corresponding labels in the header
|
static void |
hideColumnEntries(List<ColumnEntry> removedItems,
ColumnHideShowLayer hideShowLayer) |
static void |
hideColumnPositions(List<Integer> removedPositions,
ColumnHideShowLayer hideShowLayer) |
static void |
showColumnEntries(List<ColumnEntry> addedItems,
ColumnHideShowLayer hideShowLayer) |
static void |
showColumnIndexes(List<Integer> addedColumnIndexes,
ColumnHideShowLayer hideShowLayer) |
public static final String RENAMED_COLUMN_INDICATOR
public static void hideColumnEntries(List<ColumnEntry> removedItems, ColumnHideShowLayer hideShowLayer)
public static void hideColumnPositions(List<Integer> removedPositions, ColumnHideShowLayer hideShowLayer)
public static void showColumnEntries(List<ColumnEntry> addedItems, ColumnHideShowLayer hideShowLayer)
public static void showColumnIndexes(List<Integer> addedColumnIndexes, ColumnHideShowLayer hideShowLayer)
public static List<ColumnEntry> getHiddenColumnEntries(ColumnHideShowLayer columnHideShowLayer, ColumnHeaderLayer columnHeaderLayer, DataLayer columnHeaderDataLayer)
public static String getColumnLabel(ColumnHeaderLayer columnHeaderLayer, DataLayer columnHeaderDataLayer, Integer columnIndex)
columnHeaderLayer
- columnHeaderDataLayer
- columnIndex
- public static List<ColumnEntry> getVisibleColumnsEntries(ColumnHideShowLayer columnHideShowLayer, ColumnHeaderLayer columnHeaderLayer, DataLayer columnHeaderDataLayer)
public static ColumnEntry find(List<ColumnEntry> entries, int indexToFind)
public static List<Integer> getColumnEntryPositions(List<ColumnEntry> columnEntries)
public static List<Integer> getColumnEntryIndexes(List<ColumnEntry> columnEntries)
public static boolean containsIndex(List<ColumnEntry> entries, int indexToFind)
Copyright © 2013. All Rights Reserved.