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

pack-priv final Class MacWindow

extends Window
Class Inheritance
Imports
com.sun.glass.events.WindowEvent, com.sun.glass.ui.Cursor, .HeaderButtonMetrics, .Pixels, .Screen, .View, .Window, javafx.geometry.Dimension2D, javafx.scene.layout.HeaderBar, java.nio.ByteBuffer

MacOSX platform implementation class for Window.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static enum

Field Summary

Modifier and TypeField and Description
private ByteBuffer
Inherited from com.sun.glass.ui.Window:
CLOSABLEEXTENDEDheaderButtonMetricsheaderButtonOverlayheightMAXIMIZABLEMINIMIZABLEMODALNORMALplatformScaleXplatformScaleYPOPUPRIGHT_TO_LEFTscreenTITLEDTRANSPARENTUNIFIEDUNTITLEDUTILITYviewwidthxy

Constructor Summary

AccessConstructor and Description
protected
MacWindow(Window owner, Screen screen, int styleMask)

Method Summary

Modifier and TypeMethod and Description
protected native boolean
_close(long ptr)

Implements abstract com.sun.glass.ui.Window._close.

protected native long
_createWindow(long ownerPtr, long screenPtr, int mask)

Implements abstract com.sun.glass.ui.Window._createWindow.

protected native boolean
_grabFocus(long ptr)

Implements abstract com.sun.glass.ui.Window._grabFocus.

private static native void
private native boolean
protected native boolean
_maximize(long ptr, boolean maximize, boolean wasMaximized)

Implements abstract com.sun.glass.ui.Window._maximize.

protected native boolean
_minimize(long ptr, boolean minimize)

Implements abstract com.sun.glass.ui.Window._minimize.

private native void
private native void
protected void
private native boolean
_requestFocus(long ptr)

protected boolean
_requestFocus(long ptr, int event)

Implements abstract com.sun.glass.ui.Window._requestFocus.

protected void
_requestInput(long ptr, String text, int type, double width, double height, double Mxx, double Mxy, double Mxz, double Mxt, double Myx, double Myy, double Myz, double Myt, double Mzx, double Mzy, double Mzz, double Mzt)

Implements abstract com.sun.glass.ui.Window._requestInput.

protected native void
_setAlpha(long ptr, float alpha)

Implements abstract com.sun.glass.ui.Window._setAlpha.

protected native boolean
_setBackground(long ptr, float r, float g, float b)

Implements abstract com.sun.glass.ui.Window._setBackground.

protected void
_setBounds(long ptr, int x, int y, boolean xSet, boolean ySet, int w, int h, int cw, int ch, float xGravity, float yGravity)

Implements abstract com.sun.glass.ui.Window._setBounds.

protected native void
_setBounds2(long ptr, int x, int y, boolean xSet, boolean ySet, int w, int h, int cw, int ch, float xGravity, float yGravity)

protected void
_setCursor(long ptr, Cursor cursor)

Implements abstract com.sun.glass.ui.Window._setCursor.

protected native void
_setEnabled(long ptr, boolean enabled)

Implements abstract com.sun.glass.ui.Window._setEnabled.

protected native void
_setFocusable(long ptr, boolean isFocusable)

Implements abstract com.sun.glass.ui.Window._setFocusable.

protected void
_setIcon(long ptr, Pixels pixels)

Implements abstract com.sun.glass.ui.Window._setIcon.

private native void
_setIcon(long ptr, Object iconBuffer, int width, int height)

protected native void
_setLevel(long ptr, int level)

Implements abstract com.sun.glass.ui.Window._setLevel.

protected native boolean
_setMaximumSize(long ptr, int width, int height)

Implements abstract com.sun.glass.ui.Window._setMaximumSize.

protected native boolean
_setMenubar(long ptr, long menubarPtr)

Implements abstract com.sun.glass.ui.Window._setMenubar.

protected native boolean
_setMinimumSize(long ptr, int width, int height)

