FileOperationDialog

abstract class FileOperationDialog(val operation: String, file: File) : Dialog

The base class for CopyFileDialog, RenameFileDialog and DeleteFileDialog.

Inheritors

Constructors

Link copied to clipboard
constructor(operation: String, file: File)

Properties

Link copied to clipboard
Link copied to clipboard
override var content: Node?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

If the operation fails, this message will be displayed, and the dialog remains open.

Link copied to clipboard

For RenameFileDialog and CopyFileDialog, the OK button is only enabled when the new name is different or the new folder is different, and the new folder exists. For DeleteFileDialog, this is always false (i.e. the OK button is always enabled).

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
lateinit var stage: Stage
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun bottom(form: FormGrid)

Adds a label containing message.

Link copied to clipboard
fun buttons(block: ButtonBar.() -> Unit)
Link copied to clipboard
fun buttonTypes(vararg buttonTypes: ButtonType, handler: (ButtonType) -> Unit?)
Link copied to clipboard
open fun center(form: FormGrid)

Optional extra content (usually blank)

Link copied to clipboard
fun createStage(parentStage: Stage, stageType: StageType, block: Stage.() -> Unit?): Stage
Link copied to clipboard
fun onCreate(handlerCombination: HandlerCombination, block: (event: ActionEvent) -> Unit)
Link copied to clipboard
abstract fun top(form: FormGrid)

The main content

Link copied to clipboard
open operator fun Node.unaryPlus()