[Review request] Initial file name for file save dialog
Scott Palmer
swpalmer at gmail.com
Thu Jan 10 04:47:42 PST 2013
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"? 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