Search in sources :

Example 1 with JFXAutoCompletePopupSkin

use of com.jfoenix.skins.JFXAutoCompletePopupSkin in project JFoenix by jfoenixadmin.

the class JFXAutoCompletePopup method show.

public void show(Node node) {
    if (!isShowing()) {
        if (node.getScene() == null || node.getScene().getWindow() == null)
            throw new IllegalStateException("Can not show popup. The node must be attached to a scene/window.");
        Window parent = node.getScene().getWindow();
        this.show(parent, parent.getX() + node.localToScene(0, 0).getX() + node.getScene().getX(), parent.getY() + node.localToScene(0, 0).getY() + node.getScene().getY() + ((Region) node).getHeight());
        ((JFXAutoCompletePopupSkin<T>) getSkin()).animate();
    }
}
Also used : Window(javafx.stage.Window) JFXAutoCompletePopupSkin(com.jfoenix.skins.JFXAutoCompletePopupSkin) Region(javafx.scene.layout.Region)

Aggregations

JFXAutoCompletePopupSkin (com.jfoenix.skins.JFXAutoCompletePopupSkin)1 Region (javafx.scene.layout.Region)1 Window (javafx.stage.Window)1