|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
java.lang.Objectjavax.swing.plaf.synth.SynthContext
public class SynthContext
一個不可變的瞬態物件,它包含有關 Region 的上下文資訊。SynthContext 只在它傳入的方法的使用期間被認為是有效的。換句話說,不應快取記憶體傳入的 SynthContext 並希望它仍然有效。
| 建構子摘要 | |
|---|---|
SynthContext(JComponent component,
Region region,
SynthStyle style,
int state)
創建一個具有指定值的 SynthContext。 |
|
| 方法摘要 | |
|---|---|
JComponent |
getComponent()
返回包含 region 的承載元件。 |
int |
getComponentState()
返回視窗小部件的狀態,它是 SynthConstants 中定義的值的位遮罩碼。 |
Region |
getRegion()
返回標識此狀態的 Region。 |
SynthStyle |
getStyle()
返回與此 Region 相關的樣式。 |
| 從類別 java.lang.Object 繼承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 建構子詳細資訊 |
|---|
public SynthContext(JComponent component,
Region region,
SynthStyle style,
int state)
component - JComponentregion - 標識 JComponent 的一部分style - 與元件有關的樣式state - SynthConstants 中定義的元件狀態。
NullPointerException - 如果 component、region 或 style 為 null。| 方法詳細資訊 |
|---|
public JComponent getComponent()
public Region getRegion()
public SynthStyle getStyle()
public int getComponentState()
SynthConstants 中定義的值的位遮罩碼。Region 至少將處於以下狀態之一:ENABLED、MOUSE_OVER、PRESSED 或 DISABLED。
SynthConstants
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。