Copy constructors

Greg Brown greg.x.brown at oracle.com
Mon Sep 10 04:15:06 PDT 2012


I don't know if there are any plans to add copy constructors, but you might be able to do something similar with includes (e.g. instead of defining your template in a define block, you could define it in an external FXML file and include it where needed).

On Sep 10, 2012, at 6:54 AM, Werner Lehmann <lehmann at media-interactive.de> wrote:

> Hi,
> 
> are there any plans to add copy constructors, as hinted on in the FXML
> documentation?
> 
>> http://docs.oracle.com/javafx/2/api/javafx/fxml/doc-files/introduction_to_fxml.html#copy_elements
> 
> This would be really cool: I would create templates in an fx:define block. The templates would be copied in code and added e.g. to a VBox, with just a few adjustments. Currently this has to be done in code... which of course also takes away from the intended work-sharing between application developer and GUI designer.
> 
> Rgds
> Werner



More information about the openjfx-dev mailing list