Implements abstract com.sun.glass.ui.Window._setMinimumSize.

protected native boolean
_setResizable(long ptr, boolean resizable)

Implements abstract com.sun.glass.ui.Window._setResizable.

protected native boolean
_setTitle(long ptr, String title)

Implements abstract com.sun.glass.ui.Window._setTitle.

protected native boolean
_setView(long ptr, View view)

Implements abstract com.sun.glass.ui.Window._setView.

protected native boolean
_setVisible(long ptr, boolean visible)

Implements abstract com.sun.glass.ui.Window._setVisible.

private native void
_setWindowButtonStyle(long ptr, int toolbarStyle, boolean buttonsVisible)

protected native void
_toBack(long ptr)

Implements abstract com.sun.glass.ui.Window._toBack.

protected native void
_toFront(long ptr)

Implements abstract com.sun.glass.ui.Window._toFront.

protected native void
_ungrabFocus(long ptr)

Implements abstract com.sun.glass.ui.Window._ungrabFocus.

protected void
protected void
notifyMove(final int x, final int y, boolean isMaximized)

protected void
notifyResize(int type, int width, int height)

Overrides com.sun.glass.ui.Window.notifyResize.

type values: - WindowEvent.RESIZE - WindowEvent.MINIMIZE - WindowEvent.MAXIMIZE - WindowEvent.RESTORE

private void
public void
public void
private void
updateHeaderButtonMetrics(MacWindow.NSWindowToolbarStyle toolbarStyle, double prefButtonHeight)

Inherited from com.sun.glass.ui.Window:
addaddFirstclosegetAlphagetEventHandlergetHeightgetLevelgetMaximumHeightgetMaximumWidthgetMenuBargetMinimumHeightgetMinimumWidthgetNativeHandlegetNativeWindowgetOutputScaleXgetOutputScaleYgetOwnergetPlatformScaleXgetPlatformScaleYgetRawHandlegetRenderScaleXgetRenderScaleYgetScreengetStyleMaskgetTitlegetViewgetWidthgetWindowsgetWindowsClonegetXgetYgrabFocushandleWindowEventheaderButtonMetricsPropertyheaderButtonOverlayPropertyisClosedisDecoratedisEnabledisExtendedWindowisFocusedisMaximizedisMinimizedisModalisPopupisResizableisTransparentWindowisUnifiedWindowisUtilityWindowisVisiblemaximizeminimizenotifyClosenotifyDelegatePtrnotifyDestroynotifyFocusnotifyFocusDisablednotifyFocusUngrabnotifyLevelChangednotifyMovenotifyMoveToAnotherScreennotifyRescalenotifyScaleChangedprefHeaderButtonHeightPropertyreleaseInputremoverequestFocusrequestFocusrequestInputsetAlphasetBackgroundsetBoundssetContentSizesetCursorsetEnabledsetEventHandlersetFocusablesetIconsetLevelsetMaximumSizesetMenuBarsetMinimumSizesetPositionsetPrefHeaderButtonHeightsetRenderScaleXsetRenderScaleYsetResizablesetScreensetSizesetStatesetTitlesetViewsetVisibletoBacktoFronttoStringungrabFocus

Field Detail

iconBufferback to summary
private ByteBuffer iconBuffer

Constructor Detail

MacWindowback to summary
protected MacWindow(Window owner, Screen screen, int styleMask)

Method Detail

_closeback to summary
protected native boolean _close(long ptr)

Implements abstract com.sun.glass.ui.Window._close.

Annotations
@Override
_createWindowback to summary
protected native long _createWindow(long ownerPtr, long screenPtr, int mask)

Implements abstract com.sun.glass.ui.Window._createWindow.

Annotations
@Override
_grabFocusback to summary
protected native boolean _grabFocus(long ptr)

Implements abstract com.sun.glass.ui.Window._grabFocus.

