|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 列舉常數 | 欄位 | 方法 | 詳細資訊: 列舉常數 | 欄位 | 方法 | |||||||||
java.lang.Objectjava.lang.Enum<Dialog.ModalExclusionType>
java.awt.Dialog.ModalExclusionType
public static enum Dialog.ModalExclusionType
任何頂層視窗都可以標記為不受網要對話框阻塞。這稱為“網要排斥”。此列舉指定可能的網要排斥型別。
Window.getModalExclusionType(),
Window.setModalExclusionType(java.awt.Dialog.ModalExclusionType),
Toolkit.isModalExclusionTypeSupported(java.awt.Dialog.ModalExclusionType)| 列舉常數摘要 | |
|---|---|
APPLICATION_EXCLUDE
APPLICATION_EXCLUDE 指示頂層視窗不會被任何應用程序網要對話框阻塞。 |
|
NO_EXCLUDE
無網要排斥。 |
|
TOOLKIT_EXCLUDE
TOOLKIT_EXCLUDE 指示頂層視窗不會被應用程序網要對話框或工具套件網要對話框阻塞。 |
|
| 方法摘要 | |
|---|---|
static Dialog.ModalExclusionType |
valueOf(String name)
返回帶有指定名稱的該型別的列舉常數。 |
static Dialog.ModalExclusionType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| 從類別 java.lang.Enum 繼承的方法 |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| 從類別 java.lang.Object 繼承的方法 |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| 列舉常數詳細資訊 |
|---|
public static final Dialog.ModalExclusionType NO_EXCLUDE
public static final Dialog.ModalExclusionType APPLICATION_EXCLUDE
APPLICATION_EXCLUDE 指示頂層視窗不會被任何應用程序網要對話框阻塞。此外,它不會被其子層次結構範圍之外的文檔網要對話框阻塞。
public static final Dialog.ModalExclusionType TOOLKIT_EXCLUDE
TOOLKIT_EXCLUDE 指示頂層視窗不會被應用程序網要對話框或工具套件網要對話框阻塞。此外,它不會被其子層次結構範圍之外的文檔網要對話框阻塞。必須為這種排斥授予 "toolkitModality" AWTPermission。如果將排斥屬性更改為 TOOLKIT_EXCLUDE 且不授予此權限,則將拋出 SecurityEcxeption,排斥屬性將保持不變。
| 方法詳細資訊 |
|---|
public static final Dialog.ModalExclusionType[] values()
for(Dialog.ModalExclusionType c : Dialog.ModalExclusionType.values())
System.out.println(c);
public static Dialog.ModalExclusionType valueOf(String name)
指定要返回的列舉常數的名稱。 -
如果該列舉型別沒有帶有指定名稱的常數, - 則拋出 IllegalArgumentException
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 列舉常數 | 欄位 | 方法 | 詳細資訊: 列舉常數 | 欄位 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。