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

pack-priv final Class WinApplication

extends Application
implements InvokeLaterSubmitter
Class Inheritance
All Implemented Interfaces
com.sun.glass.ui.InvokeLaterDispatcher.InvokeLaterSubmitter
Imports
com.sun.glass.ui.*, .CommonDialogs.ExtensionFilter, .CommonDialogs.FileChooserResult, com.sun.javafx.application.PlatformImpl, com.sun.prism.impl.PrismSettings, com.sun.javafx.tk.Toolkit, java.io.File, java.nio.ByteBuffer, .IntBuffer, java.security.AccessController, .PrivilegedAction, java.util.ResourceBundle

Field Summary

Modifier and TypeField and Description
private static final String
private final InvokeLaterDispatcher
pack-priv static float
private static final int
private static final int
private static final int
private static boolean
Inherited from com.sun.glass.ui.Application:
name

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected Object
private native Object
private native String
protected native int
private native long
_init(int awarenessRequested)

protected native void
protected void
protected native int
protected void
private native void
private native void
_runLoop(Runnable launchable)

private native void
private native void
protected boolean
protected boolean
protected native boolean
private native void
public Accessible
public Cursor
public Cursor
createCursor(int x, int y, Pixels pixels)

Implements abstract com.sun.glass.ui.Application.createCursor.

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

Implements abstract com.sun.glass.ui.Application.createPixels.

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

Implements abstract com.sun.glass.ui.Application.createPixels.

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

Implements abstract com.sun.glass.ui.Application.createPixels.

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

Implements abstract com.sun.glass.ui.Application.createPixels.

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

Implements abstract com.sun.glass.ui.Application.createWindow.

Create a window.

protected void
private static boolean
getBoolean(String propname, boolean defval, String description)

public String
getDataDirectory()

Overrides com.sun.glass.ui.Application.getDataDirectory.

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

private static int
private static float
getFloat(String propname, float defval, String description)

public String
public String
getHighContrastTheme()

Overrides com.sun.glass.ui.Application.getHighContrastTheme.

Gets the Name of the currently active high contrast theme.

private static native void
initIDs(float overrideUIScale)

protected void
runLoop(final Runnable launchable)

Implements abstract com.sun.glass.ui.Application.runLoop.

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

Implements abstract com.sun.glass.ui.Application.staticCommonDialogs_showFileChooser.

protected File
protected Size
protected void
protected int
protected native Screen[]
protected double
protected int
protected int
protected int
protected int
protected long
public void
submitForLaterInvocation(Runnable r)

Implements com.sun.glass.ui.InvokeLaterDispatcher.InvokeLaterSubmitter.submitForLaterInvocation.

Submits the runnable to the native system for later execution and returns immediately.

Inherited from com.sun.glass.ui.Application:
_supportsSystemMenucheckEventThreadcreateEventLoopcreateMenucreateMenucreateMenuBarcreateMenuItemcreateMenuItemcreateMenuItemcreateMenuItemcreateWindowGetApplicationgetDeviceDetailsgetEventHandlergetEventThreadgetKeyCodeForChargetNamehasMultiTouchhasPointerhasTouchhasTwoLevelFocushasVirtualKeyboardhasWindowManagerinstallDefaultMenusinvokeAndWaitinvokeLaterisEventThreadisKeyLockedisNestedLoopRunningloadNativeLibraryloadNativeLibrarymenuAboutActionnotifyDidBecomeActivenotifyDidFinishLaunchingnotifyDidHidenotifyDidReceiveMemoryWarningnotifyDidResignActivenotifyDidUnhidenotifyOpenFilesnotifyRenderingFinishednotifyThemeChangednotifyWillBecomeActivenotifyWillFinishLaunchingnotifyWillHidenotifyWillQuitnotifyWillResignActivenotifyWillUnhidereportExceptionrunsetDeviceDetailssetEventHandlersetEventThreadsetNamesetTerminateWhenLastWindowClosedshouldTerminateWhenLastWindowClosedsupportsInputMethodssupportsSystemMenusupportsTransparentWindowssupportsUnifiedWindowsterminate

Field Detail

BASE_NAMEback to summary
private static final String BASE_NAME
invokeLaterDispatcherback to summary
private final InvokeLaterDispatcher invokeLaterDispatcher
overrideUIScaleback to summary
pack-priv static float overrideUIScale
Process_DPI_Unawareback to summary
private static final int Process_DPI_Unaware
Process_Per_Monitor_DPI_Awareback to summary
private static final int Process_Per_Monitor_DPI_Aware
Process_System_DPI_Awareback to summary
private static final int Process_System_DPI_Aware
verboseback to summary
private static boolean verbose

