All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xworker.javafx.JavaFXActions.dml Maven / Gradle / Ivy

There is a newer version: 2.0.2
Show newest version



    JavaFX相关的动作。

]]>
调用Dialog的showAndWait()方法,如果结果isPresent()==true,那么执行onResult(Dialog dialog, Object result)方法,如果result是ButtonType,那么根据ButtonType可以执行下面等方法。

  • apply
  • cancel
  • close
  • finish
  • next
  • no
  • ok
  • previous
  • yes

获取Dialog的优先级

  1. 通过getDialog()方法获取,默认dialog属性设置。
  2. 通过Dialogs子节点定义的Dialog模型,此时每次都会创建新的Dialog。

 

]]>
用于定义动作行为,通过子节点添加具体的动作行为。

只有第一个动作模型(本节点类型)生效,会忽略后面添加的动作模型。

]]>
Provides support for standard platform file dialogs. These dialogs have look and feel of the platform UI components which is independent of JavaFX.

可以重写的方法:

  • void onResult(File or List<File> result) 
    打开FileChoose之后的返回值。
     

 

]]>
The title of the displayed file dialog.

]]>
The initial directory for the displayed file dialog.

]]>
The initial file name for the displayed dialog.

]]>
This property is used to pre-select the extension filter for the next displayed dialog and to read the user-selected extension filter from the dismissed dialog.

字符串格式,如:

Text Files, *.txt
Image Files,*.png, *.jpg, *.gif
Audio Files, *.wav,"*.mp3,"*.aac
All Files, *.*

 

]]>
the owner window of the displayed file dialog

]]>
Provides support for standard directory chooser dialogs. These dialogs have look and feel of the platform UI components which is independent of JavaFX. On some platforms where file access may be restricted or not part of the user model (for example, on some mobile or embedded devices), opening a directory dialog may always result in a no-op (that is, null file being returned).

可以重写的方法:

  • void onResult(File  result) 
    打开FileChoose之后的返回值。
]]>
The initial directory for the displayed file dialog.

]]>
the owner window of the displayed file dialog

]]>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy