Java Code Examples for javafx.collections.FXCollections#synchronizedObservableList()

The following examples show how to use javafx.collections.FXCollections#synchronizedObservableList() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RecordingListController.java    From archivo with GNU General Public License v3.0 6 votes vote down vote up
public RecordingListController(Archivo mainApp) {
    recordingSelection = new RecordingSelection();
    tivoIsBusy = new SimpleBooleanProperty(false);
    alreadyDefaultSorted = false;
    fadeTransition = new FadeTransition(javafx.util.Duration.millis(FADE_DURATION));
    this.mainApp = mainApp;
    tivos = FXCollections.synchronizedObservableList(FXCollections.observableArrayList());
    tablePlaceholderMessage = new Label("No recordings are available");
    tivoSelectedListener = (tivoList, oldTivo, curTivo) -> {
        logger.info("New TiVo selected: {}", curTivo);
        if (curTivo != null) {
            mainApp.setLastDevice(curTivo);
            fetchRecordingsFrom(curTivo);
        }
    };
}
 
Example 2
Source File: ActivityLogger.java    From PeerWasp with MIT License 4 votes vote down vote up
public ActivityLogger() {
	final ObservableList<ActivityItem> list = FXCollections.observableArrayList();
	this.activityItems = FXCollections.synchronizedObservableList(list);
}