Constructor Detail

WinApplicationback to summary
pack-priv WinApplication()

Method Detail

_enterNestedEventLoopback to summary
protected Object _enterNestedEventLoop()

Implements abstract com.sun.glass.ui.Application._enterNestedEventLoop.

Annotations
@Override
_enterNestedEventLoopImplback to summary
private native Object _enterNestedEventLoopImpl()
_getHighContrastThemeback to summary
private native String _getHighContrastTheme()
_getKeyCodeForCharback to summary
protected native int _getKeyCodeForChar(char c)

Implements abstract com.sun.glass.ui.Application._getKeyCodeForChar.

Annotations
@Override
_initback to summary
private native long _init(int awarenessRequested)
_invokeAndWaitback to summary
protected native void _invokeAndWait(Runnable runnable)

Implements abstract com.sun.glass.ui.Application._invokeAndWait.

Annotations
@Override
_invokeLaterback to summary
protected void _invokeLater(Runnable runnable)

Implements abstract com.sun.glass.ui.Application._invokeLater.

Annotations
@Override
_isKeyLockedback to summary
protected native int _isKeyLocked(int keyCode)

Overrides com.sun.glass.ui.Application._isKeyLocked.

Annotations
@Override
_leaveNestedEventLoopback to summary
protected void _leaveNestedEventLoop(Object retValue)

Implements abstract com.sun.glass.ui.Application._leaveNestedEventLoop.

Annotations
@Override
_leaveNestedEventLoopImplback to summary
private native void _leaveNestedEventLoopImpl(Object retValue)
_runLoopback to summary
private native void _runLoop(Runnable launchable)
_setClassLoaderback to summary
private native void _setClassLoader(ClassLoader classLoader)
_submitForLaterInvocationback to summary
private native void _submitForLaterInvocation(Runnable r)
_supportsInputMethodsback to summary
protected boolean _supportsInputMethods()

Overrides com.sun.glass.ui.Application._supportsInputMethods.

Annotations
@Override
_supportsTransparentWindowsback to summary
protected boolean _supportsTransparentWindows()

Implements abstract com.sun.glass.ui.Application._supportsTransparentWindows.

Annotations
@Override
_supportsUnifiedWindowsback to summary
protected native boolean _supportsUnifiedWindows()

Implements abstract com.sun.glass.ui.Application._supportsUnifiedWindows.

Annotations
@Override
_terminateLoopback to summary
private native void _terminateLoop()
createAccessibleback to summary
public Accessible createAccessible()

Overrides com.sun.glass.ui.Application.createAccessible.

Annotations
@Override
createCursorback to summary
public Cursor createCursor(int type)

Implements abstract com.sun.glass.ui.Application.createCursor.

Annotations
@Override
createCursorback to summary
public Cursor createCursor(int x, int y, Pixels pixels)

Implements abstract com.sun.glass.ui.Application.createCursor.

Annotations
@Override
createPixelsback to summary
public Pixels createPixels(int width, int height, ByteBuffer data)

Implements abstract com.sun.glass.ui.Application.createPixels.

Annotations
@Override
createPixelsback to summary
public Pixels createPixels(int width, int height, ByteBuffer data, float scalex, float scaley)

Implements abstract com.sun.glass.ui.Application.createPixels.

Annotations
@Override
createPixelsback to summary
public Pixels createPixels(int width, int height, IntBuffer data)

Implements abstract com.sun.glass.ui.Application.createPixels.

Annotations
@Override
createPixelsback to summary
public Pixels createPixels(int width, int height, IntBuffer data, float scalex, float scaley)

Implements abstract com.sun.glass.ui.Application.createPixels.

Annotations
@Override
createRobotback to summary
public GlassRobot createRobot()

Implements abstract com.sun.glass.ui.Application.createRobot.

Annotations
@Override
createTimerback to summary
public Timer createTimer(Runnable runnable)

Implements abstract com.sun.glass.ui.Application.createTimer.

Annotations
@Override
createViewback to summary
public View createView()

Implements abstract com.sun.glass.ui.Application.createView.

Annotations
@Override
createWindowback to summary
public Window createWindow(Window owner, Screen screen, int styleMask)

Implements abstract com.sun.glass.ui.Application.createWindow.

Doc from com.sun.glass.ui.Application.createWindow.

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.

Annotations
@Override
finishTerminatingback to summary
protected void finishTerminating()

Overrides com.sun.glass.ui.Application.finishTerminating.

