org.tentackle.fx.container.delegate.FxDialogPaneDelegate Maven / Gradle / Ivy
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.tentackle.fx.container.delegate;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.scene.Node;
import org.tentackle.fx.FxContainerDelegate;
import org.tentackle.fx.container.FxDialogPane;
/**
* Delegate for FxDialogPane.
*
* @author harald
*/
public class FxDialogPaneDelegate extends FxContainerDelegate {
private final FxDialogPane container; // the container
/**
* Creates the delegate.
*
* @param container the container
*/
public FxDialogPaneDelegate(FxDialogPane container) {
this.container = container;
}
@Override
public FxDialogPane getContainer() {
return container;
}
@Override
public ObservableList getComponents() {
return FXCollections.observableArrayList(container.getContent());
}
}