public interface DesignMode
该接口旨在由java.beans.beancontext.BeanContext的实例实现或委派,以便传播到java.beans.beancontext.BeanContextChild实例(当前的“designTime”)属性的嵌套层次结构。
JavaBeans¢规范定义了设计时间的概念,就像JavaBeans实例在其组合和定制期间在交互式设计,组合或构造工具中运行的一种模式,而JavaBean是applet,应用程序的一部分时的运行时,或其他实时Java可执行文件抽象。
BeanContext
, BeanContextChild
, BeanContextMembershipListener
, PropertyChangeEvent
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTYNAME
从BeanContext或PropertyChangeEvents的其他来源触发的propertyName的标准值。
|
Modifier and Type | Method and Description |
---|---|
boolean |
isDesignTime()
值为true表示JavaBeans应该在设计时模式下运行,值为false表示运行时行为。
|
void |
setDesignTime(boolean designTime)
设置“designTime”属性的“值”。
|
static final String PROPERTYNAME
void setDesignTime(boolean designTime)
如果实现对象是java.beans.beancontext.BeanContext或其子接口的实例,那么该BeanContext应该将PropertyChangeEvent引发到其注册的BeanContextMembershipListeners,其参数为:
propertyName
- java.beans.DesignMode.PROPERTYNAME
oldValue
- 以前的“designTime”值 newValue
- “designTime”的当前值 designTime
- “designTime”属性的当前“值”
BeanContext
, BeanContextMembershipListener
, PropertyChangeEvent
boolean isDesignTime()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.