Annotations
@Override
getBooleanback to summary
private static boolean getBoolean(String propname, boolean defval, String description)
getDataDirectoryback to summary
public String getDataDirectory()

Overrides com.sun.glass.ui.Application.getDataDirectory.

Doc from com.sun.glass.ui.Application.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.

Returns:String

the platform specific path for the application data

Annotations
@Override
getDesiredAwarenesslevelback to summary
private static int getDesiredAwarenesslevel()
getFloatback to summary
private static float getFloat(String propname, float defval, String description)
getHighContrastSchemeback to summary
public String getHighContrastScheme(String themeName)

Overrides com.sun.glass.ui.Application.getHighContrastScheme.

Annotations
@Override
getHighContrastThemeback to summary
public String getHighContrastTheme()

Overrides com.sun.glass.ui.Application.getHighContrastTheme.

Doc from com.sun.glass.ui.Application.getHighContrastTheme.

Gets the Name of the currently active high contrast theme. If null, then high contrast is not enabled.

Annotations
@Override
initIDsback to summary
private static native void initIDs(float overrideUIScale)
runLoopback to summary
protected void runLoop(final Runnable launchable)

Implements abstract com.sun.glass.ui.Application.runLoop.

Annotations
@Override
shouldUpdateWindowback to summary
public boolean shouldUpdateWindow()

Overrides com.sun.glass.ui.Application.shouldUpdateWindow.

Annotations
@Override
staticCommonDialogs_showFileChooserback to summary
protected CommonDialogs.FileChooserResult staticCommonDialogs_showFileChooser(Window owner, String folder, String filename, String title, int type, boolean multipleMode, CommonDialogs.ExtensionFilter[] extensionFilters, int defaultFilterIndex)

Implements abstract com.sun.glass.ui.Application.staticCommonDialogs_showFileChooser.

Annotations
@Override
staticCommonDialogs_showFolderChooserback to summary
protected File staticCommonDialogs_showFolderChooser(Window owner, String folder, String title)

Implements abstract com.sun.glass.ui.Application.staticCommonDialogs_showFolderChooser.

Annotations
@Override
staticCursor_getBestSizeback to summary
protected Size staticCursor_getBestSize(int width, int height)

Implements abstract com.sun.glass.ui.Application.staticCursor_getBestSize.

Annotations
@Override
staticCursor_setVisibleback to summary
protected void staticCursor_setVisible(boolean visible)

Implements abstract com.sun.glass.ui.Application.staticCursor_setVisible.

Annotations
@Override
staticPixels_getNativeFormatback to summary
protected int staticPixels_getNativeFormat()

Implements abstract com.sun.glass.ui.Application.staticPixels_getNativeFormat.

Annotations
@Override
staticScreen_getScreensback to summary
protected native Screen[] staticScreen_getScreens()

Implements abstract com.sun.glass.ui.Application.staticScreen_getScreens.

Annotations
@Override
staticScreen_getVideoRefreshPeriodback to summary
protected double staticScreen_getVideoRefreshPeriod()

Implements abstract com.sun.glass.ui.Application.staticScreen_getVideoRefreshPeriod.

Annotations
@Override
staticTimer_getMaxPeriodback to summary
protected int staticTimer_getMaxPeriod()

Implements abstract com.sun.glass.ui.Application.staticTimer_getMaxPeriod.

Annotations
@Override
staticTimer_getMinPeriodback to summary
protected int staticTimer_getMinPeriod()

Implements abstract com.sun.glass.ui.Application.staticTimer_getMinPeriod.

Annotations
@Override
staticView_getMultiClickMaxXback to summary
protected int staticView_getMultiClickMaxX()

Implements abstract com.sun.glass.ui.Application.staticView_getMultiClickMaxX.

Annotations
@Override
staticView_getMultiClickMaxYback to summary
protected int staticView_getMultiClickMaxY()

Implements abstract com.sun.glass.ui.Application.staticView_getMultiClickMaxY.

Annotations
@Override
staticView_getMultiClickTimeback to summary
protected long staticView_getMultiClickTime()

Implements abstract com.sun.glass.ui.Application.staticView_getMultiClickTime.

Annotations
@Override
submitForLaterInvocationback to summary
public void submitForLaterInvocation(Runnable r)

Implements com.sun.glass.ui.InvokeLaterDispatcher.InvokeLaterSubmitter.submitForLaterInvocation.

Doc from com.sun.glass.ui.InvokeLaterDispatcher.InvokeLaterSubmitter.submitForLaterInvocation.

Submits the runnable to the native system for later execution and returns immediately.

Annotations
@Override