Search in sources :

Example 1 with FxThread

use of com.cas.sim.tis.anno.FxThread in project TeachingInSimulation by ScOrPiOzzy.

the class PageController method showLoading.

/**
 * Show the loading process.
 */
@FxThread
public void showLoading() {
    loadingLayer.setVisible(true);
    loadingLayer.toFront();
    progressIndicator = new ProgressIndicator(ProgressIndicator.INDETERMINATE_PROGRESS);
    progressIndicator.setPrefSize(50, 50);
    // progressIndicator.setId(CssIds.EDITOR_LOADING_PROGRESS);
    loadingLayer.getChildren().add(progressIndicator);
    container.setDisable(true);
    back.setDisable(true);
    setLoading(true);
}
Also used : ProgressIndicator(javafx.scene.control.ProgressIndicator) FxThread(com.cas.sim.tis.anno.FxThread)

Aggregations

FxThread (com.cas.sim.tis.anno.FxThread)1 ProgressIndicator (javafx.scene.control.ProgressIndicator)1