Annotations
@Override
_initIDsback to summary
private static native void _initIDs()
_isRightToLeftLayoutDirectionback to summary
private native boolean _isRightToLeftLayoutDirection()
_maximizeback to summary
protected native boolean _maximize(long ptr, boolean maximize, boolean wasMaximized)

Implements abstract com.sun.glass.ui.Window._maximize.

Annotations
@Override
_minimizeback to summary
protected native boolean _minimize(long ptr, boolean minimize)

Implements abstract com.sun.glass.ui.Window._minimize.

Annotations
@Override
_performTitleBarDoubleClickActionback to summary
private native void _performTitleBarDoubleClickAction(long ptr)
_performWindowDragback to summary
private native void _performWindowDrag(long ptr)
_releaseInputback to summary
protected void _releaseInput(long ptr)

Implements abstract com.sun.glass.ui.Window._releaseInput.

Annotations
@Override
_requestFocusback to summary
private native boolean _requestFocus(long ptr)
_requestFocusback to summary
protected boolean _requestFocus(long ptr, int event)

Implements abstract com.sun.glass.ui.Window._requestFocus.

Annotations
@Override
_requestInputback to summary
protected void _requestInput(long ptr, String text, int type, double width, double height, double Mxx, double Mxy, double Mxz, double Mxt, double Myx, double Myy, double Myz, double Myt, double Mzx, double Mzy, double Mzz, double Mzt)

Implements abstract com.sun.glass.ui.Window._requestInput.

Annotations
@Override
_setAlphaback to summary
protected native void _setAlpha(long ptr, float alpha)

Implements abstract com.sun.glass.ui.Window._setAlpha.

Annotations
@Override
_setBackgroundback to summary
protected native boolean _setBackground(long ptr, float r, float g, float b)

Implements abstract com.sun.glass.ui.Window._setBackground.

Annotations
@Override
_setBoundsback to summary
protected void _setBounds(long ptr, int x, int y, boolean xSet, boolean ySet, int w, int h, int cw, int ch, float xGravity, float yGravity)

Implements abstract com.sun.glass.ui.Window._setBounds.

Annotations
@Override
_setBounds2back to summary
protected native void _setBounds2(long ptr, int x, int y, boolean xSet, boolean ySet, int w, int h, int cw, int ch, float xGravity, float yGravity)
_setCursorback to summary
protected void _setCursor(long ptr, Cursor cursor)

Implements abstract com.sun.glass.ui.Window._setCursor.

Annotations
@Override
_setEnabledback to summary
protected native void _setEnabled(long ptr, boolean enabled)

Implements abstract com.sun.glass.ui.Window._setEnabled.

Annotations
@Override
_setFocusableback to summary
protected native void _setFocusable(long ptr, boolean isFocusable)

Implements abstract com.sun.glass.ui.Window._setFocusable.

Annotations
@Override
_setIconback to summary
protected void _setIcon(long ptr, Pixels pixels)

Implements abstract com.sun.glass.ui.Window._setIcon.

Annotations
@Override
_setIconback to summary
private native void _setIcon(long ptr, Object iconBuffer, int width, int height)
_setLevelback to summary
protected native void _setLevel(long ptr, int level)

Implements abstract com.sun.glass.ui.Window._setLevel.

Annotations
@Override
_setMaximumSizeback to summary
protected native boolean _setMaximumSize(long ptr, int width, int height)

Implements abstract com.sun.glass.ui.Window._setMaximumSize.

Annotations
@Override
_setMenubarback to summary
protected native boolean _setMenubar(long ptr, long menubarPtr)

Implements abstract com.sun.glass.ui.Window._setMenubar.

Annotations
@Override
_setMinimumSizeback to summary
protected native boolean _setMinimumSize(long ptr, int width, int height)

Implements abstract com.sun.glass.ui.Window._setMinimumSize.

Annotations
@Override
_setResizableback to summary
protected native boolean _setResizable(long ptr, boolean resizable)

