[Review request] Initial file name for file save dialog
Lubomir Nerad
lubomir.nerad at oracle.com
Thu Jan 10 05:14:05 PST 2013
On 1/10/2013 1:47 PM, Scott Palmer wrote:
> On 2013-01-10, at 6:33 AM, Lubomir Nerad <lubomir.nerad at oracle.com> wrote:
>
>> Hi All,
>>
>> I would like to finalize RT-16111: FileChooser: Need to be able to specify initial file name in save dialog (http://javafx-jira.kenai.com/browse/RT-16111) by adding public API for it.
>>
>> My proposal is simply to add the "initialFileName" property to the FileChooser class. It will be specified that this property is specific to the save dialogs.
>> While some systems allow to set such property also for file open dialogs, it is not true in general and so I want to limit its usage to save dialogs only for now.
> Why do you want to limit it "for now"?
To finish this before our feature freeze deadline and also I am not sure
that specifying an initial file name for open file dialogs is that
useful (probably not if it is not available on all platforms). Anyway,
the possibility to extend the meaning of this property will still remain
open.
> Open dialogs should be able to suggest a file to open in the same way. If the platform doesn't support it then let it be a no-op on that platform. Just document the behaviour clearly.
> Maybe you could add an API to query if it is supported, but I don't think it is important enough to know for sure if it is supported or not.
>
> Scott
>
>> The added methods in FileChooser are:
>>
>> public void setInitialFileName(String value);
>> public String getInitialFileName();
>> public ObjectProperty<String> initialFileNameProperty();
>>
>> Thanks,
>> Lubo
>>
More information about the openjfx-dev
mailing list