< prev index next >

modules/javafx.graphics/src/main/java/com/sun/javafx/application/PlatformImpl.java

Print this page
rev 10897 : 8199357: Remove references to applets and Java Web Start from FX
Reviewed-by:


 104      * Set a flag indicating whether this application should show up in the
 105      * task bar. The default value is true.
 106      *
 107      * @param taskbarApplication the new value of this attribute
 108      */
 109     public static void setTaskbarApplication(boolean taskbarApplication) {
 110         PlatformImpl.taskbarApplication = taskbarApplication;
 111     }
 112 
 113     /**
 114      * Returns the current value of the taskBarApplication flag.
 115      *
 116      * @return the current state of the flag.
 117      */
 118     public static boolean isTaskbarApplication() {
 119         return taskbarApplication;
 120     }
 121 
 122     /**
 123      * Sets the name of the this application based on the Application class.
 124      * This method is called by the launcher or by the deploy code, and is not
 125      * called from the FX Application Thread, so we need to do it in a runLater.
 126      * We do not need to wait for the result since it will complete before the
 127      * Application start() method is called regardless.
 128      *
 129      * @param appClass the Application class.
 130      */
 131     public static void setApplicationName(final Class appClass) {
 132         runLater(() -> com.sun.glass.ui.Application.GetApplication().setName(appClass.getName()));
 133     }
 134 
 135     /**
 136      * Return whether or not focus navigation between controls is context-
 137      * sensitive.
 138      * @return true if the context-sensitive algorithm for focus navigation is
 139      * used
 140      */
 141      public static boolean isContextual2DNavigation() {
 142          return contextual2DNavigation;
 143      }
 144 




 104      * Set a flag indicating whether this application should show up in the
 105      * task bar. The default value is true.
 106      *
 107      * @param taskbarApplication the new value of this attribute
 108      */
 109     public static void setTaskbarApplication(boolean taskbarApplication) {
 110         PlatformImpl.taskbarApplication = taskbarApplication;
 111     }
 112 
 113     /**
 114      * Returns the current value of the taskBarApplication flag.
 115      *
 116      * @return the current state of the flag.
 117      */
 118     public static boolean isTaskbarApplication() {
 119         return taskbarApplication;
 120     }
 121 
 122     /**
 123      * Sets the name of the this application based on the Application class.
 124      * This method is called by the launcher, and is not
 125      * called from the FX Application Thread, so we need to do it in a runLater.
 126      * We do not need to wait for the result since it will complete before the
 127      * Application start() method is called regardless.
 128      *
 129      * @param appClass the Application class.
 130      */
 131     public static void setApplicationName(final Class appClass) {
 132         runLater(() -> com.sun.glass.ui.Application.GetApplication().setName(appClass.getName()));
 133     }
 134 
 135     /**
 136      * Return whether or not focus navigation between controls is context-
 137      * sensitive.
 138      * @return true if the context-sensitive algorithm for focus navigation is
 139      * used
 140      */
 141      public static boolean isContextual2DNavigation() {
 142          return contextual2DNavigation;
 143      }
 144 


< prev index next >