Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8100730

Tab should have a way to cancel close

    XMLWordPrintable

Details

    • Enhancement
    • Status: Resolved
    • P3
    • Resolution: Duplicate
    • fx2.0
    • 8
    • javafx

    Description

      There should be an API for canceling the attempt to close a tab, similar to the way we can cancel closing of a Window. Without this, there is no way of, for example, prompting a user if they're sure they want to close the tab, giving them a final chance to veto the pending change.

      In Window, there is an onCloseRequest event, which has the following description: "Called when there is an external request to close this Window. The installed event handler can prevent window closing by consuming the received event."

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rbair Richard Bair (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported: