Regarding FXML Support

23 views
Skip to first unread message

Rajmahendra R

unread,
Jun 12, 2013, 6:04:05 AM6/12/13
to jrebirth-...@googlegroups.com
Seb,

For FXML. The MVC super class are same right ? ( DefaultView)

Only difference is  we will write following code in getContentPanel

   @Override
    protected Node getContentPanel() {

        this.archComponent = FXMLUtils.loadFXML(getModel(), "org/jrebirth/presentation/ui/slides/arch/ArchNode.fxml");

        this.archComponent.getNode().setScaleX(4);
        this.archComponent.getNode().setScaleY(4);
        this.archComponent.getNode().setScaleZ(4);

        return this.archComponent.getNode();
    }

Same like non FXML screens, can we crate FXML MVC without Controller ?

Sebastien Bordes

unread,
Jun 12, 2013, 7:03:23 AM6/12/13
to jrebirth-...@googlegroups.com
JRebirth provides a custom way to manage FXML document.

You find some unit test describing how integration is performed:

https://github.com/JRebirth/JRebirth/tree/master/org.jrebirth/core/src/test/java/org/jrebirth/core/ui/fxml

I'll manage fxml reference as Resource (as Image with a link with their own properties files)

Seb

rajma...@gmail.com

unread,
Jun 12, 2013, 7:06:32 AM6/12/13
to jrebirth-...@googlegroups.com
I like the Resource part of JR...

We may add resource support for CSS and FXML.  (just a thought)


--
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes JRebirth Developers.
Pour vous désabonner de ce groupe et ne plus recevoir d'e-mails le concernant, envoyez un e-mail à l'adresse jrebirth-develo...@googlegroups.com.
Pour plus d'options, visitez le site https://groups.google.com/groups/opt_out .
 
 



--
Thank you and regards,
Rajmahendra R Hegde (Raj)
Website:
http://www.twitter.com/rajonjava
http://www.jugchennai.in             
----------------------------------------------------------------------------------------------
"DREAM is not what you see in sleep;
is the thing which does not let you sleep" - APJ Abdul Kalam
Do the difficult things while they are easy and do the great things while they are small.
A journey of a thousand miles must begin with a single step. - Lao Tzu


Sebastien Bordes

unread,
Jun 12, 2013, 7:10:05 AM6/12/13
to jrebirth-...@googlegroups.com
Moreover there is some custom methods that wrap JavaFX loadFXML one

Check these files :

  • AbstractFXMLController.java
  • AbstractFXMLModel.java
  • DefaultFXMLModel.java
  • FXMLComponent.java
  • FXMLController.java
  • FXMLUtils.java

Sebastien Bordes

unread,
Jun 12, 2013, 7:13:09 AM6/12/13
to jrebirth-...@googlegroups.com
It will be done asap :) (css and fxml, I'm currently refactory images resources management)

CSS will be managed as hot-swappable files (If possible)

I have also planned to automatically update JRebirth properties when file is changed (A custom service will manage this behaviour)

Seb


Le mercredi 12 juin 2013 13:06:32 UTC+2, Rajmahendra R a écrit :
I like the Resource part of JR...

We may add resource support for CSS and FXML.  (just a thought)
On Wed, Jun 12, 2013 at 4:33 PM, Sebastien Bordes <sebastie...@gmail.com> wrote:
JRebirth provides a custom way to manage FXML document.

You find some unit test describing how integration is performed:

https://github.com/JRebirth/JRebirth/tree/master/org.jrebirth/core/src/test/java/org/jrebirth/core/ui/fxml

I'll manage fxml reference as Resource (as Image with a link with their own properties files)

Seb



Le mercredi 12 juin 2013 12:04:05 UTC+2, Rajmahendra R a écrit :
Seb,

For FXML. The MVC super class are same right ? ( DefaultView)

Only difference is  we will write following code in getContentPanel

   @Override
    protected Node getContentPanel() {

        this.archComponent = FXMLUtils.loadFXML(getModel(), "org/jrebirth/presentation/ui/slides/arch/ArchNode.fxml");

        this.archComponent.getNode().setScaleX(4);
        this.archComponent.getNode().setScaleY(4);
        this.archComponent.getNode().setScaleZ(4);

        return this.archComponent.getNode();
    }

Same like non FXML screens, can we crate FXML MVC without Controller ?

--
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes JRebirth Developers.
Pour vous désabonner de ce groupe et ne plus recevoir d'e-mails le concernant, envoyez un e-mail à l'adresse jrebirth-developers+unsub...@googlegroups.com.

Pour plus d'options, visitez le site https://groups.google.com/groups/opt_out .
 
 
Reply all
Reply to author
Forward
0 new messages