[REVIEW REQUEST] RT-24088 Add API to JavaFX to allow vetoing the closing of a Tab in a TabPane

Quartam - Jan Schenkel jan.schenkel at quartam.com
Thu Dec 6 12:10:53 PST 2012


(Long-time list reader but first post so Hi all!)

I filed a Jira issue earlier today for a similar request regarding WebView/WebEngine navigation - allowing the developer to veto location changes.
Thanks to this discussion I've amended my original idea to match the onCloseRequest approach. <http://javafx-jira.kenai.com/browse/RT-26761>

Love the open flow of ideas in OpenJFX :-)

Jan.


On 06 Dec 2012, at 17:04, Richard Bair <richard.bair at oracle.com> wrote:

> Indeed, this sounds like the same idea Werner had. Good find.
> 
> On Dec 6, 2012, at 7:54 AM, steve.x.northover at oracle.com wrote:
> 
>> Stage has the onCloseRequest property.  Might make sense to have a similar API in Tab.
>> 
>> Steve
>> 
>> On 06/12/2012 8:33 AM, Tom Schindl wrote:
>>> Hi,
>>> 
>>> This is an interesting idea. I'm not that deep in the FX-API to
>>> understand if this the advised way in other areas so. I let Richard and
>>> Jonathan comment on it.
>>> 
>>> Tom
>>> 
>>> Am 06.12.12 12:32, schrieb Werner Lehmann:
>>>> Would it also be possible to have a simple onClosing event and require a
>>>> handler to Event.consume() it? Maybe slightly less obvious than an
>>>> explicit "*veto*" but more flexible/resuable, too (as a general pattern
>>>> in similar situations).
>>>> 
>>>> Werner
>>>> 
>>>> On 06.12.2012 07:08, Tom Eugelink wrote:
>>>>> Just a remark to see if we can make this more reusable; would it be
>>>>> an idea to actually veto the close action? Like veto the removal of a
>>>>> tab from a list? In that way veto-ing would be available to other
>>>>> usages of such lists as well, a uniform API.
>>>>> 
>>>>> Tom
>>> 
> 



More information about the openjfx-dev mailing list