|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 列舉常數 | 欄位 | 方法 | 詳細資訊: 列舉常數 | 欄位 | 方法 | |||||||||
java.lang.Objectjava.lang.Enum<JTable.PrintMode>
javax.swing.JTable.PrintMode
public static enum JTable.PrintMode
用於列印 JTable 的列印網要。
JTable.print(JTable.PrintMode, MessageFormat, MessageFormat, boolean, PrintRequestAttributeSet, boolean),
JTable.getPrintable(javax.swing.JTable.PrintMode, java.text.MessageFormat, java.text.MessageFormat)| 列舉常數摘要 | |
|---|---|
FIT_WIDTH
按比例將輸出縮小的列印網要(如果必要),以便每頁可以放入表的整個寬度(這樣就能夠放入所有的列);如果必要,行可以分散到多頁。 |
|
NORMAL
以表的當前尺寸進行列印的列印網要,如果必要,把行和列分散到多頁。 |
|
| 方法摘要 | |
|---|---|
static JTable.PrintMode |
valueOf(String name)
返回帶有指定名稱的該型別的列舉常數。 |
static JTable.PrintMode[] |
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 JTable.PrintMode NORMAL
public static final JTable.PrintMode FIT_WIDTH
| 方法詳細資訊 |
|---|
public static final JTable.PrintMode[] values()
for(JTable.PrintMode c : JTable.PrintMode.values())
System.out.println(c);
public static JTable.PrintMode valueOf(String name)
指定要返回的列舉常數的名稱。 -
如果該列舉型別沒有帶有指定名稱的常數, - 則拋出 IllegalArgumentException
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 列舉常數 | 欄位 | 方法 | 詳細資訊: 列舉常數 | 欄位 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。