public final class GlazedListsJavaFX extends Object
Modifier and Type | Method and Description |
---|---|
static <E> ca.odell.glazedlists.TransformedList<E,E> |
createJavaFXThreadProxyList(ca.odell.glazedlists.EventList<E> source)
Wraps the source in an
EventList that fires all of its update
events from the JavaFX application thread. |
static <E> FXTableViewModel<E> |
eventTableViewModel(ca.odell.glazedlists.EventList<E> source,
FXTableFormat<? super E> tableFormat)
Creates a new table model that extracts column data from the given
source using the the given tableFormat . |
static <E> FXTableViewModel<E> |
eventTableViewModel(javafx.collections.ObservableList<E> source,
FXTableFormat<? super E> tableFormat)
Creates a new table model that extracts column data from the given
source using the the given tableFormat . |
static <E> FXTableViewModel<E> |
eventTableViewModelWithThreadProxyList(ca.odell.glazedlists.EventList<E> source,
FXTableFormat<? super E> tableFormat)
Creates a new table model that extracts column data from the given
source
using the the given tableFormat . |
static <E extends PropertyContainer> |
propertyContainerConnector() |
static <E extends PropertyContainer> |
propertyContainerConnector(String... propertyNames) |
static <T> FXTableFormat<T> |
tableFormat(FXTableFormat.Options... options)
Creates a
FXTableFormat . |
static <T> FXTableFormat<T> |
tableFormat(List<FXTableFormat.Options> options)
Creates a
FXTableFormat . |
static <T> FXTableFormat<T> |
tableFormat(String[] propertyNames)
Creates a
FXTableFormat . |
static <T> FXTableFormat<T> |
tableFormat(String[] propertyNames,
String[] columnLabels,
ColumnReader[] columnReaders)
Creates a
FXTableFormat . |
@Nonnull public static <E extends PropertyContainer> ca.odell.glazedlists.ObservableElementList.Connector<E> propertyContainerConnector()
@Nonnull public static <E extends PropertyContainer> ca.odell.glazedlists.ObservableElementList.Connector<E> propertyContainerConnector(@Nonnull String... propertyNames)
@Nonnull public static <E> ca.odell.glazedlists.TransformedList<E,E> createJavaFXThreadProxyList(@Nonnull ca.odell.glazedlists.EventList<E> source)
EventList
that fires all of its update
events from the JavaFX application thread.source
- the EventList
to be wrapped. Must not be null.EventList
that fires all of its update events inside the JavaFX application thread.public static <T> FXTableFormat<T> tableFormat(@Nonnull String[] propertyNames)
FXTableFormat
.public static <T> FXTableFormat<T> tableFormat(@Nonnull String[] propertyNames, @Nonnull String[] columnLabels, @Nonnull ColumnReader[] columnReaders)
FXTableFormat
.public static <T> FXTableFormat<T> tableFormat(@Nonnull FXTableFormat.Options... options)
FXTableFormat
.public static <T> FXTableFormat<T> tableFormat(@Nonnull List<FXTableFormat.Options> options)
FXTableFormat
.public static <E> FXTableViewModel<E> eventTableViewModel(@Nonnull ca.odell.glazedlists.EventList<E> source, @Nonnull FXTableFormat<? super E> tableFormat)
source
using the the given tableFormat
.
The returned table model is not thread-safe. Unless otherwise
noted, all methods are only safe to be called from the JavaFX application thread.
To do this programmatically, use Platform.runLater(Runnable)
and
wrap the source list (or some part of the source list's pipeline) using
createJavaFXThreadProxyList(EventList)
.
source
- the EventList that provides the row objectstableFormat
- the object responsible for extracting column data
from the row objectspublic static <E> FXTableViewModel<E> eventTableViewModel(@Nonnull javafx.collections.ObservableList<E> source, @Nonnull FXTableFormat<? super E> tableFormat)
source
using the the given tableFormat
.
The returned table model is not thread-safe. Unless otherwise
noted, all methods are only safe to be called from the JavaFX application thread.
To do this programmatically, use Platform.runLater(Runnable)
and
wrap the source list (or some part of the source list's pipeline) using
createJavaFXThreadProxyList(EventList)
.
source
- the ObservableList that provides the row objectstableFormat
- the object responsible for extracting column data
from the row objectspublic static <E> FXTableViewModel<E> eventTableViewModelWithThreadProxyList(@Nonnull ca.odell.glazedlists.EventList<E> source, @Nonnull FXTableFormat<? super E> tableFormat)
source
using the the given tableFormat
. While holding a read lock,
this method wraps the source list using
createJavaFXThreadProxyList(EventList)
.
The returned table model is not thread-safe. Unless otherwise noted, all methods are only safe to be called from the event dispatch thread.
source
- the EventList that provides the row objectstableFormat
- the object responsible for extracting column data from the row objects