-
- All Known Subinterfaces:
- BeanContext, BeanContextServices
- All Known Implementing Classes:
- BeanContextServicesSupport, BeanContextSupport
public interface DesignMode
This interface is intended to be implemented by, or delegated from, instances of java.beans.beancontext.BeanContext, in order to propagate to its nested hierarchy of java.beans.beancontext.BeanContextChild instances, the current "designTime" property.
The JavaBeans™ specification defines the notion of design time as is a mode in which JavaBeans instances should function during their composition and customization in a interactive design, composition or construction tool, as opposed to runtime when the JavaBean is part of an applet, application, or other live Java executable abstraction.
- Since:
- 1.2
- See Also:
BeanContext
,BeanContextChild
,BeanContextMembershipListener
,PropertyChangeEvent
-
-
Field Summary
Fields Modifier and Type Field and Description static String
PROPERTYNAME
The standard value of the propertyName as fired from a BeanContext or other source of PropertyChangeEvents.
-
Method Summary
Methods Modifier and Type Method and Description boolean
isDesignTime()
A value of true denotes that JavaBeans should behave in design time mode, a value of false denotes runtime behavior.void
setDesignTime(boolean designTime)
Sets the "value" of the "designTime" property.
-
-
-
Field Detail
-
PROPERTYNAME
static final String PROPERTYNAME
The standard value of the propertyName as fired from a BeanContext or other source of PropertyChangeEvents.- See Also:
- Constant Field Values
-
-
Method Detail
-
setDesignTime
void setDesignTime(boolean designTime)
Sets the "value" of the "designTime" property.If the implementing object is an instance of java.beans.beancontext.BeanContext, or a subinterface thereof, then that BeanContext should fire a PropertyChangeEvent, to its registered BeanContextMembershipListeners, with parameters:
propertyName
-java.beans.DesignMode.PROPERTYNAME
oldValue
- previous value of "designTime"newValue
- current value of "designTime"
- Parameters:
designTime
- the current "value" of the "designTime" property- See Also:
BeanContext
,BeanContextMembershipListener
,PropertyChangeEvent
-
isDesignTime
boolean isDesignTime()
A value of true denotes that JavaBeans should behave in design time mode, a value of false denotes runtime behavior.- Returns:
- the current "value" of the "designTime" property.
-
-
Document created the 11/06/2005, last modified the 04/03/2020
Source of the printed document:https://www.gaudry.be/en/java-api-rf-java/beans/DesignMode.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.