FileDialog.addOnFileOk

Overview | Methods | This Package | All Packages

FileDialog.addOnFileOk

Assigns a delegate to the fileOk event.

Syntax

public final void addOnFileOk( CancelEventHandler value )

Parameters

value

The CancelEventHandler delegate to be notified when the event occurs.

Remarks

Passing an event handler as a parameter to this method is equivalent to setting the fileOk event to that method in the Properties window. The fileOk event occurs when the user clicks Open or Save in the dialog box. An event handler can prevent the dialog box from closing by setting the cancel field of the CancelEvent object used by the event handler to true.

See Also   removeOnFileOk