|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 列舉常數 | 欄位 | 方法 | 詳細資訊: 列舉常數 | 欄位 | 方法 | |||||||||
java.lang.Objectjava.lang.Enum<TrayIcon.MessageType>
java.awt.TrayIcon.MessageType
public static enum TrayIcon.MessageType
MessageType 確定哪個圖標將顯示在訊息標題中,以及訊息根據顯示產生的可能的系統聲音。
TrayIcon,
TrayIcon.displayMessage(String, String, MessageType)| 列舉常數摘要 | |
|---|---|
ERROR
錯誤訊息 |
|
INFO
資訊訊息 |
|
NONE
簡單訊息 |
|
WARNING
警告訊息 |
|
| 方法摘要 | |
|---|---|
static TrayIcon.MessageType |
valueOf(String name)
返回帶有指定名稱的該型別的列舉常數。 |
static TrayIcon.MessageType[] |
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 TrayIcon.MessageType ERROR
public static final TrayIcon.MessageType WARNING
public static final TrayIcon.MessageType INFO
public static final TrayIcon.MessageType NONE
| 方法詳細資訊 |
|---|
public static final TrayIcon.MessageType[] values()
for(TrayIcon.MessageType c : TrayIcon.MessageType.values())
System.out.println(c);
public static TrayIcon.MessageType valueOf(String name)
指定要返回的列舉常數的名稱。 -
如果該列舉型別沒有帶有指定名稱的常數, - 則拋出 IllegalArgumentException
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 列舉常數 | 欄位 | 方法 | 詳細資訊: 列舉常數 | 欄位 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。