< prev index next >

modules/javafx.fxml/src/main/java/javafx/fxml/JavaFXBuilderFactory.java

Print this page


   1 /*
   2  * Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


  46 import java.util.HashSet;
  47 import java.util.Iterator;
  48 import java.util.List;
  49 import java.util.Map;
  50 import java.util.Set;
  51 import java.util.logging.Level;
  52 import java.util.logging.Logger;
  53 import javafx.application.ConditionalFeature;
  54 import javafx.application.Platform;
  55 import javafx.beans.NamedArg;
  56 import javafx.collections.FXCollections;
  57 import javafx.collections.ObservableList;
  58 import javafx.collections.ObservableMap;
  59 import javafx.scene.Node;
  60 import javafx.scene.Scene;
  61 import javafx.scene.image.Image;
  62 import javafx.scene.shape.TriangleMesh;
  63 import javafx.scene.text.Font;
  64 import javafx.util.Builder;
  65 import javafx.util.BuilderFactory;
  66 import sun.reflect.misc.ConstructorUtil;
  67 import sun.reflect.misc.MethodUtil;
  68 
  69 /**
  70  * JavaFX builder factory.
  71  * @since JavaFX 2.0
  72  */
  73 public final class JavaFXBuilderFactory implements BuilderFactory {
  74     private final ClassLoader classLoader;
  75     private final boolean webSupported;
  76     private static final String WEBVIEW_NAME = "javafx.scene.web.WebView";
  77 
  78     // WebViewBuilder class name loaded via reflection
  79 // TODO: Uncomment the following when RT-40037 is fixed.
  80 //    private static final String WEBVIEW_BUILDER_NAME =
  81 //            "com.sun.javafx.fxml.builder.web.JavaFXWebViewBuilder";
  82 
  83 // TODO: Remove the following when RT-40037 is fixed.
  84     private static final String WEBVIEW_BUILDER_NAME =
  85             "com.sun.javafx.fxml.builder.web.WebViewBuilder";
  86 
  87     /**


   1 /*
   2  * Copyright (c) 2010, 2018, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


  46 import java.util.HashSet;
  47 import java.util.Iterator;
  48 import java.util.List;
  49 import java.util.Map;
  50 import java.util.Set;
  51 import java.util.logging.Level;
  52 import java.util.logging.Logger;
  53 import javafx.application.ConditionalFeature;
  54 import javafx.application.Platform;
  55 import javafx.beans.NamedArg;
  56 import javafx.collections.FXCollections;
  57 import javafx.collections.ObservableList;
  58 import javafx.collections.ObservableMap;
  59 import javafx.scene.Node;
  60 import javafx.scene.Scene;
  61 import javafx.scene.image.Image;
  62 import javafx.scene.shape.TriangleMesh;
  63 import javafx.scene.text.Font;
  64 import javafx.util.Builder;
  65 import javafx.util.BuilderFactory;
  66 import com.sun.javafx.reflect.ConstructorUtil;
  67 import com.sun.javafx.reflect.MethodUtil;
  68 
  69 /**
  70  * JavaFX builder factory.
  71  * @since JavaFX 2.0
  72  */
  73 public final class JavaFXBuilderFactory implements BuilderFactory {
  74     private final ClassLoader classLoader;
  75     private final boolean webSupported;
  76     private static final String WEBVIEW_NAME = "javafx.scene.web.WebView";
  77 
  78     // WebViewBuilder class name loaded via reflection
  79 // TODO: Uncomment the following when RT-40037 is fixed.
  80 //    private static final String WEBVIEW_BUILDER_NAME =
  81 //            "com.sun.javafx.fxml.builder.web.JavaFXWebViewBuilder";
  82 
  83 // TODO: Remove the following when RT-40037 is fixed.
  84     private static final String WEBVIEW_BUILDER_NAME =
  85             "com.sun.javafx.fxml.builder.web.WebViewBuilder";
  86 
  87     /**


< prev index next >