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();
}
}
Aggregations