| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private static Application | |
| private static final String | |
| private static volatile Map | |
| private static final boolean | |
| private Application. | |
| private static Thread | |
| private boolean | |
| private String[] | |
| private static boolean | |
| protected String | |
| private static int | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract Object | |
| protected abstract int | |
| protected abstract void | |
| protected abstract void | |
| protected int | |
| protected abstract void | |
| private static native void | _overrideNativeWindowHandle(Class<T> lwFrameWrapperClass, Object frame, long handle, Runnable closeWindow)
|
| protected boolean | |
| protected boolean | |
| protected abstract boolean | |
| protected abstract boolean | |
| public static void | checkEventThread()
Verifies that the current thread is the event thread, and throws an exception if this is not so. |
| public void | checkPlatformPreferencesSupport()
Checks whether there are any problems with platform preferences detection, and if so, emits a warning. |
| public Accessible | |
| public abstract Cursor | |
| public abstract Cursor | |
| public final EventLoop | |
| public final Menu | |
| public final Menu | |
| public final MenuBar | |
| public final MenuItem | |
| public final MenuItem | |
| public final MenuItem | |
| public final MenuItem | createMenuItem(String title, MenuItem.
|
| public abstract Pixels | |
| public abstract Pixels | |
| public abstract Pixels | |
| public abstract Pixels | |
| pack-priv static Pixels | |
| public abstract GlassRobot | |
| public abstract Timer | |
| public abstract View | |
| public abstract Window | |
| public final Window | |
| pack-priv static Object | Returns: an object passed to the leaveNestedEventLoop() methodStarts a nested event loop. |
| protected void | |
| public static Application | |
| public String | Returns: the platform specific path for the application dataGets a platform specific path that can be used to store application data. |
| public static Map | |
| public Application. | |
| protected static Thread | |
| public static int | Returns: integer code for the given charthe character c, int the code of the key the system is attempting to match hint)Returns a VK_ code of a key capable of producing the given unicode character with respect to the currently active keyboard layout or VK_UNDEFINED if the character isn't present in the current layout. |
| public String | |
| public Map | Returns: a map of platform-specific keys to well-known keysReturns a map of platform-specific keys to platform-independent keys defined by JavaFX, including a function that maps the platform-specific value to the platform-independent value. |
| public Map | Returns: a map of platform-specific keys to typesReturns a mapping of platform-specific keys to the types of their values. |
| public Map | Returns: the current set of platform preferencesReturns the current set of platform properties as a map of platform-specific keys to arbitrary values. |
| pack-priv static float | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public void | installDefaultMenus(MenuBar menubar)
Install app's default native menus: on Mac OS X - Apple menu (showing the app name) with a single Quit menu item on Windows - NOP on Linux - NOP |
| public static void | invokeAndWait(Runnable runnable)
Block the current thread and wait until the given runnable finishes running on the native event loop thread. |
| public static void | invokeLater(Runnable runnable)
Schedule the given runnable to run on the native event loop thread some time in the future, and return immediately. |
| public static boolean | |
| public final Optional | |
| public static boolean | |
| pack-priv static void | |
| protected static synchronized void | |
| protected static synchronized void | |
| public void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| public void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| public static void | overrideNativeWindowHandle(Class<T> lwFrameWrapperClass, Object frame, long handle, Runnable closeWindow)
|
| public static void | |
| public static void | |
| protected abstract void | |
| public static void | |
| public void | |
| protected static void | |
| public void | |
| public final void | |
| public final boolean | |
| public boolean | |
| protected abstract CommonDialogs. | staticCommonDialogs_showFileChooser(Window owner, String folder, String filename, String title, int type, boolean multipleMode, CommonDialogs.
|
| protected abstract File | |
| protected abstract Size | |
| protected abstract void | |
| protected abstract int | |
| protected abstract Screen[] | |
| protected abstract double | |
| protected abstract int | |
| protected abstract int | |
| protected abstract int | |
| protected abstract int | |
| protected abstract long | |
| public final boolean | |
| public final boolean | |
| public final boolean | |
| public final boolean | |
| public void |
| application | back to summary |
|---|---|
| private static Application application | |
| DEFAULT_NAME | back to summary |
|---|---|
| private static final String DEFAULT_NAME | |
| deviceDetails | back to summary |
|---|---|
| private static volatile Map<K, V> deviceDetails | |
| disableThreadChecks | back to summary |
|---|---|
| private static final boolean disableThreadChecks | |
| eventHandler | back to summary |
|---|---|
| private Application. | |
| eventThread | back to summary |
|---|---|
| private static Thread eventThread | |
| initialActiveEventReceived | back to summary |
|---|---|
| private boolean initialActiveEventReceived | |
| initialOpenedFiles | back to summary |
|---|---|
| private String[] initialOpenedFiles | |
| loaded | back to summary |
|---|---|
| private static boolean loaded | |
| name | back to summary |
|---|---|
| protected String name | |
| nestedEventLoopCounter | back to summary |
|---|---|
| private static int nestedEventLoopCounter | |
| terminateWhenLastWindowClosed | back to summary |
|---|---|
| private boolean terminateWhenLastWindowClosed | |
| Application | back to summary |
|---|---|
| protected Application() | |
| _enterNestedEventLoop | back to summary |
|---|---|
| protected abstract Object _enterNestedEventLoop() | |
| _getKeyCodeForChar | back to summary |
|---|---|
| protected abstract int _getKeyCodeForChar(char c, int hint) | |
| _invokeAndWait | back to summary |
|---|---|
| protected abstract void _invokeAndWait(Runnable runnable) | |
| _invokeLater | back to summary |
|---|---|
| protected abstract void _invokeLater(Runnable runnable) | |
| _isKeyLocked | back to summary |
|---|---|
| protected int _isKeyLocked(int keyCode) | |
| _leaveNestedEventLoop | back to summary |
|---|---|
| protected abstract void _leaveNestedEventLoop(Object retValue) | |
| _overrideNativeWindowHandle | back to summary |
|---|---|
| private static native void _overrideNativeWindowHandle(Class<T> lwFrameWrapperClass, Object frame, long handle, Runnable closeWindow) | |
| _supportsInputMethods | back to summary |
|---|---|
| protected boolean _supportsInputMethods() | |
| _supportsSystemMenu | back to summary |
|---|---|
| protected boolean _supportsSystemMenu() | |
| _supportsTransparentWindows | back to summary |
|---|---|
| protected abstract boolean _supportsTransparentWindows() | |
| _supportsUnifiedWindows | back to summary |
|---|---|
| protected abstract boolean _supportsUnifiedWindows() | |
| checkEventThread | back to summary |
|---|---|
| public static void checkEventThread() Verifies that the current thread is the event thread, and throws an exception if this is not so. The check can be disabled by setting the "glass.disableThreadChecks" system property. It is preferred, however, to fix the application code instead.
| |
| checkPlatformPreferencesSupport | back to summary |
|---|---|
| public void checkPlatformPreferencesSupport() Checks whether there are any problems with platform preferences detection, and if so, emits a warning. | |
| createAccessible | back to summary |
|---|---|
| public Accessible createAccessible() | |
| createCursor | back to summary |
|---|---|
| public abstract Cursor createCursor(int type) | |
| createCursor | back to summary |
|---|---|
| public abstract Cursor createCursor(int x, int y, Pixels pixels) | |
| createEventLoop | back to summary |
|---|---|
| public final EventLoop createEventLoop() | |
| createMenu | back to summary |
|---|---|
| public final Menu createMenu(String title) | |
| createMenu | back to summary |
|---|---|
| public final Menu createMenu(String title, boolean enabled) | |
| createMenuBar | back to summary |
|---|---|
| public final MenuBar createMenuBar() | |
| createMenuItem | back to summary |
|---|---|
| public final MenuItem createMenuItem(String title) | |
| createMenuItem | back to summary |
|---|---|
| public final MenuItem createMenuItem(String title, MenuItem. | |
| createMenuItem | back to summary |
|---|---|
| public final MenuItem createMenuItem(String title, MenuItem. | |
| createMenuItem | back to summary |
|---|---|
| public final MenuItem createMenuItem(String title, MenuItem. | |
| createPixels | back to summary |
|---|---|
| public abstract Pixels createPixels(int width, int height, ByteBuffer data) | |
| createPixels | back to summary |
|---|---|
| public abstract Pixels createPixels(int width, int height, ByteBuffer data, float scalex, float scaley) | |
| createPixels | back to summary |
|---|---|
| public abstract Pixels createPixels(int width, int height, IntBuffer data) | |
| createPixels | back to summary |
|---|---|
| public abstract Pixels createPixels(int width, int height, IntBuffer data, float scalex, float scaley) | |
| createPixels | back to summary |
|---|---|
| pack-priv static Pixels createPixels(int width, int height, int[] data, float scalex, float scaley) | |
| createRobot | back to summary |
|---|---|
| public abstract GlassRobot createRobot() | |
| createTimer | back to summary |
|---|---|
| public abstract Timer createTimer(Runnable runnable) | |
| createView | back to summary |
|---|---|
| public abstract View createView() | |
| createWindow | back to summary |
|---|---|
| public abstract Window createWindow(Window owner, Screen screen, int styleMask) Create a window. The styleMask argument is a bitmask of window styles as defined in the Window class. Note, however, that visual kinds (UNTITLED, TITLED, or TRANSPARENT) can't be combined together. Also, functional types (NORMAL, POPUP, or UTILITY) can't be combined together. A window is allowed to be of exactly one visual kind, and exactly one functional type. | |
| createWindow | back to summary |
|---|---|
| public final Window createWindow(Screen screen, int styleMask) Create a window. The styleMask argument is a bitmask of window styles as defined in the Window class. Note, however, that visual kinds (UNTITLED, TITLED, or TRANSPARENT) can't be combined together. Also, functional types (NORMAL, POPUP, or UTILITY) can't be combined together. A window is allowed to be of exactly one visual kind, and exactly one functional type. | |
| enterNestedEventLoop | back to summary |
|---|---|
| pack-priv static Object enterNestedEventLoop() Starts a nested event loop.
Calling this method temporarily blocks processing of the current event,
and starts a nested event loop to handle other native events. To
proceed with the blocked execution path, the application should call the
| |
| finishTerminating | back to summary |
|---|---|
| protected void finishTerminating() | |
| GetApplication | back to summary |
|---|---|
| public static Application GetApplication() | |
| getDataDirectory | back to summary |
|---|---|
| public String getDataDirectory() Gets a platform specific path that can be used to store application data. The application name typically appears as part of the path. On some platforms, the path may not yet exist and the caller will need to create it.
| |
| getDeviceDetails | back to summary |
|---|---|
| public static Map | |
| getEventHandler | back to summary |
|---|---|
| public Application. | |
| getEventThread | back to summary |
|---|---|
| protected static Thread getEventThread() | |
| getKeyCodeForChar | back to summary |
|---|---|
| public static int getKeyCodeForChar(char c, int hint) Returns a VK_ code of a key capable of producing the given unicode character with respect to the currently active keyboard layout or VK_UNDEFINED if the character isn't present in the current layout. The hint is the VK_ code of the key the system is attempting to match (which may be VK_UNDEFINED for a key on the main keyboard). It can be used to optimize the search or to distinguish between the main keyboard and the numeric keypad.
| |
| getName | back to summary |
|---|---|
| public String getName() Gets the name for the application. The application name may be used to identify the application in the user interface or as part of the platform specific path used to store application data. This is a hint and may not be used on some platforms.
| |
| getPlatformKeyMappings | back to summary |
|---|---|
| public Map Returns a map of platform-specific keys to platform-independent keys defined by JavaFX, including a function that maps the platform-specific value to the platform-independent value. For example, the platform-specific key "Windows.UIColor.Foreground" is mapped to the key "foregroundColor", which makes it easier to write shared code without depending on platform-specific details.
The following platform-independent keys are currently supported, which correspond to the names of
properties on the
| |
| getPlatformKeys | back to summary |
|---|---|
| public Map Returns a mapping of platform-specific keys to the types of their values.
Polymorphic types are supported by specifying the common base type; for example, a key can
be mapped to
Implementors must keep this map in sync with the mappings reported by the native Glass toolkit.
If a native toolkit reports mappings for keys that are not contained in this map, the typed getters
in | |
| getPlatformPreferences | back to summary |
|---|---|
| public Map Returns the current set of platform properties as a map of platform-specific keys to
arbitrary values. This is a snapshot, and won't be updated. There are no guarantees on
the implementation type, modifiability or serializability of the returned | |
| getScaleFactor | back to summary |
|---|---|
| pack-priv static float getScaleFactor(final int x, final int y, final int w, final int h) | |
| hasMultiTouch | back to summary |
|---|---|
| public boolean hasMultiTouch() | |
| hasPointer | back to summary |
|---|---|
| public boolean hasPointer() | |
| hasTouch | back to summary |
|---|---|
| public boolean hasTouch() | |
| hasTwoLevelFocus | back to summary |
|---|---|
| public boolean hasTwoLevelFocus() | |
| hasVirtualKeyboard | back to summary |
|---|---|
| public boolean hasVirtualKeyboard() | |
| hasWindowManager | back to summary |
|---|---|
| public boolean hasWindowManager() | |
| installDefaultMenus | back to summary |
|---|---|
| public void installDefaultMenus(MenuBar menubar) Install app's default native menus: on Mac OS X - Apple menu (showing the app name) with a single Quit menu item on Windows - NOP on Linux - NOP | |
| invokeAndWait | back to summary |
|---|---|
| public static void invokeAndWait(Runnable runnable) Block the current thread and wait until the given runnable finishes running on the native event loop thread. | |
| invokeLater | back to summary |
|---|---|
| public static void invokeLater(Runnable runnable) Schedule the given runnable to run on the native event loop thread some time in the future, and return immediately. | |
| isEventThread | back to summary |
|---|---|
| public static boolean isEventThread() Returns | |
| isKeyLocked | back to summary |
|---|---|
| public final Optional | |
| isNestedLoopRunning | back to summary |
|---|---|
| public static boolean isNestedLoopRunning() | |
| leaveNestedEventLoop | back to summary |
|---|---|
| pack-priv static void leaveNestedEventLoop(Object retValue) Terminates the current nested event loop.
After calling this method and returning from the current event handler,
the execusion returns to the point where the
| |
| loadNativeLibrary | back to summary |
|---|---|
| protected static synchronized void loadNativeLibrary(final String libname) | |
| loadNativeLibrary | back to summary |
|---|---|
| protected static synchronized void loadNativeLibrary() | |
| menuAboutAction | back to summary |
|---|---|
| public void menuAboutAction() | |
| notifyDidBecomeActive | back to summary |
|---|---|
| protected void notifyDidBecomeActive() | |
| notifyDidFinishLaunching | back to summary |
|---|---|
| protected void notifyDidFinishLaunching() | |
| notifyDidHide | back to summary |
|---|---|
| protected void notifyDidHide() | |
| notifyDidReceiveMemoryWarning | back to summary |
|---|---|
| protected void notifyDidReceiveMemoryWarning() | |
| notifyDidResignActive | back to summary |
|---|---|
| protected void notifyDidResignActive() | |
| notifyDidUnhide | back to summary |
|---|---|
| protected void notifyDidUnhide() | |
| notifyOpenFiles | back to summary |
|---|---|
| protected void notifyOpenFiles(String[] files) | |
| notifyPreferencesChanged | back to summary |
|---|---|
| protected void notifyPreferencesChanged(Map<String, Object> preferences) | |
| notifyRenderingFinished | back to summary |
|---|---|
| public void notifyRenderingFinished() Notifies the Application that rendering has completed for current pulse. This is called on the render thread. | |
| notifyWillBecomeActive | back to summary |
|---|---|
| protected void notifyWillBecomeActive() | |
| notifyWillFinishLaunching | back to summary |
|---|---|
| protected void notifyWillFinishLaunching() | |
| notifyWillHide | back to summary |
|---|---|
| protected void notifyWillHide() | |
| notifyWillQuit | back to summary |
|---|---|
| protected void notifyWillQuit() | |
| notifyWillResignActive | back to summary |
|---|---|
| protected void notifyWillResignActive() | |
| notifyWillUnhide | back to summary |
|---|---|
| protected void notifyWillUnhide() | |
| overrideNativeWindowHandle | back to summary |
|---|---|
| public static void overrideNativeWindowHandle(Class<T> lwFrameWrapperClass, Object frame, long handle, Runnable closeWindow) | |
| reportException | back to summary |
|---|---|
| public static void reportException(Throwable t) | |
| run | back to summary |
|---|---|
| public static void run(final Runnable launchable) | |
| runLoop | back to summary |
|---|---|
| protected abstract void runLoop(Runnable launchable) | |
| setDeviceDetails | back to summary |
|---|---|
| public static void setDeviceDetails(Map<K, V> details) | |
| setEventHandler | back to summary |
|---|---|
| public void setEventHandler(Application. | |
| setEventThread | back to summary |
|---|---|
| protected static void setEventThread(Thread thread) | |
| setName | back to summary |
|---|---|
| public void setName(String name) Sets the name for the application. The application name may be used to identify the application in the user interface or as part of the platform specific path used to store application data. The name could be set only once. All subsequent calls are ignored. This is a hint and may not be used on some platforms.
| |
| setTerminateWhenLastWindowClosed | back to summary |
|---|---|
| public final void setTerminateWhenLastWindowClosed(boolean b) | |
| shouldTerminateWhenLastWindowClosed | back to summary |
|---|---|
| public final boolean shouldTerminateWhenLastWindowClosed() | |
| shouldUpdateWindow | back to summary |
|---|---|
| public boolean shouldUpdateWindow() | |
| staticCommonDialogs_showFileChooser | back to summary |
|---|---|
| protected abstract CommonDialogs. | |
| staticCommonDialogs_showFolderChooser | back to summary |
|---|---|
| protected abstract File staticCommonDialogs_showFolderChooser(Window owner, String folder, String title) | |
| staticCursor_getBestSize | back to summary |
|---|---|
| protected abstract Size staticCursor_getBestSize(int width, int height) | |
| staticCursor_setVisible | back to summary |
|---|---|
| protected abstract void staticCursor_setVisible(boolean visible) | |
| staticPixels_getNativeFormat | back to summary |
|---|---|
| protected abstract int staticPixels_getNativeFormat() | |
| staticScreen_getScreens | back to summary |
|---|---|
| protected abstract Screen[] staticScreen_getScreens() | |
| staticScreen_getVideoRefreshPeriod | back to summary |
|---|---|
| protected abstract double staticScreen_getVideoRefreshPeriod() | |
| staticTimer_getMaxPeriod | back to summary |
|---|---|
| protected abstract int staticTimer_getMaxPeriod() | |
| staticTimer_getMinPeriod | back to summary |
|---|---|
| protected abstract int staticTimer_getMinPeriod() | |
| staticView_getMultiClickMaxX | back to summary |
|---|---|
| protected abstract int staticView_getMultiClickMaxX() | |
| staticView_getMultiClickMaxY | back to summary |
|---|---|
| protected abstract int staticView_getMultiClickMaxY() | |
| staticView_getMultiClickTime | back to summary |
|---|---|
| protected abstract long staticView_getMultiClickTime() | |
| supportsInputMethods | back to summary |
|---|---|
| public final boolean supportsInputMethods() | |
| supportsSystemMenu | back to summary |
|---|---|
| public final boolean supportsSystemMenu() | |
| supportsTransparentWindows | back to summary |
|---|---|
| public final boolean supportsTransparentWindows() | |
| supportsUnifiedWindows | back to summary |
|---|---|
| public final boolean supportsUnifiedWindows() | |
| terminate | back to summary |
|---|---|
| public void terminate() | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void |
| EventHandler | back to summary |
|---|---|
| public EventHandler() | |
| handleDidBecomeActiveAction | back to summary |
|---|---|
| public void handleDidBecomeActiveAction(Application app, long time) | |
| handleDidFinishLaunchingAction | back to summary |
|---|---|
| public void handleDidFinishLaunchingAction(Application app, long time) | |
| handleDidHideAction | back to summary |
|---|---|
| public void handleDidHideAction(Application app, long time) | |
| handleDidReceiveMemoryWarning | back to summary |
|---|---|
| public void handleDidReceiveMemoryWarning(Application app, long time) | |
| handleDidResignActiveAction | back to summary |
|---|---|
| public void handleDidResignActiveAction(Application app, long time) | |
| handleDidUnhideAction | back to summary |
|---|---|
| public void handleDidUnhideAction(Application app, long time) | |
| handleOpenFilesAction | back to summary |
|---|---|
| public void handleOpenFilesAction(Application app, long time, String[] files) | |
| handlePreferencesChanged | back to summary |
|---|---|
| public void handlePreferencesChanged(Map<String, Object> preferences) | |
| handleQuitAction | back to summary |
|---|---|
| public void handleQuitAction(Application app, long time) | |
| handleWillBecomeActiveAction | back to summary |
|---|---|
| public void handleWillBecomeActiveAction(Application app, long time) | |
| handleWillFinishLaunchingAction | back to summary |
|---|---|
| public void handleWillFinishLaunchingAction(Application app, long time) | |
| handleWillHideAction | back to summary |
|---|---|
| public void handleWillHideAction(Application app, long time) | |
| handleWillResignActiveAction | back to summary |
|---|---|
| public void handleWillResignActiveAction(Application app, long time) | |
| handleWillUnhideAction | back to summary |
|---|---|
| public void handleWillUnhideAction(Application app, long time) | |