final class MacApplication extends Application implements InvokeLaterDispatcher.InvokeLaterSubmitter
Application.EventHandler| Modifier and Type | Field and Description |
|---|---|
private Menu |
appleMenu |
(package private) static long |
BROWSER_PARENT_ID |
private InvokeLaterDispatcher |
invokeLaterDispatcher |
private boolean |
isTaskbarApplication |
name| Constructor and Description |
|---|
MacApplication() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Object |
_enterNestedEventLoop() |
private java.lang.Object |
_enterNestedEventLoopImpl() |
private void |
_finishTerminating() |
private java.lang.String |
_getDataDirectory() |
protected int |
_getKeyCodeForChar(char c) |
(package private) static int |
_getMacKey(int code) |
protected java.lang.String |
_getRemoteLayerServerName() |
private void |
_hide() |
private void |
_hideOtherApplications() |
private static void |
_initIDs(boolean disableSyncRendering) |
protected void |
_invokeAndWait(java.lang.Runnable runnable) |
protected void |
_invokeLater(java.lang.Runnable runnable) |
protected void |
_leaveNestedEventLoop(java.lang.Object retValue) |
private void |
_leaveNestedEventLoopImpl(java.lang.Object retValue) |
(package private) void |
_runLoop(java.lang.ClassLoader classLoader,
java.lang.Runnable launchable,
boolean isTaskbarApplication) |
private void |
_submitForLaterInvocation(java.lang.Runnable r) |
protected boolean |
_supportsInputMethods() |
protected boolean |
_supportsSystemMenu() |
protected boolean |
_supportsTransparentWindows() |
protected boolean |
_supportsUnifiedWindows() |
private void |
_unhideAllApplications() |
Accessible |
createAccessible() |
Cursor |
createCursor(int type) |
Cursor |
createCursor(int x,
int y,
Pixels pixels) |
Pixels |
createPixels(int width,
int height,
java.nio.ByteBuffer data) |
Pixels |
createPixels(int width,
int height,
java.nio.IntBuffer data) |
Pixels |
createPixels(int width,
int height,
java.nio.IntBuffer data,
float scale) |
Robot |
createRobot() |
Timer |
createTimer(java.lang.Runnable runnable) |
View |
createView() |
Window |
createWindow(long parent) |
Window |
createWindow(Window owner,
Screen screen,
int styleMask)
Create a window.
|
protected void |
finishTerminating() |
Menu |
getAppleMenu() |
java.lang.String |
getDataDirectory()
Gets a platform specific path that can be used to store
application data.
|
java.lang.String |
getRemoteLayerServerName() |
void |
installAppleMenu(MenuBar menubar) |
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
|
private void |
notifyApplicationDidTerminate() |
protected void |
runLoop(java.lang.Runnable launchable) |
private void |
setEventThread() |
protected CommonDialogs.FileChooserResult |
staticCommonDialogs_showFileChooser(Window owner,
java.lang.String folder,
java.lang.String filename,
java.lang.String title,
int type,
boolean multipleMode,
CommonDialogs.ExtensionFilter[] extensionFilters,
int defaultFilterIndex) |
protected java.io.File |
staticCommonDialogs_showFolderChooser(Window owner,
java.lang.String folder,
java.lang.String title) |
protected Size |
staticCursor_getBestSize(int width,
int height) |
protected void |
staticCursor_setVisible(boolean visible) |
protected int |
staticPixels_getNativeFormat() |
protected Screen[] |
staticScreen_getScreens() |
protected double |
staticScreen_getVideoRefreshPeriod() |
protected int |
staticTimer_getMaxPeriod() |
protected int |
staticTimer_getMinPeriod() |
protected int |
staticView_getMultiClickMaxX() |
protected int |
staticView_getMultiClickMaxY() |
protected long |
staticView_getMultiClickTime() |
void |
submitForLaterInvocation(java.lang.Runnable r)
Submits the runnable to the native system for later execution and
returns immediately.
|
checkEventThread, createEventLoop, createMenu, createMenu, createMenuBar, createMenuItem, createMenuItem, createMenuItem, createMenuItem, createWindow, GetApplication, getDeviceDetails, getEventHandler, getEventThread, getHighContrastTheme, getKeyCodeForChar, getName, hasMultiTouch, hasPointer, hasTouch, hasTwoLevelFocus, hasVirtualKeyboard, hasWindowManager, invokeAndWait, invokeLater, isEventThread, isNestedLoopRunning, loadNativeLibrary, loadNativeLibrary, menuAboutAction, notifyRenderingFinished, reportException, run, setDeviceDetails, setEventHandler, setEventThread, setName, setTerminateWhenLastWindowClosed, shouldTerminateWhenLastWindowClosed, shouldUpdateWindow, supportsInputMethods, supportsSystemMenu, supportsTransparentWindows, supportsUnifiedWindows, terminateprivate boolean isTaskbarApplication
private final InvokeLaterDispatcher invokeLaterDispatcher
private Menu appleMenu
static final long BROWSER_PARENT_ID
private static void _initIDs(boolean disableSyncRendering)
static int _getMacKey(int code)
void _runLoop(java.lang.ClassLoader classLoader,
java.lang.Runnable launchable,
boolean isTaskbarApplication)
protected void runLoop(java.lang.Runnable launchable)
runLoop in class Applicationprivate void _finishTerminating()
protected void finishTerminating()
finishTerminating in class Applicationprivate void notifyApplicationDidTerminate()
private void setEventThread()
private java.lang.Object _enterNestedEventLoopImpl()
protected java.lang.Object _enterNestedEventLoop()
_enterNestedEventLoop in class Applicationprivate void _leaveNestedEventLoopImpl(java.lang.Object retValue)
protected void _leaveNestedEventLoop(java.lang.Object retValue)
_leaveNestedEventLoop in class Applicationprivate void _hide()
private void _hideOtherApplications()
private void _unhideAllApplications()
public void installAppleMenu(MenuBar menubar)
public Menu getAppleMenu()
public void installDefaultMenus(MenuBar menubar)
ApplicationinstallDefaultMenus in class Applicationpublic Window createWindow(Window owner, Screen screen, int styleMask)
ApplicationcreateWindow in class Applicationpublic Window createWindow(long parent)
createWindow in class Applicationpublic View createView()
createView in class Applicationpublic Cursor createCursor(int type)
createCursor in class Applicationpublic Cursor createCursor(int x, int y, Pixels pixels)
createCursor in class Applicationprotected void staticCursor_setVisible(boolean visible)
staticCursor_setVisible in class Applicationprotected Size staticCursor_getBestSize(int width, int height)
staticCursor_getBestSize in class Applicationpublic Pixels createPixels(int width, int height, java.nio.ByteBuffer data)
createPixels in class Applicationpublic Pixels createPixels(int width, int height, java.nio.IntBuffer data)
createPixels in class Applicationpublic Pixels createPixels(int width, int height, java.nio.IntBuffer data, float scale)
createPixels in class Applicationprotected int staticPixels_getNativeFormat()
staticPixels_getNativeFormat in class Applicationpublic Robot createRobot()
createRobot in class Applicationprotected double staticScreen_getVideoRefreshPeriod()
staticScreen_getVideoRefreshPeriod in class Applicationprotected Screen[] staticScreen_getScreens()
staticScreen_getScreens in class Applicationpublic Timer createTimer(java.lang.Runnable runnable)
createTimer in class Applicationprotected int staticTimer_getMinPeriod()
staticTimer_getMinPeriod in class Applicationprotected int staticTimer_getMaxPeriod()
staticTimer_getMaxPeriod in class Applicationpublic Accessible createAccessible()
createAccessible in class Applicationprotected CommonDialogs.FileChooserResult staticCommonDialogs_showFileChooser(Window owner, java.lang.String folder, java.lang.String filename, java.lang.String title, int type, boolean multipleMode, CommonDialogs.ExtensionFilter[] extensionFilters, int defaultFilterIndex)
staticCommonDialogs_showFileChooser in class Applicationprotected java.io.File staticCommonDialogs_showFolderChooser(Window owner, java.lang.String folder, java.lang.String title)
staticCommonDialogs_showFolderChooser in class Applicationprotected long staticView_getMultiClickTime()
staticView_getMultiClickTime in class Applicationprotected int staticView_getMultiClickMaxX()
staticView_getMultiClickMaxX in class Applicationprotected int staticView_getMultiClickMaxY()
staticView_getMultiClickMaxY in class Applicationprotected void _invokeAndWait(java.lang.Runnable runnable)
_invokeAndWait in class Applicationprivate void _submitForLaterInvocation(java.lang.Runnable r)
public void submitForLaterInvocation(java.lang.Runnable r)
InvokeLaterDispatcher.InvokeLaterSubmittersubmitForLaterInvocation in interface InvokeLaterDispatcher.InvokeLaterSubmitterprotected void _invokeLater(java.lang.Runnable runnable)
_invokeLater in class Applicationprotected boolean _supportsInputMethods()
_supportsInputMethods in class Applicationprotected boolean _supportsTransparentWindows()
_supportsTransparentWindows in class Applicationprotected boolean _supportsUnifiedWindows()
_supportsUnifiedWindows in class Applicationprotected boolean _supportsSystemMenu()
_supportsSystemMenu in class Applicationprotected java.lang.String _getRemoteLayerServerName()
public java.lang.String getRemoteLayerServerName()
private java.lang.String _getDataDirectory()
public java.lang.String getDataDirectory()
ApplicationgetDataDirectory in class Applicationprotected int _getKeyCodeForChar(char c)
_getKeyCodeForChar in class Application