Package gluebooster.basic.resources

Examples of gluebooster.basic.resources.ClasspathResourceSystem


public class FxmlTest {

  @Test
  public void testSampleFxml() throws Exception{
    XmlInContext sampleFxml = new XmlInContext();
    sampleFxml.setResourceSystem(new ClasspathResourceSystem());
    sampleFxml.setResourceId("/gluebooster/basic/xml/sample.fxml");
   
    Fxml fxml = new Fxml(sampleFxml);
    Node anchorPane = fxml.getRootPane();
    Assert.assertNotNull(anchorPane);
View Full Code Here


  public Fxml getLayout() throws Exception{
    if (layout == null){
      String path = "/" + configuration.getConfigurationDirectory() + "/uc/pageStructure.fxml";
      //TODO refactor and move the static part of the path to a central position 
      XmlInContext context = new XmlInContext();
      context.setResourceSystem(new ClasspathResourceSystem());
      context.setResourceId(path);
      layout = new Fxml(context);
    }
   
    return layout;
View Full Code Here

TOP

Related Classes of gluebooster.basic.resources.ClasspathResourceSystem

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.