Verified Owner
Top Fields Constructors Methods
org.jabref.gui.util

pack-priv Class UiThreadList<T>

extends TransformationList<T, T>
Class Inheritance
Imports
java.util.concurrent.CountDownLatch, javafx.application.Platform, javafx.collections.ListChangeListener, .ObservableList, javafx.collections.transformation.TransformationList, org.slf4j.Logger, .LoggerFactory

Field Summary

Modifier and TypeField and Description
private static final Logger

Constructor Summary

AccessConstructor and Description
public
UiThreadList(ObservableList<? extends T> source)

Method Summary

Modifier and TypeMethod and Description
public T
get(int index)

Implements abstract java.util.AbstractList.get.

Implements java.util.List.get.

Returns the element at the specified position in this list.

public int
getSourceIndex(int index)

Implements abstract javafx.collections.transformation.TransformationList.getSourceIndex.

Maps the index of this list's element to an index in the direct source list.

public int
getViewIndex(int index)

Implements abstract javafx.collections.transformation.TransformationList.getViewIndex.

Maps the index of the direct source list's element to an index in this list.

public int
size()

Implements abstract java.util.AbstractCollection.size.

Implements java.util.List.size, java.util.Collection.size.

Returns the number of elements in this list.

protected void
sourceChanged(ListChangeListener.Change<? extends T> change)

Implements abstract javafx.collections.transformation.TransformationList.sourceChanged.

Called when a change from the source is triggered.

Inherited from javafx.collections.transformation.TransformationList:
getSourcegetSourceIndexForisInTransformationChain

Field Detail

LOGGERback to summary
private static final Logger LOGGER

Constructor Detail

UiThreadListback to summary
public UiThreadList(ObservableList<? extends T> source)

Method Detail

getback to summary
public T get(int index)

Implements abstract java.util.AbstractList.get.

Implements java.util.List.get.

Doc from java.util.List.get.

Returns the element at the specified position in this list.

Annotations
@Override
getSourceIndexback to summary
public int getSourceIndex(int index)

Implements abstract javafx.collections.transformation.TransformationList.getSourceIndex.

Doc from javafx.collections.transformation.TransformationList.getSourceIndex.

Maps the index of this list's element to an index in the direct source list.

Annotations
@Override
getViewIndexback to summary
public int getViewIndex(int index)

Implements abstract javafx.collections.transformation.TransformationList.getViewIndex.

Doc from javafx.collections.transformation.TransformationList.getViewIndex.

Maps the index of the direct source list's element to an index in this list.

Annotations
@Override
sizeback to summary
public int size()

Implements abstract java.util.AbstractCollection.size.

Implements java.util.List.size, java.util.Collection.size.

Doc from java.util.List.size.

Returns the number of elements in this list. If this list contains more than Integer.MAX_VALUE elements, returns Integer.MAX_VALUE.

Annotations
@Override
sourceChangedback to summary
protected void sourceChanged(ListChangeListener.Change<? extends T> change)

Implements abstract javafx.collections.transformation.TransformationList.sourceChanged.

Doc from javafx.collections.transformation.TransformationList.sourceChanged.

Called when a change from the source is triggered.

Annotations
@Override