public abstract class TableSorter<T>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
TableSorter.Handle |
Modifier | Constructor and Description |
---|---|
protected |
TableSorter(org.eclipse.swt.widgets.Table table) |
protected |
TableSorter(org.eclipse.swt.widgets.Table table,
java.util.Comparator<? super T> comparator) |
Modifier and Type | Method and Description |
---|---|
TableSorter.Handle |
attach(org.eclipse.swt.widgets.TableColumn column) |
TableSorter.Handle |
attach(org.eclipse.swt.widgets.TableColumn column,
SortDirection direction) |
static void |
automaticSort(org.eclipse.swt.widgets.Table table) |
static void |
automaticSort(org.eclipse.swt.widgets.Table table,
org.eclipse.swt.widgets.TableColumn defaultColumn,
SortDirection defaultDirection) |
static void |
enable(org.eclipse.swt.widgets.Table table,
boolean value) |
static void |
enable(org.eclipse.swt.widgets.TableColumn column,
boolean value) |
java.util.Comparator<? super T> |
getComparator() |
org.eclipse.swt.widgets.Table |
getTable() |
boolean |
isEnabled() |
abstract java.lang.Iterable<T> |
loadData() |
void |
setEnabled(boolean value) |
void |
sort(org.eclipse.swt.widgets.TableColumn column,
SortDirection direction) |
abstract void |
updateData(java.lang.Iterable<? extends T> data) |
protected TableSorter(org.eclipse.swt.widgets.Table table)
protected TableSorter(org.eclipse.swt.widgets.Table table, @Nullable java.util.Comparator<? super T> comparator)
public final TableSorter.Handle attach(org.eclipse.swt.widgets.TableColumn column)
public final TableSorter.Handle attach(org.eclipse.swt.widgets.TableColumn column, SortDirection direction)
public static final void automaticSort(org.eclipse.swt.widgets.Table table)
public static final void automaticSort(org.eclipse.swt.widgets.Table table, org.eclipse.swt.widgets.TableColumn defaultColumn, SortDirection defaultDirection)
public static final void enable(org.eclipse.swt.widgets.Table table, boolean value)
public static final void enable(org.eclipse.swt.widgets.TableColumn column, boolean value)
public final void sort(org.eclipse.swt.widgets.TableColumn column, SortDirection direction)
public abstract java.lang.Iterable<T> loadData()
public abstract void updateData(java.lang.Iterable<? extends T> data)
public final void setEnabled(boolean value)
public final org.eclipse.swt.widgets.Table getTable()
@Nullable public final java.util.Comparator<? super T> getComparator()
public final boolean isEnabled()