org.eclipse.nebula.widgets.nattable.columnChooser
Class ColumnChooserUtils
java.lang.Object
  
org.eclipse.nebula.widgets.nattable.columnChooser.ColumnChooserUtils
public class ColumnChooserUtils
- extends Object
 
 
 
| 
Method Summary | 
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)
 
            | 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
RENAMED_COLUMN_INDICATOR
public static final String RENAMED_COLUMN_INDICATOR
- See Also:
 - Constant Field Values
 
ColumnChooserUtils
public ColumnChooserUtils()
hideColumnEntries
public static void hideColumnEntries(List<ColumnEntry> removedItems,
                                     ColumnHideShowLayer hideShowLayer)
 
hideColumnPositions
public static void hideColumnPositions(List<Integer> removedPositions,
                                       ColumnHideShowLayer hideShowLayer)
 
showColumnEntries
public static void showColumnEntries(List<ColumnEntry> addedItems,
                                     ColumnHideShowLayer hideShowLayer)
 
showColumnIndexes
public static void showColumnIndexes(List<Integer> addedColumnIndexes,
                                     ColumnHideShowLayer hideShowLayer)
 
getHiddenColumnEntries
public static List<ColumnEntry> getHiddenColumnEntries(ColumnHideShowLayer columnHideShowLayer,
                                                       ColumnHeaderLayer columnHeaderLayer,
                                                       DataLayer columnHeaderDataLayer)
 
getColumnLabel
public static String getColumnLabel(ColumnHeaderLayer columnHeaderLayer,
                                    DataLayer columnHeaderDataLayer,
                                    Integer columnIndex)
- Parameters:
 columnHeaderLayer - columnHeaderDataLayer - columnIndex - 
- Returns:
 - The renamed column header name for the given column index (if the
         column has been renamed), the original column name otherwise.
 
 
getVisibleColumnsEntries
public 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
 
 
find
public static ColumnEntry find(List<ColumnEntry> entries,
                               int indexToFind)
- Search the collection for the entry with the given index.
 
 
getColumnEntryPositions
public static List<Integer> getColumnEntryPositions(List<ColumnEntry> columnEntries)
- Get ColumnEntry positions for the ColumnEntry objects.
 
 
getColumnEntryIndexes
public static List<Integer> getColumnEntryIndexes(List<ColumnEntry> columnEntries)
- Get ColumnEntry positions for the ColumnEntry objects.
 
 
containsIndex
public static boolean containsIndex(List<ColumnEntry> entries,
                                    int indexToFind)
- Returns:
 - TRUE if the list contains an entry with the given index
 
 
Copyright © 2015. All rights reserved.