/** * creates JFXDialog control with a specified animation type, the animation type * can be one of the following: * <ul> * <li>CENTER</li> * <li>TOP</li> * <li>RIGHT</li> * <li>BOTTOM</li> * <li>LEFT</li> * </ul> * * @param dialogContainer is the parent of the dialog, it * @param content the content of dialog * @param transitionType the animation type */ public JFXDialog(StackPane dialogContainer, Region content, DialogTransition transitionType) { initialize(); setContent(content); setDialogContainer(dialogContainer); this.transitionType.set(transitionType); // init change listeners initChangeListeners(); }
/** * creates JFXDialog control with a specified animation type that * is closed when clicking on the overlay, the animation type * can be one of the following: * <ul> * <li>CENTER</li> * <li>TOP</li> * <li>RIGHT</li> * <li>BOTTOM</li> * <li>LEFT</li> * </ul> * * @param dialogContainer * @param content * @param transitionType * @param overlayClose */ public JFXDialog(StackPane dialogContainer, Region content, DialogTransition transitionType, boolean overlayClose) { setOverlayClose(overlayClose); initialize(); setContent(content); setDialogContainer(dialogContainer); this.transitionType.set(transitionType); // init change listeners initChangeListeners(); }
/** * creates JFXDialog control with a specified animation type, the animation type * can be one of the following: * <ul> * <li>CENTER</li> * <li>TOP</li> * <li>RIGHT</li> * <li>BOTTOM</li> * <li>LEFT</li> * </ul> * * @param dialogContainer is the parent of the dialog, it * @param content the content of dialog * @param transitionType the animation type */ public JFXDialog(StackPane dialogContainer, Region content, DialogTransition transitionType) { initialize(); setContent(content); setDialogContainer(dialogContainer); this.transitionType.set(transitionType); // init change listeners initChangeListeners(); }
/** * creates JFXDialog control with a specified animation type that * is closed when clicking on the overlay, the animation type * can be one of the following: * <ul> * <li>CENTER</li> * <li>TOP</li> * <li>RIGHT</li> * <li>BOTTOM</li> * <li>LEFT</li> * </ul> * * @param dialogContainer * @param content * @param transitionType * @param overlayClose */ public JFXDialog(StackPane dialogContainer, Region content, DialogTransition transitionType, boolean overlayClose) { setOverlayClose(overlayClose); initialize(); setContent(content); setDialogContainer(dialogContainer); this.transitionType.set(transitionType); // init change listeners initChangeListeners(); }