|
Quaqua 7.4.2 2011-07-05 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.randelshofer.quaqua.osx.OSXSheetSupport
public class OSXSheetSupport
OSXSheetSupport
provides support for native JDialogs
for Java 5 and
lower.
See showAsSheet(JDialog)
and hideSheet(JDialog)
for
further information.
Please note: Sheets shown by this classed have no resize indicator and block their owner window from user interaction.
Method Summary | |
---|---|
static void |
hideSheet(javax.swing.JDialog sheet)
Hides a sheet. |
static boolean |
showAsSheet(javax.swing.JDialog sheet)
Shows a sheet on the given owner and immediately returns. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean showAsSheet(javax.swing.JDialog sheet)
The native part of this method gets the NSWindow peers from the sheet and
its owner. Then it tells the shared NSApplication to show the sheet as a
standard native sheet.
See NSApplication reference
You have to call setVisible(true)
after showing the sheet to enable lightweight components. That method
must not have been called before this method.
In addition, hideSheet(JDialog)
must be called to hide the sheet
before you call setVisible(false)
on
it.
The dialog must be undecorated.
JSheet
handles all those details, but the method is enabled for
any JDialog
.
sheet
-
true
, if showing the sheet succeeds.
false
otherwise.Dialog.setVisible(boolean)
,
hideSheet(JDialog)
,
Dialog.setUndecorated(boolean)
public static void hideSheet(javax.swing.JDialog sheet)
sheet
- The sheet to hide.showAsSheet(JDialog)
|
Copyright 2003-2007 (c) Werner Randelshofer. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |