Exemplo n.º 1
0
 /**
  * creates JFXDialog control with a specified animation type, the animation type can be one of the
  * following:
  *
  * <ul>
  *   <li>CENTER
  *   <li>TOP
  *   <li>RIGHT
  *   <li>BOTTOM
  *   <li>LEFT
  * </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();
 }