Top Inners Fields Constructors Methods
com.sun.glass.ui

public abstract Class Application

extends Object
Class Inheritance
Known Direct Subclasses
com.sun.glass.ui.gtk.GtkApplication, com.sun.glass.ui.ios.IosApplication, com.sun.glass.ui.mac.MacApplication, com.sun.glass.ui.monocle.MonocleApplication, com.sun.glass.ui.win.WinApplication
Imports
com.sun.glass.events.KeyEvent, com.sun.glass.ui.CommonDialogs.ExtensionFilter, .CommonDialogs.FileChooserResult, com.sun.javafx.application.preferences.PreferenceMapping, java.io.File, java.nio.ByteBuffer, .IntBuffer, java.util.List, .Map, .LinkedList, .Optional, java.util.function.Supplier

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
private static Application
private static final String
private static volatile Map<K, V>
private static final boolean
private Application.EventHandler
private static Thread
private boolean
private String[]
private static boolean
protected String
private static int
private boolean

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
protected abstract Object
protected abstract int
_getKeyCodeForChar(char c, int hint)

protected abstract void
protected abstract void
protected int
_isKeyLocked(int keyCode)

protected abstract void
private static native void
_overrideNativeWindowHandle(Class<T> lwFrameWrapperClass, Object frame, long handle, Runnable closeWindow)

protected abstract boolean
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
createCursor(int type)

public abstract Cursor
createCursor(int x, int y, Pixels pixels)

public final EventLoop
public final Menu
public final Menu
createMenu(String title, boolean enabled)

public final MenuBar
public final MenuItem
public final MenuItem
public final MenuItem
createMenuItem(String title, MenuItem.Callback callback, int shortcutKey, int shortcutModifiers)

public final MenuItem
createMenuItem(String title, MenuItem.Callback callback, int shortcutKey, int shortcutModifiers, Pixels pixels)

public abstract Pixels
createPixels(int width, int height, ByteBuffer data)

public abstract Pixels
createPixels(int width, int height, ByteBuffer data, float scalex, float scaley)

public abstract Pixels
createPixels(int width, int height, IntBuffer data)

public abstract Pixels
createPixels(int width, int height, IntBuffer data, float scalex, float scaley)

pack-priv static Pixels
createPixels(int width, int height, int[] data, float scalex, float scaley)

public abstract GlassRobot
public abstract Timer
public abstract View
public abstract Window
createWindow(Window owner, Screen screen, int styleMask)

Create a window.

public final Window
createWindow(Screen screen, int styleMask)

Create a window.

pack-priv static Object

Returns:

an object passed to the leaveNestedEventLoop() method
enterNestedEventLoop
()

Starts a nested event loop.

protected void
public static Application
public String

Returns:

the platform specific path for the application data
getDataDirectory
()

Gets a platform specific path that can be used to store application data.

public static Map<K, V>
public Application.EventHandler
protected static Thread
public static int

Returns:

integer code for the given char
getKeyCodeForChar
(char
the 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

Returns:

the application name
getName
()

Gets the name for the application.

public Map<String, PreferenceMapping<?, ?>>

Returns:

a map of platform-specific keys to well-known keys
getPlatformKeyMappings
()

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.

public Map<String, Class<?>>

Returns:

a map of platform-specific keys to types
getPlatformKeys
()

Returns a mapping of platform-specific keys to the types of their values.

public Map<String, Object>

Returns:

the current set of platform preferences
getPlatformPreferences
()

Returns the current set of platform properties as a map of platform-specific keys to arbitrary values.

pack-priv static float
getScaleFactor(final int x, final int y, final int w, final int h)

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
isEventThread()

Returns true if the current thread is the event thread.

public final Optional<Boolean>
isKeyLocked(int keyCode)

public static boolean
pack-priv static void
leaveNestedEventLoop(Object retValue)

Terminates the current nested event loop.

protected static synchronized void
loadNativeLibrary(final String libname)

protected static synchronized void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
public void
notifyRenderingFinished()

Notifies the Application that rendering has completed for current pulse.

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
run(final Runnable launchable)

protected abstract void
runLoop(Runnable launchable)

public static void
setDeviceDetails(Map<K, V> details)

public void
protected static void
public void
setName(String
the new application name
name
)

Sets the name for the application.

public final void
public final boolean
public boolean
protected abstract CommonDialogs.FileChooserResult
staticCommonDialogs_showFileChooser(Window owner, String folder, String filename, String title, int type, boolean multipleMode, CommonDialogs.ExtensionFilter[] extensionFilters, int defaultFilterIndex)

protected abstract File
protected abstract Size
staticCursor_getBestSize(int width, int height)

protected abstract void
staticCursor_setVisible(boolean visible)

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 final boolean
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait