|
JavaTM 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 Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。