Implements abstract com.sun.glass.ui.Window._setResizable.

Annotations
@Override
_setTitleback to summary
protected native boolean _setTitle(long ptr, String title)

Implements abstract com.sun.glass.ui.Window._setTitle.

Annotations
@Override
_setViewback to summary
protected native boolean _setView(long ptr, View view)

Implements abstract com.sun.glass.ui.Window._setView.

Annotations
@Override
_setVisibleback to summary
protected native boolean _setVisible(long ptr, boolean visible)

Implements abstract com.sun.glass.ui.Window._setVisible.

Annotations
@Override
_setWindowButtonStyleback to summary
private native void _setWindowButtonStyle(long ptr, int toolbarStyle, boolean buttonsVisible)
_toBackback to summary
protected native void _toBack(long ptr)

Implements abstract com.sun.glass.ui.Window._toBack.

Annotations
@Override
_toFrontback to summary
protected native void _toFront(long ptr)

Implements abstract com.sun.glass.ui.Window._toFront.

Annotations
@Override
_ungrabFocusback to summary
protected native void _ungrabFocus(long ptr)

Implements abstract com.sun.glass.ui.Window._ungrabFocus.

Annotations
@Override
_updateViewSizeback to summary
protected void _updateViewSize(long ptr)

Implements abstract com.sun.glass.ui.Window._updateViewSize.

Annotations
@Override
notifyMoveback to summary
protected void notifyMove(final int x, final int y, boolean isMaximized)
notifyResizeback to summary
protected void notifyResize(int type, int width, int height)

Overrides com.sun.glass.ui.Window.notifyResize.

Doc from com.sun.glass.ui.Window.notifyResize.

type values: - WindowEvent.RESIZE - WindowEvent.MINIMIZE - WindowEvent.MAXIMIZE - WindowEvent.RESTORE

Annotations
@Override
onPrefHeaderButtonHeightChangedback to summary
private void onPrefHeaderButtonHeightChanged(Number height)
performTitleBarDoubleClickActionback to summary
public void performTitleBarDoubleClickAction()
performWindowDragback to summary
public void performWindowDrag()
updateHeaderButtonMetricsback to summary
private void updateHeaderButtonMetrics(MacWindow.NSWindowToolbarStyle toolbarStyle, double prefButtonHeight)
com.sun.glass.ui.mac back to summary

private final Enum MacWindow.NSWindowToolbarStyle

extends Enum<MacWindow.NSWindowToolbarStyle>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final MacWindow.NSWindowToolbarStyle
public static final MacWindow.NSWindowToolbarStyle
pack-priv final Dimension2D
public static final MacWindow.NSWindowToolbarStyle
pack-priv final int
pack-priv final Dimension2D

Constructor Summary

AccessConstructor and Description
private
NSWindowToolbarStyle(double width, double height, int style)

Method Summary

Modifier and TypeMethod and Description
pack-priv static MacWindow.NSWindowToolbarStyle
ofHeight(double height)

public static MacWindow.NSWindowToolbarStyle
public static MacWindow.NSWindowToolbarStyle[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

LARGEback to summary
public static final MacWindow.NSWindowToolbarStyle LARGE
MEDIUMback to summary
public static final MacWindow.NSWindowToolbarStyle MEDIUM
sizeback to summary
pack-priv final Dimension2D size
SMALLback to summary
public static final MacWindow.NSWindowToolbarStyle SMALL
styleback to summary
pack-priv final int style
utilitySizeback to summary
pack-priv final Dimension2D utilitySize

Constructor Detail

NSWindowToolbarStyleback to summary
private NSWindowToolbarStyle(double width, double height, int style)

Method Detail

ofHeightback to summary
pack-priv static MacWindow.NSWindowToolbarStyle ofHeight(double height)
valueOfback to summary
public static MacWindow.NSWindowToolbarStyle valueOf(String name)
valuesback to summary
public static MacWindow.NSWindowToolbarStyle[] values()