ImageView should have shorthand creation function

Richard Bair richard.bair at oracle.com
Mon Dec 12 09:45:35 PST 2011


I think that sounds good, Lubo lets go ahead with that option if you agree.

Thanks
Richard

On Dec 8, 2011, at 2:37 PM, Tadashi Ohmura wrote:

> Dear members of OpenFX
> 
> I think that we need a shorthand creation function of ImageView.
> 
> I agree with Option 1
> 
> Thanks
> Tadashi Ohmura
> 
> (2011/12/08 18:12), Lubomir Nerad wrote:
>> Hi,
>> 
>> I am looking at http://javafx-jira.kenai.com/browse/RT-6554. It requests to add a possibility to create image view and its image from url in one step. What I think should be discussed is whether to add this as a new constructor to the ImageView class or as a static factory method.
>> 
>> So the options are:
>> 
>> 1) public ImageView(String url) { ... }
>> 2) public static ImageView image(String url) { ... }  (or another name)
>> 
>> Unless we expect that we will need more possibilities for image specification (more shorthand creation methods) in the future, I am leaning towards option 1.
>> 
>> What do you think?
>> 
>> Thanks,
>> Lubo
>> 
>> 
>> 
> 



More information about the openjfx-dev mailing list