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

Tab should have a way to cancel close

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: fx2.0
    • Fix Version/s: 8
    • Component/s: javafx
    • Labels:

      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

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported: