RenameFileDialog

open class RenameFileDialog(file: File) : CopyOrRename

The default dialog used to rename files from PlacesDock. See FileDialogFactory to use an alternate dialog.

This implementation does NOT allow the user to change the file extension.

Constructors

Link copied to clipboard
constructor(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
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
var onRenamed: (File, File) -> Unit?
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
open override fun fileOperation(sourceFile: File, destFile: File)
Link copied to clipboard
fun onCreate(handlerCombination: HandlerCombination, block: (event: ActionEvent) -> Unit)
Link copied to clipboard
open override fun top(form: FormGrid)

The main content

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